Discussions
Authentication Flow
Hi team,
We checked APIs guide and want to know is there any way we can have fixed access token which we can use to make APIs call?
The design of our system don't work with oAuth flow with carrier. Please let us know how we can achieve access token.
Hey,
Currently adding this to our API documentation but would it be more useful to have a Service Account as your path to Authentication? Rather than flowing through the Web Authentication it would be passing through your client_id, client_secret etc to get a valid JWT.
Basically the flow is:
- Go to Settings -> Applications
- Select Accounts on the OAuth Applications
- Here you can create a new Service Account (Default Role will be Manager)
- If you select "Request Details" this will give you a HTTP or cURL example of the request to get a valid JWT
It will give you a cURL like:
curl --location 'https://a.roserocket.com/oauth/token' --header 'Content-Type: application/json' --data '{
"grant_type":"client_credentials","client_id":"<client_id>","client_secret":"<client_secret>","audience":"https://roserocket.com","org_id":"<your_org_id>","user_id":"<service_user_account_id>"
}'
Would this flow be useful?
Hi Sarwagya,
Just wanted to checkin if the above suggestion ended up being helpful
Can we have sandbox account?
Hi! Yes you can absolutely get a sandbox account! Please reach out to your Account Rep to get setup with this.
ο»Ώ