POST
/
api
/
refresh_customer_token
/
curl --location --request POST 'https://api.explo.co/api/update_customer/' \
--header 'Content-Type: application/json' \
--header 'Explo-Authorization: Token <token>' \
--data-raw '{
    "current_token": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}'
{
  "success": 1,
  "customer": {
    "token": "<customer_token_to_auth_dashboard>",
    "name": "Example 1",
    "provided_id": "example_1",
    "is_demo_group": false,
    "emails": ["[email protected]"],
    "properties": { "filterValue": "new_value" },
    "computed_properties": { "filterValue": "new_value" },
    "parent_schema_datasource_mapping": {"40": "213": "134": 386"},
    "computed_parent_schema_datasource_mapping": {"40": "213": "134": 386"}
  }
}

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

Body

current_token
string

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

Response

success
number

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

customer
object

The contents of the customer