Self-serve contractor payments
Create Onramp Session Token
Derives the org's Safe address and token, signs a CDP JWT, and fetches a Coinbase Onramp session token.
POSThttps://api.toku.com/hris/create-onramp-session-token
Not available to API keys.
curl --request POST \
--url 'https://api.toku.com/hris/create-onramp-session-token' \
--header 'Authorization: Bearer <token>'200 response
{
"sessionToken": "string",
"address": "string",
"network": "string",
"assets": [
"string"
]
}Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.
Response
200Successful response
sessionTokenstringrequiredaddressstringrequirednetworkstringrequiredassetsstring[]required400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits