Skip to main content
POST
Exchange an approved Cloud consent code for an organisation grant

Authorizations

X-Ankra-Cloud-Token
string
header
required

Deployment-owned Cloud sync credential, accepting current and next values during rotation.

Body

application/json
code
string
required
code_verifier
string
required
Required string length: 43 - 128
client_id
enum<string>
required
Available options:
ankra-cloud
redirect_uri
string<uri>
required
grant_hash
string
required
Pattern: ^[0-9a-f]{64}$
expires_at
string<date-time>
required

Response

Organisation-bound grant registered.

grant_id
string<uuid>
required
platform_user_id
string
required

The consenting Auth0 subject.

organisation_id
string<uuid>
required
expires_at
string<date-time>
required