Skip to main content
POST
/
platform
/
v1
/
auth
/
login
Create Access Token
curl --request POST \
  --url https://commerceos.aiagents.fabric.inc/platform/v1/auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "Jane.doe@fabric.inc",
  "password": "StrongPassword123"
}
'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "bearer"
}

Body

application/json
username
string
required
Example:

"Jane.doe@fabric.inc"

password
string<password>
required
Example:

"StrongPassword123"

Response

Successful authentication

access_token
string
required

JWT access token used for authenticated requests.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

token_type
string
required
Example:

"bearer"