GET
/
api-keys
curl -X GET 'https://api.memsync.ai/api-keys' \
  -H 'Authorization: Bearer YOUR_JWT_TOKEN'
{
  "api_keys": [
    {
      "api_key_id": "key_123abc",
      "name": "Production API Key",
      "scopes": ["memories:read", "memories:write", "profile:read"],
      "status": "active",
      "last_used": "2024-01-15T15:30:00Z",
      "created_at": "2024-01-15T16:30:00Z",
      "expires_at": "2024-02-14T16:30:00Z"
    }
  ],
  "total": 1,
  "has_more": false
}
Retrieves a list of all API keys associated with the authenticated user account.
curl -X GET 'https://api.memsync.ai/api-keys' \
  -H 'Authorization: Bearer YOUR_JWT_TOKEN'

Query Parameters

status
string
Filter by status: active, expired, revoked
limit
number
default:"50"
Maximum number of API keys to return
offset
number
default:"0"
Number of API keys to skip

Response

api_keys
array
List of API keys
total
number
Total number of API keys
has_more
boolean
Whether there are more API keys to fetch
{
  "api_keys": [
    {
      "api_key_id": "key_123abc",
      "name": "Production API Key",
      "scopes": ["memories:read", "memories:write", "profile:read"],
      "status": "active",
      "last_used": "2024-01-15T15:30:00Z",
      "created_at": "2024-01-15T16:30:00Z",
      "expires_at": "2024-02-14T16:30:00Z"
    }
  ],
  "total": 1,
  "has_more": false
}