Authorization Key Routes

These are the API routes to do with the API keys on the project.

Create a new API Key With No Note

POST /apiKeys/new/[ User To Grant To ]

This will create a new API Key for a specific user without any note attached.

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

User To Grant To

string

This is a user name to grant to

Response

{
    "token": "string"
}

Create a new API Key With Note

POST /apiKeys/new/[ User To Grant To ]/[ Note ]

This will create a new API Key for a specific user without any note attached.

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

User To Grant To

string

This is a user name to grant to

Note

string

This is a note to be added for the key

Response

Delete API Key For Users

DELETE apiKeys/remove/[ User To Grant To ]

This will delete all API Keys for a specific user.

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

User To Grant To

string

This is a user name to grant to

Response

Get All Users Keys

GET /apiKeys/getUserKeys/[ User Granted To ]

This will get all the keys for a specific user.

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Body

Name
Type
Description

name

string

Name of the user

age

number

Age of the user

Response

Get All Keys

GET /apiKeys/getKeys

This will return all API keys.

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Response

Last updated