Authenticate

To authenticate and obtain the token, you need to make a request to the authentication endpoint by providing your email and password.

Endpoint

POST /account/login/

CURL example

curl -X POST https://betmatic.app/api/account/login/ \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

Parameters

Name
In
Type
Required
Description

data

body

SigninQ

true

none

SigninQ

Name
Type
Required
Description

email

string

true

Email used to register on BETMATIC

password

string

true

Password

Body parameter example

{
  "email": "iampunter@gmail.com",
  "password": "passwordforbetmatic"
}

Responses

Status
Meaning
Description
Schema

200

Authorized

SigninR

401

Wrong credentials

None

500

Internal server error

None

SigninR

Name
Type
Description

token

string

Token to be used for future calls that need authorization. Supposed to be included in header as <Authorization: Token xxxxxxx>.

200 Response example

Upon successful authentication, you will receive a response containing the token. Remember to include this token in the header of your subsequent API calls for authorization.

{ 
 "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImphY29ibWEucmFjaW5nYmJAZ21haWwuY29tIiwiaWF0IjoxNjM4NzQxODY0LCJleHAiOjE2Mzg5MTQ2NjQsImp0aSI6IjYxZGFkYzk1LWM3NWMtNDQwZi1hYWJhLTgwYmU5NjdmYjEzYyIsInVzZXJfaWQiOjIsIm9yaWdfaWF0IjoxNjM4NzQxODY0fQ.MFUjj1oaINr0v9xwb2ZGjVUPCL3o-4_RgRefh1T708o"
}

Last updated