TBNS
  • Welcome to TBNS!
  • Getting Started
    • Quickstart
  • Basics
  • References
    • Get Auth Token
    • Get Partner Details
    • User Management API
    • User Creation API
    • Points Management API
Powered by GitBook
On this page
  1. References

Get Auth Token

Authentication

Before using any other endpoints, you must obtain an authentication token by logging in with your credentials.

Login

POST https://app.tbns.io/version-test/api/1.1/wf/login

Headers

  • Authorization: Bearer token for API access

  • Content-Type: application/json

Request Body

{
    "email": "string",
    "password": "string"
}

Success Response (200)

{
    "status": "success",
    "response": {
        "token": "string",
        "user_id": "string",
        "expires": number  // Token expiration in seconds
    }
}

Error Response (400)

jsonCopy{
    "statusCode": 400,
    "reason": "INVALID_LOGIN_CREDENTIALS",
    "message": "We didn't find an account with those login credentials",
    "args": {
        "bubble_code": "string"
    }
}

Example Request

bashCopycurl --location 'https://app.tbns.io/version-test/api/1.1/wf/login' \
--header 'Authorization: Bearer 7d5120b63cf397ef5a72801245231f7f' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "user@example.com",
    "password": "password123"
}'

Notes

  • The returned token must be used in all subsequent API requests

  • Token expires after the specified duration in the response (expires field)

PreviousReferencesNextGet Partner Details

Last updated 3 months ago