Skip to main content

Get an access token

POST/realms/ryno/protocol/openid-connect/token
Auth Client assertion

Returns a 5-minute access token for the Partner API. The request goes to the identity host, not the API gateway.

EnvironmentHost
Sandboxhttps://keycloak.sandbox.rynopay.io
Productionhttps://keycloak.rynopay.io

Body​

application/x-www-form-urlencoded. JSON is not accepted.

grant_typestringrequired

client_credentials.

client_idstringrequired

Your client ID from the API Credentials page.

client_assertion_typestringrequired

urn:ietf:params:oauth:client-assertion-type:jwt-bearer.

client_assertionstringrequired

A freshly signed client assertion.

scopestring

Space-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_tokenstring

The Bearer token for API calls.

expires_ininteger

Lifetime in seconds, currently 300.

token_typestring

Bearer.

scopestring

The scopes granted.

No refresh token is issued.

Errors​

HTTPerrorCause
401invalid_clientThe 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.
400invalid_requestA required form field is missing.

See Troubleshooting.