curl -X GET 'https://api.memchat.io/api-keys' \
-H 'Authorization: Bearer YOUR_JWT_TOKEN'
import requests
response = requests.get(
"https://api.memchat.io/api-keys",
headers={"Authorization": "Bearer YOUR_JWT_TOKEN"}
)
api_keys = response.json()
{
"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
}
API Keys
List API Keys
List all API keys for the authenticated user
GET
/
api-keys
curl -X GET 'https://api.memchat.io/api-keys' \
-H 'Authorization: Bearer YOUR_JWT_TOKEN'
import requests
response = requests.get(
"https://api.memchat.io/api-keys",
headers={"Authorization": "Bearer YOUR_JWT_TOKEN"}
)
api_keys = response.json()
{
"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.memchat.io/api-keys' \
-H 'Authorization: Bearer YOUR_JWT_TOKEN'
import requests
response = requests.get(
"https://api.memchat.io/api-keys",
headers={"Authorization": "Bearer YOUR_JWT_TOKEN"}
)
api_keys = response.json()
Query Parameters
string
Filter by status:
active, expired, revokednumber
default:"50"
Maximum number of API keys to return
number
default:"0"
Number of API keys to skip
Response
array
number
Total number of API keys
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
}

