Authentication
Token format
access_token and refresh_token are standard JWTs signed with HS256. Paste any token into jwt.io to decode it. Authorization codes are NOT JWTs — they're short, opaque, single-use 32-character hex strings.
Auth code
10 minutes
32-char hex
Access token
1 day
JWT (typ: "access")
Refresh token
365 days
JWT (typ: "refresh")
JWT shape
Header:
{
"alg": "HS256",
"typ": "JWT"
}
Payload (access_token):
{
"typ": "access",
"app_id": "<APP_ID>",
"user_id": 123,
"install_id": 7,
"scopes": ["contacts.read", "contacts.write"],
"iss": "mycrmsim",
"aud": "<YOUR CLIENT_ID>",
"sub": "123",
"iat": 1716200000,
"exp": 1716286400
}Verification
The API verifies tokens on every request: HS256 signature + exp + iss + typ. It also checks that the installation is still active, so an installation can be revoked and its tokens stop working immediately. Treat iss as an opaque, fixed value: the API checks it, you don't need to.
The aud claim carries the client_id of the integration the token was minted for. Validate it yourself if you build token-validation middleware on top of these tokens.
