Authentication

Obtain a JWT access token using username and password

Response: Returns a JSON object with an access_token that expires in 30 days.

Usage in Swagger:

  1. Call POST /api/token with your credentials
  2. Copy the access_token from the response
  3. Click "Authorize" in Swagger UI (at the top of the page)
  4. Enter your JWT token (without "Bearer" prefix)

Usage in regular requests:

  1. Call POST /api/token with your credentials
  2. Copy the access_token from the response
  3. Add the JWT token as an Authorization header as follows: 'Bearer <your_access_token>'

Example:

curl -X 'GET' \
'https://app.customily.com/api/Product/GetProductsCount' \
-H 'accept: application/octet-stream' \
-H 'Authorization: Bearer <your_access_token>'
post/api/token

Response

Successfully authenticated. Returns JWT access token.

access_tokenstring

JWT access token

token_typestring

Token type (usually 'Bearer')

expires_ininteger

Token expiration time in seconds (30 days = 2592000)

Changes