Bearer token authorization
Authenticate SmartSight API requests with a bearer token.
Use bearer token authentication if your workflow signs in through SmartSight identity services.
Get a bearer token
Request a bearer token from the SmartSight identity server.
Token endpoint
POST https://identity.mediamelon.com/realms/mediamelon/protocol/openid-connect/token
Prerequisites
You need:
Your SmartSight username
Your SmartSight password
Example request
curl 'https://identity.mediamelon.com/realms/mediamelon/protocol/openid-connect/token' \
-X POST \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=<email-id>' \
--data-urlencode 'password=<password>' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'client_id=smartsight-backend' \
--data-urlencode 'scope=openid'Required form fields
Field
Type
Description
username
string
Your SmartSight username
password
string
Your SmartSight password
grant_type
string
Must be password
client_id
string
Must be smartsight-backend
scope
string
Use openid
Example response
Use the bearer token
Send the access_token in the Authorization header.
Example API request
Last updated