v1

latestOpenAPI 3.0.32026-08-06150495.9 KB
Partner Authentication

Get Initial Access Tokens

Sign In Endpoint

This endpoint is used to authenticate a user and initiate a session by providing the user's credentials. Upon successful authentication, the user receives a token that has a 24-hour expiry and can be used for subsequent requests.

HTTP Method

POST

Request URL

POST {{base-url}}/v1/partnerApi/auth/signin

Request Body

ParameterTypeDescription
emailstringThe email address of the user.
passwordstringThe password for the user.

Example Request Body:

{
  "email": "YourEmail",
  "password": "YourPassword"
}

Response

The response will indicate the success or failure of the authentication attempt.

Response Structure

ParameterTypeDescription
statusbooleanIndicates if the request was successful.
statusCodeintegerCode representing the status of the response.
messagestringA message providing additional information (if any).
resultobjectContains the authentication result.
profileobjectUser profile information.
idstringUnique identifier for the user.
emailstringEmail address of the user.
usernamestringUsername of the user.
tokenstringAuthentication token for the session (expires in 24 hours).
refreshstringRefresh token for obtaining a new access token.
errorobjectContains error information if authentication fails.

Example Response:

{
    "status": true,
    "statusCode": 200,
    "message": "User signed-in successfully",
    "result": {
        "profile": {
            "id": "c369fc58-48ecc4d5790db1",
            "email": "email@voosh.in",
            "username": "Chatmeter"
        },
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImMzNjlmYzU4LTM",
        "refresh": "eyJhbGciOjttRc.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9OiJIUzI1NiIsInR5cCI6IkpXVCJ9"
    },
    "error": null
}

This endpoint allows users to authenticate and sign in to the partner API.

post/v1/partnerApi/auth/signin

Request body

emailstring
passwordstring

Example request

{
  "email": "YourEmail",
  "password": "YourPassword"
}

Response

200

{"stackTrail":"paths:/v1/partnerApi/auth/signin:post:responses:200:content:application/json:schema:properties:error","oasType":"schema","type":"unknown","example":null,"nullable":true}
messagestring
statusboolean
statusCodenumber

Example response

{
  "message": "User signed-in successfully",
  "result": {
    "profile": {
      "email": "email@voosh.in",
      "id": "c369fc58-48ecc4d5790db1",
      "username": "Chatmeter"
    },
    "refresh": "eyJhbGciOjttRI6IkpXVCJ9.eyJpZCI6ImMzNjlmYzUI6IkpXVCJ9.eyJpZCI6ImMzNjlmYzUI6IkpXVCJ9.eyJpZCI6ImMzNjlmYzUc",
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImMzNjlmYzUI6IkpXVCJ9.eyJpZCI6ImMzNjlmYzUI6IkpXVCJ9.eyJpZCI6ImMzNjlmYzU4LTM"
  },
  "status": true,
  "statusCode": 200
}