Get metadata about the current authentication token
Changed onauth_method distinguishes the response shape: api_token for API Tokens, oauth for OAuth access tokens, and web for Fieldguide web sessions. OAuth access tokens and web sessions share type: jwt.
Request
- Base URLhttps://api.fieldguide.io
- URLhttps://api.fieldguide.io/v1/token
- AuthHTTP bearer
Response
Metadata about the current authentication token
Example response
{
"data": {
"user_uuid": "821e8d9e-d2a8-480f-9187-5a685d3d0d71",
"created_at": "2023-01-01T12:30:00.000Z",
"expires_at": "2023-01-01T12:30:00.000Z",
"type": "api",
"auth_method": "api_token",
"uuid": "821e8d9e-d2a8-480f-9187-5a685d3d0d71",
"name": "Acme ABC Token",
"scopes": [
"engagements:read",
"engagements.files:read",
"engagements.files:write"
]
}
}Changes
- breaking
added to the
response propertyoneOflist for the response status - info
added
api_tokenoauthwebdiscriminator mapping keys to theresponse property for the response status - info
removed
apijwtdiscriminator mapping keys from theresponse property for the response status - info
response discriminator property name changed for
response property fromtypetoauth_methodfor the response status - info
added the required property
/////to the response with the status - info
added the required property
/////to the response with the status - info
added the required property
/////to the response with the status
- breaking
- info
added the non-success response with the status
- info