AnkraDocs
Console

API reference · Access and identity

Linked identities

2 operations of the Ankra Cloud API: The signed-in user's linked sign-in identities.

List the identity provider identities you sign in with#

GET/v1/account/identities
Operation
list_account_identities
Credentials
API token, Portal session
Requires
Permission self

The signed-in user's linked identities (Google, Microsoft, GitHub or the provider's own accounts), oldest first; the same list GET /v1/auth/me carries in identities. Empty when no identity provider was ever used.

Responses

200The linked identities.application/json · LinkedIdentityList

200 response fields
FieldTypeDescription
itemsrequiredarray of LinkedIdentity
idrequiredstring
providerrequiredstringThe issuer URL.
provider_namerequiredstringThe upstream provider, from the subject's connection prefix: Google (google-oauth2), GitHub (github), Microsoft (waad, windowslive, microsoft), the provider's own accounts for auth0 or no prefix (the display name, default "Ankra account"), else the prefix itself.
subject_hintrequiredstringThe connection and the last characters of the subject; never the subject itself.
linked_atrequiredstring (date-time)
last_login_atrequiredstring (date-time) | null
next_cursorrequiredstring | nullPass as ?cursor= for the next page; null on the last page.
  • 401Not signed in, or the credential is invalid or expired.
  • 403The role lacks the permission, the token is read-only (a read-only token also gets reason: read_only_token_cannot_read_credentials on every credential read), the CSRF header is missing, a support session may not do this, or the route needs a verified email address and the caller's is not (reason: email_unverified).
  • defaultAny other error, usually 500.

Example

bash
curl 'https://cloud.ankra.app/v1/account/identities' \
  -H "Authorization: Bearer $ANKRA_CLOUD_TOKEN"