---
title: "Get Initial Access Tokens"
method: POST
path: "/v1/partnerApi/auth/signin"
tags: ["Partner Authentication"]
---

# Get Initial Access Tokens

`POST /v1/partnerApi/auth/signin`

## 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

| Parameter | Type | Description |
| --- | --- | --- |
| email | string | The email address of the user. |
| password | string | The password for the user. |

**Example Request Body:**

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

 ```

### Response

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

#### Response Structure

| Parameter | Type | Description |
| --- | --- | --- |
| status | boolean | Indicates if the request was successful. |
| statusCode | integer | Code representing the status of the response. |
| message | string | A message providing additional information (if any). |
| result | object | Contains the authentication result. |
| profile | object | User profile information. |
| id | string | Unique identifier for the user. |
| email | string | Email address of the user. |
| username | string | Username of the user. |
| token | string | Authentication token for the session (expires in 24 hours). |
| refresh | string | Refresh token for obtaining a new access token. |
| error | object | Contains error information if authentication fails. |

**Example Response:**

``` json
{
    "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.

## Request body

- object
  - `email` string
  - `password` string

## Response `200`

200

- object
  - `error` unknown
  - `message` string
  - `result` object
    - `profile` object
      - `email` string
      - `id` string
      - `username` string
    - `refresh` string
    - `token` string
  - `status` boolean
  - `statusCode` number

---

[API](https://skmtc.net/voosh/apis/voosh-api-documentation.md) · [All operations](https://skmtc.net/voosh/apis/voosh-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voosh/voosh-api-documentation/revisions/d53ba6056960/schema)
