Skip to main content
PUT
/
api-keys
Update API keys
curl --request PUT \
  --url https://app2.freyavoice.ai/api/v2/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "apiKeys": [
    {
      "id": "<string>",
      "name": "<string>",
      "isActive": true,
      "expiresAt": "<string>",
      "rateLimit": {
        "requestsPerMinute": 123,
        "requestsPerDay": 123
      }
    }
  ]
}
'
{
  "success": true,
  "data": {
    "message": "<string>",
    "result": {
      "updated": [
        {
          "id": "<string>",
          "key": "<string>",
          "workspaceId": "<string>",
          "userId": "<string>",
          "name": "<string>",
          "isActive": true,
          "createdAt": "<string>",
          "lastUsedAt": "<string>",
          "expiresAt": "<string>",
          "rateLimit": {
            "requestsPerMinute": 123,
            "requestsPerDay": 123
          },
          "creator": {
            "id": "<string>",
            "email": "[email protected]",
            "displayName": "<string>"
          }
        }
      ],
      "errors": [
        {
          "id": "<string>",
          "error": "<string>",
          "details": [
            {
              "field": "<string>",
              "message": "<string>"
            }
          ]
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
apiKeys
object[]
required

Response

API keys updated

success
enum<boolean>
required
Available options:
true,
false
data
object
required