/
Authentication
Authentication
Obtain an access token:
curl https://AUTH_BASE_URL/oauth2/token \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id={CLIENT_ID}&client_secret={CLIENT_SECRET}"
You can get the AUTH_BASE_URL
from the Seamless team.
The CLIENT_ID
and CLIENT_SECRET
can be obtained from the Applications page on the Seamless website.
Sample response:
{"access_token":"...","expires_in":3600,"token_type":"Bearer"}
Make API requests using the obtained access token:
curl "https://external-api.staging.contemisaasdev.com/underwriting/api/v1/policies" \
-H 'Content-Type:application/vnd.api+json' \
-H 'Accept:application/vnd.api+json' \
-H 'Authorization: {ACCESS_TOKEN}'
Related content
If you would like to request an article, drop us a mail at seamless.support@seamless.insure