1. Home
  2. Docs
  3. API Documentation
  4. API Key
  5. ChangeApiToken

ChangeApiToken

Route: https://kayran.live/api/ChangeApiToken

Use this function to receive a new API key which will serve you while using our API.

Roles Required: Admin, User and Private User.

Request Syntax

{
    "apiKey": "String"
}

Request Parameters

Parameters being used in the Request

Parameter Name :

apiKey

Parameter Usage and Options :

Your Kayran given API Key.

How do I get it ? :

Located in the “Profile” section.

Note : by default, the “API Status” is enabled, unless, the Admin has disabled it in the “Server Settings” section.

Type :

String

Is it Optional ? :

No.


Successful Response


{
    "Error": 0,
    "Function": "ChangeApiToken",
    "Data": "String"
}

Errors and their Possible Causes

For more information, please refer to the General Errors section.