logo
enes

Step 1 - Get the Token

Last update: 7 days ago by Irais Aguirre

Make a POST to the following Keycloak endpoint with your API credentials:


URLhttps://sso2.broadcastermobile.com/realms/broadcaster-api-external/protocol/openid-connect/token
METHODPOST
HEADERSContent-Type: application/x-www-form-urlencoded

Body

grant_type=client_credentials
client_id=<YOUR_CLIENT_ID>
client_secret=<YOUR_SECRET>

ParametersDescriptionRequired
grant_typeMust always be sent as client_credentials.Yes
client_idIdentifier of the API key assigned to your account.Yes
client_secretSecret associated with the client_id.Yes

Successful response

{
"access_token": "eyJhbGci...",
"expires_in": 600,
"token_type": "Bearer"
}

Store the access_token value. It is valid for 10 minutes (expires_in in seconds).

The portal token is a user token (realm broadcaster). The token to send SMS is a machine token (realm broadcaster-api-external) that you obtain with the client_credentials flow and your API key. They are not interchangeable.

External API — Previous
HTTP API
Next
Step 2 - Send an SMS