---
title: "Generate Token"
method: POST
path: "/v1/auth/generate-token"
tags: ["Authentication"]
---

# Generate Token

`POST /v1/auth/generate-token`

## Request

- Base URL: `https://api.credilinq.ai`
- URL: `https://api.credilinq.ai/v1/auth/generate-token`
- Auth: none declared

## Headers

- `accept-language` string

## Request body

- GenerateTokenDto
  - `client_id` string, required: Provide Client ID shared with you
  - `client_secret` string, required: Provide Client Secret shared with you

## Response `200`

Token Generated Successfully

- GenerateTokenSuccessResponse
  - `statusCode` number, required: The HTTP status code of the error
  - `data` TokenResponse, required
    - `access_token` string, required: Access-Token, which will be used for all operations
    - `scope` string, required: Scope of the access-token
    - `expires_in` number, required: Expiry of the access-token
    - `token_type` string, required: Access-Token type
  - `message` string, required: Human-readable message containing all available details about the operation
  - `success` boolean, required: A boolean indicating whether this was a success response or an error response

## Other responses

- `400`: Invalid Request

---

[API](https://skmtc.dev/credilinq/apis/credilinq-apis.md) - [All operations](https://skmtc.dev/credilinq/apis/credilinq-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/credilinq/apis/credilinq-apis/revisions/9c7459ed471b?raw)
