Read the integration identity
Read the 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-SlugstringThe workspace the request acts in.
X-Valtor-Advisor-Sessionstring
Response 200
dataobjectrequiredShow 3 child fields
tenant_slugstringrequiredSlug of the workspace the key belongs to.
rolestringrequiredThe role the caller resolves to.
api_key_idstringrequirednullableId 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.
| Status | Code | Meaning |
|---|---|---|
| 422 | request_validation_failed | One or more request fields are invalid |