Get an access token
Returns a 5-minute access token for the Partner API. The request goes to the identity host, not the API gateway.
| Environment | Host |
|---|---|
| Sandbox | https://keycloak.sandbox.rynopay.io |
| Production | https://keycloak.rynopay.io |
Body
application/x-www-form-urlencoded. JSON is not accepted.
grant_typestringrequiredclient_credentials.
client_idstringrequiredYour client ID from the API Credentials page.
client_assertion_typestringrequiredurn:ietf:params:oauth:client-assertion-type:jwt-bearer.
client_assertionstringrequiredA freshly signed client assertion.
scopestringSpace-separated scopes. partner.read is always granted. Add partner.write to create or update. A scope outside your entitlement profile is not granted. See Scopes.
Response
access_tokenstringThe Bearer token for API calls.
expires_inintegerLifetime in seconds, currently 300.
token_typestringBearer.
scopestringThe scopes granted.
No refresh token is issued.
Errors
| HTTP | error | Cause |
|---|---|---|
| 401 | invalid_client | The assertion is malformed, expired, reused, signed with the wrong key, or has the wrong aud or client ID. The credential may also not be Active. |
| 400 | invalid_request | A required form field is missing. |
See Troubleshooting.