Skip to main content
POST
/
api
/
v1
/
auth
/
login
Authenticates user.
curl --request POST \
  --url https://sdp.suki-stage.com/api/v1/auth/login \
  --header 'Content-Type: application/json' \
  --data '{
  "partner_id": "your-partner-id",
  "partner_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
  "provider_id": "provider-123"
}'
{
  "suki_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
Use this endpoint to authenticate a provider. On a successful request, this endpoint returns a suki_token that you must use to authorize all subsequent API calls for that user. The suki_token is a JWT that is valid for one hour. It contains the user, organization, and partner information needed to access Suki services.
If you are using the JWT Assertion authentication method, the response may also include an additional jwt_bearer field.

Code Examples

  • Python
  • TypeScript
import requests

url = "https://sdp.suki.ai/api/v1/auth/login"

payload = {
    "partner_id": "your-partner-id",
    "partner_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
    "provider_id": "provider-123"  # Optional
}

response = requests.post(url, json=payload)

if response.status_code == 200:
    data = response.json()
    suki_token = data["suki_token"]
    print(f"Authentication successful. Token: {suki_token}")
else:
    print(f"Authentication failed: {response.status_code}")
    print(response.json())

Body

application/json
partner_id
string
required
Example:
partner_token
string
required
Example:
provider_id
string
Example:

Response

suki_token
string
Example: