API

Approve sign-in code

Grants the app that created the sign-in code access with the given scopes, which must be a subset of the requested ones. The login works with company_id.

POST/v1/hq/oauth/sign_in_codes/{user_code}/approve

Authorization

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

Path Parameters

user_code*string
Example"WDJB-MJHT"

Request Body

application/json

company_id*string

The company the login works with.

Example"7awdXwZoedakjad37a"
scopes*OAuthScopes

Response Body

application/json

curl -X POST "https://api.noona.is/v1/hq/oauth/sign_in_codes/WDJB-MJHT/approve" \  -H "Content-Type: application/json" \  -d '{    "company_id": "7awdXwZoedakjad37a",    "scopes": [      "activities:read"    ]  }'
{
  "user_code": "WDJB-MJHT",
  "client_id": "7awdXwZoedakjad37a",
  "app": {
    "name": "Noona CLI",
    "logo": "https://noona.is/logo.png"
  },
  "scopes": [
    "activities:read"
  ],
  "expires_at": "2020-08-24T14:15:22Z"
}
Empty
Empty
Empty
Empty
Empty