curl -X POST 'https://api.memsync.ai/api-keys' \ -H 'Authorization: Bearer YOUR_JWT_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "name": "Production API Key", "scopes": ["memories:read", "memories:write", "profile:read"], "expires_in": 2592000 }'
{ "api_key_id": "key_123abc", "key": "memsync_sk_live_abc123def456...", "name": "Production API Key", "scopes": ["memories:read", "memories:write", "profile:read"], "created_at": "2024-01-15T16:30:00Z", "expires_at": "2024-02-14T16:30:00Z" }
Create a new API key for programmatic access