For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  1. Your SmartSight username

  2. Your SmartSight password

If you do not have SmartSight identity credentials, contact your MediaMelon representative.

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.

Use the access_token for API requests. Refresh or re-request a token when it expires.

Example API request

Last updated