#
Who this token is
GETapi.thawed.app/v1/me
Start here. The person behind the token, the family or business this call landed in (the Thaw-Account header, else their first), the token's scopes and what it may do here once the role and the plan have had their say, and every family or business the token could name instead.
Responses
200
The person, the family or business the call landed in, the token and what it may do here, and every family or business the token could name in the header.
401
No token, a token that has ended, or one issued for the other door.
WWW-Authenticate names the resource metadata document.403
The token, the role or the plan does not allow it. A missing scope is named in
scope and in the WWW-Authenticate header as insufficient_scope; a plan that does not come with it says which one does.200 answer
userobject
idstring
namestring or null
emailstring
accountobject
idstring
namestring
kindstring
familybusinessrolestring
ownermemberviewervieweditupload_onlybundlestring or null
The one bundle a guest was let in on, when that is all they may see.
family_or_businessobject
idstring
namestring
kindstring
planobject
namestring
labelstring
tokenobject
A personal or app token (kind, name, label, scopes, expires_at) or a connection (kind "connection", the app's name, scopes).
canobject
changeboolean
Whether a change would be allowed here (the role, the plan and the token all agreeing).
identifiersboolean
Whether account, policy and license numbers come back.
accountsarray of object
Every family or business a personal token may name in the Thaw-Account header; empty for a connection.
idstring
namestring
kindstring
rolestring
guestboolean
headerstring
apistring
The versioned base every URL in the answers hangs off.
curl "https://api.thawed.app/v1/me" \
-H "Authorization: Bearer $THAW_TOKEN"{
"user": {
"id": "019958a0-3e60-7f5c-9d41-5b2e4c80af33",
"name": "Marisol Alvarez",
"email": "marisol@example.com"
},
"account": {
"id": "019958a0-2d5f-7e4b-8c30-4a1d3b7f9e22",
"name": "The Alvarez family",
"kind": "family",
"role": "owner",
"bundle": null,
"family_or_business": {
"id": "019958a0-2d5f-7e4b-8c30-4a1d3b7f9e22",
"name": "The Alvarez family",
"kind": "family"
},
"plan": {
"name": "family",
"label": "Family"
}
},
"token": {},
"can": {
"change": true,
"identifiers": false
},
"accounts": [
{
"id": "019958a0-2d5f-7e4b-8c30-4a1d3b7f9e22",
"name": "The Alvarez family",
"kind": "family",
"role": "owner",
"guest": false
}
],
"header": "Thaw-Account",
"api": "https://api.thawed.app/v1"
}