Skip to main content
POST
/
api
/
v1
/
accounts
/
{userId}
/
keys
Create an API key.
curl --request POST \
  --url https://api.revong.com/api/v1/accounts/{userId}/keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "restricted": true,
  "whitelist": [
    {
      "name": "<string>",
      "type": "<string>",
      "value": "<string>"
    }
  ],
  "expireAt": "2023-11-07T05:31:56Z"
}'

Authorizations

Authorization
string
header
required

Bearer token with Platform JWT token or API Key.

Path Parameters

userId
string
required

Body

application/json
name
string
required

You need to provide name of the user.

restricted
boolean
required

You can provide if key should be whitelisted.

expireAt
string<date-time>
required

Aggregation period from.

whitelist
object[]

In case when restricted, this should be filled also.

Response

OK.