Double opt In

Creating a customer account with double opt-in

get

Creates a customer account using the token obtained through double opt-in.

Note: The request needs to be authorized with an anonymous access token.


Required scopes

No specific scopes are required.

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
tokenstringRequired

The token sent in email to customer during account creation.

Responses
200
OK
application/json
get
GET /customer/{tenant}/signup/optin/{token} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "access_token": "HzcnecB5l6STzXhRqU0Zp6hxS0Ay",
  "saas_token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI4NzQxMzI1MCIsImV4cCI6MTYzMjA1NDEzN30.p6g_G5ZbhjlvnObVC2OWGslLWWktxBw8onionfFvm4c",
  "expires_in": 2591999,
  "refresh_token": "tMhLYc8pfAqb1g10Z1o7BxABArxXe3db",
  "refresh_token_expires_in": 86399,
  "token_type": "Bearer"
}

Resending an account activation link to a customer

post

Resends an account activation link to the customer.

Note: The request needs to be authorized with an anonymous access token.


Required scopes

No specific scopes are required.

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Body
emailstringRequired

Customer's email address.

Responses
202
Accepted
post
POST /customer/{tenant}/signup/optin/refresh_token HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 32

{
  "email": "[email protected]"
}

No content

Was this helpful?