Customer API
Refresh Customer Token
Customer API
Refresh Customer Token
POST
/api/refresh_customer_token/
Explo-Authorization*
curl --request POST \
--url https://api.explo.co/api/refresh_customer_token/ \
--header 'Explo-Authorization: <explo-authorization>'
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
curl --location --request POST 'https://api.explo.co/api/update_customer/' \
--header 'Content-Type: application/json' \
--header 'Explo-Authorization: Token <token>' \
--data-raw '{
"provided_id": "example_1",
"properties": {"filterValue": "new_value"},
"emails": ["new_email@example.com"]
}'
{
"success": 1,
"customer": {
"token": "<customer_token_to_auth_dashboard>",
"name": "Example 1",
"provided_id": "example_1",
"is_demo_group": false,
"emails": ["new_email@example.com"],
"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"}
}
}
curl --location --request POST 'https://api.explo.co/api/update_customer/' \
--header 'Content-Type: application/json' \
--header 'Explo-Authorization: Token <token>' \
--data-raw '{
"provided_id": "example_1",
"properties": {"filterValue": "new_value"},
"emails": ["new_email@example.com"]
}'
{
"success": 1,
"customer": {
"token": "<customer_token_to_auth_dashboard>",
"name": "Example 1",
"provided_id": "example_1",
"is_demo_group": false,
"emails": ["new_email@example.com"],
"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"}
}
}