Token
Endpoint for retrieving metadata about the token used for authentication. This is useful for clients to understand the type and capabilities of the token they are using, especially since Metorial supports multiple token types with different permission models.
Token object
Attributes
object
StringString representing the object's type
type
EnumThe token's type
organization
ObjectNullableinstance
ObjectNullableproject
ObjectNullableactor
ObjectNullablemember
ObjectNullableuser
ObjectNullable{"object": "token","type": "fine_grained_token","organization": {"object": "token.organization","id": "org_7hNkPqRsTuVwXyZa","name": "Acme Corporation","slug": "acme-corporation"},"instance": {"object": "token.instance","id": "ins_1a23BcDeFgHiJkLm","name": "Production Instance","slug": "production-instance","project_id": "prj_4x5YzAbCdEfGhIj"},"project": {"object": "token.project","id": "prj_4x5YzAbCdEfGhIj","name": "Acme Web App","slug": "acme-web-app"},"actor": {"object": "token.organization_actor","id": "omem_5fGhJkLmNpQrStUv","type": "member","name": "Example"},"member": {"object": "token.organization_member","id": "omem_5fGhJkLmNpQrStUv","name": "Example"},"user": {"object": "token.user","id": "user_1a2b3c4d5e6f7g8h","name": "Example User"}}
Get token details
Retrieves metadata and configuration details for a specific token.
No parameters required
GEThttp://api.metorial.comtoken
curl -X GET "https://api.metorial.comtoken" \-H "Authorization: Bearer metorial_sk_..."