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:
- Call POST /api/token with your credentials
- Copy the access_token from the response
- Click "Authorize" in Swagger UI (at the top of the page)
- Enter your JWT token (without "Bearer" prefix)
Usage in regular requests:
- Call POST /api/token with your credentials
- Copy the access_token from the response
- 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.