Skip to main content
POST
/
auth
/
v1
/
apikeys
cURL
curl --request POST \
  --url https://api-dev.meeamitech.com/auth/v1/apikeys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Suresh",
  "isPublic": true
}
'
{
  "message": "API key is created successfully",
  "data": {
    "_id": "67c52a1526865c41a282c4e9",
    "teamId": "67a2ea1d828c9098134e7b92",
    "name": "Suresh",
    "key": "3289e233-93f7-411e-9d06-308c26fc278f",
    "createdAt": "2025-03-03T03:58:10.357+00:00",
    "expiresAt": "2025-03-10T04:03:33.131+00:00",
    "uuid": "67af1bcea4f8dca74f0d51b0",
    "isPublic": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

API key details to be created

isPublic
enum<boolean>
required

Whether the API key is public.

Available options:
true,
false
name
string
required

Name of the API key.

allowedOrigins
string[]

List of allowed origins (only required if isPublic is false).

Response

200 - application/json

API Key created successfully

_id
string
teamId
string
name
string
key
string
createdAt
string<date-time>
expiresAt
string<date-time>
uuid
string
isPublic
boolean