Authenticate
POST /account/login/
Operation ID: account_login_create
Authenticate with your email and password to obtain an access token for API calls.
Request Body
{
"email": "string",
"password": "string"
}
Parameters
Field
Type
Required
Description
email
string
Yes
Email registered on Betmatic
password
string
Yes
Password
Response
Success Response (200)
{
"token": "string"
}
Field
Type
Description
token
string
Authorization token to be used for future calls that need authorization. Should be included in header as 'Authorization: Token xxxxxxx'
Error Responses
401 Invalid credentials - The email/password combination is incorrect
500 Internal server error - Server encountered an error processing the request
Usage
curl -X POST "https://betmatic.app/api/account/login/" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "your_password"
}'
Potential Use Cases
This endpoint is required for all API access. Every user must authenticate to obtain an access token before using any other API endpoints.
Last updated