Skip to main content
POST
/
api-keys
Create API Key
curl --request POST \
  --url https://api.amisend.com/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "My API Key"
}'
{
  "_id": "<string>",
  "name": "<string>",
  "shortApikey": "<string>",
  "status": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
Example:

"My API Key"

Response

API Key created successfully

_id
string
name
string
shortApikey
string
status
string
createdAt
string<date-time>
I