Personal access tokens
Generate and manage PATs in Phonovation developer settings. PAT values begin withphv_pat_.
1
Generate the PAT
Create the PAT once in the Phonovation application. Copy it when it is shown.
2
Store it securely
Put the PAT in a secrets manager or another protected runtime secret. Never commit it to source control or include it in logs.
3
Use it as a bearer token
Preserve the token’s casing and include it in the
Authorization header:Authenticated request
4
Rotate when needed
Replace the PAT when it expires, is revoked, or you intentionally rotate it. You do not generate a new PAT for each SMS.
Optional OAuth tokens
The OAuth endpoint is available for integrations that specifically need a token lifecycle:OAuth token endpoint
application/x-www-form-urlencoded with the OAuth client ID messaging-api.
- Password grant
- Refresh token grant
Exchange a Phonovation username and password for an access token and refresh token. This compatibility flow must be enabled for the
messaging-api client.Obtain OAuth tokens
access_token, expires_in, and token_type. It can also include refresh_token and refresh_expires_in. Use the lifetimes returned by the API instead of assuming fixed values.
Use the token
PATs and OAuth access tokens use the same header:Authorization header
Authentication errors
Authentication API Reference
Review the complete OAuth request and response schemas.