partner
Exchange Partner Token
Exchange an authorization code (with its PKCE code_verifier) or a refresh token for a new access and refresh token pair. Accepts form-encoded or JSON bodies. Refresh tokens are single use: each refresh returns a new pair and revokes the previous access token. Reusing a consumed refresh token revokes the whole connection and requires re-authorization by a practice admin.
post/v1/partner/oauth/token
Request body
Response
New token pair. The access token lasts 1 hour, the refresh token 90 days.
Example response
{
"access_token": "pat_Zl9nB1qFhOQe2kQ4rW8xJ3Ty",
"refresh_token": "prt_M4kQ9wY2eXvB7cJ1sL6pR8Ud",
"token_type": "Bearer",
"expires_in": 3600
}