whoami
Who this token is: its name and kind, the organization it reads (a service token: its allowlist of organizations), the scopes it can use right now (the token’s scopes limited by its creator’s current role), its rate limits and its expiry. Call this first to learn what you can ask.
- Server: Platform server
- Scope: Any valid token
- Read-only: yes
Input
{
"type": "object",
"properties": {}
}Output (structuredContent)
{
"properties": {
"as_of": {
"type": "string"
},
"token_name": {
"type": "string"
},
"token_kind": {
"type": "string"
},
"organization": {
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"timezone": {
"type": [
"string",
"null"
]
}
},
"type": [
"object",
"null"
]
},
"effective_scopes": {
"items": {
"type": "string"
},
"type": "array"
},
"token_scopes": {
"items": {
"type": "string"
},
"type": "array"
},
"rate_limits": {
"properties": {
"token_per_minute": {
"type": "integer"
},
"organization_per_minute": {
"type": [
"integer",
"null"
]
}
},
"type": "object"
},
"expires_at": {
"type": "string"
},
"allowlist": {
"type": [
"object",
"null"
]
}
},
"type": "object",
"required": [
"as_of",
"token_name",
"token_kind",
"effective_scopes",
"token_scopes",
"rate_limits",
"expires_at"
]
}