Skip to main content
POST
/
agent
/
dev
/
keys
List agent dev keys
curl --request POST \
  --url https://public-api-v2.bags.fm/api/v1/agent/dev/keys \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>"
}
'
{
  "success": true,
  "response": [
    {
      "status": "active",
      "userId": "<string>",
      "name": "<string>",
      "keyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "key": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "lastUsedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Body

application/json
token
string
required

JWT token from login

Response

Successfully retrieved API keys

success
boolean
required
Example:

true

response
object[]

Array of API keys associated with the authenticated agent