Skip to content

Read the integration identity

Integration API

Read the integration identity

GET/v1/integration/identity

Returns the workspace and role an API key resolves to, the first call an integration makes to check its setup.

Headers

  • X-Tenant-Slugstring

    The workspace the request acts in.

  • X-Valtor-Advisor-Sessionstring

Response 200

  • dataobjectrequired
    Show 3 child fields
    • tenant_slugstringrequired

      Slug of the workspace the key belongs to.

    • rolestringrequired

      The role the caller resolves to.

    • api_key_idstringrequirednullable

      Id of the API key used; null when the caller is not a key.

Errors

Every error has the same shape: an error object with a stable code and a message for people. 403 is a missing role, 404 a row this workspace does not hold, 409 a state conflict, 422 a broken business rule. A missing or invalid token answers 401 on every signed-in route.

StatusCodeMeaning
422request_validation_failedOne or more request fields are invalid