Authorization

Use API tokens to authenticate requests to Etals.
View as Markdown

Etals API requests are authenticated with Bearer tokens.

Include the token in the Authorization header for each request:

1Authorization: Bearer {api-token}

Creating a token

API tokens can be created from the Etals settings area.

Each token has abilities that control what it can do:

AbilityUsed for
readReading data from the API.
createCreating data or sending data into Etals.
updateUpdating existing data.
deleteDeleting data.

Funnel API permissions

The Funnel API uses token abilities and user permissions.

EndpointRequired token abilityRequired user permission
POST /api/v1/funnels/{endpoint-url}createManage funnels
DELETE /api/v1/funnels/{endpoint-url}deleteManage funnels

If the token is missing, invalid, or does not have the required ability, Etals returns an authorization error.

Example request

$curl -X POST "https://{tenant-domain}/api/v1/funnels/{endpoint-url}" \
> -H "Authorization: Bearer {api-token}" \
> -H "Content-Type: application/json" \
> -d '{
> "identifier": "SKU-1001",
> "name": "Everyday Face Cream"
> }'

Token safety

Treat API tokens like passwords.

Do not expose tokens in frontend code, public repositories, screenshots, or shared documents. If a token may have been exposed, revoke it and create a new one.