Create OAuth consent
Approves the OAuth consent for the user against a specific application.
POST
/v1/hq/oauth/authAuthorization
BearerTokenAuth
AuthorizationBearer <token>
The Noona HQ API uses Bearer token for authentication.
Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.
Authorization: Bearer your-token
In: header
Request Body
application/json
company_id*string
Example
"7awdXwZoedakjad37a"client_id*string
Example
"7awdXwZoedakjad37a"redirect_uri*string
Example
"https://example.com"state?string
Example
"1234567890"response_type*string
Format
enumValue in
"code"scopes*OAuthScopes
code_challenge?string
PKCE code challenge from the authorization request.
Example
"E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"code_challenge_method?string
Format
enumValue in
"S256"Response Body
application/json
curl -X POST "https://api.noona.is/v1/hq/oauth/auth" \ -H "Content-Type: application/json" \ -d '{ "company_id": "7awdXwZoedakjad37a", "client_id": "7awdXwZoedakjad37a", "redirect_uri": "https://example.com", "response_type": "code", "scopes": [ "activities:read" ] }'{
"redirect_uri": "https://example.com/?code=x&state=y"
}Empty
Empty
Empty
Empty