Refresh Token

Refresh User Group Token

POST https://api.explo.co/api/refresh_user_group_token/

This endpoint refreshes a user group token. This is useful when you want to force a user group token to rotate because an existing one may be compromised.

Path Parameters

Name
Type
Description

Explo-Authorization

string

API authorization token which is unique to your team. You can access this in the Developers tab in your account.

Request Body

Name
Type
Description

current_token

string

This is the current user group token you have for the user group that you want to rotate.

{
    "success": 1,
    "user_group": {
        "team_id": 3,
        "token": "<user_group_token_to_auth_dashboard>",
        "name": "Example 1",
        "provided_id": "example_1}

Response field descriptions

Field Name

Type

Description

success

number

Indicates whether the call was successful. 1 if successful, 0 if not.

user_group.team_id

number

This is Explo's internal ID for this user group. You don't need to record this information, since you will not need to use it.

user_group.token

string

This is the user group token (userGroupToken or USER_GROUP_TOKEN) that will be used to identify which user group is viewing the dashboard. You should save this on your end to use when rendering an embedded dashboard.

user_group.name

string

This is the name of the user group provided in the request body.

user_group.provided_id

string

This is the user_group_id provided in the request body.

user_group.api_environment_tag

string

This is the environment tag of the user group. Possible values are 'Customer' and 'Testing'

Example Request

curl --location --request POST 'https://api.explo.co/api/refresh_user_group_token/' \
--header 'Content-Type: application/json' \
--header 'Explo-Authorization: Token <token>' \
--data-raw '{
    "current_token": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}'

Last updated

Was this helpful?