cURL
curl --request POST \ --url https://api.entityml.com/api/v1/keys
{ "success": true, "data": { "key_id": "<string>", "api_key": "<string>", "user_id": "<string>", "name": "<string>", "created_at": "<string>" } }
Create a new API key for a user.
Authorization
Show Key details
from poly_storage_sdk import PolyStorageClient client = PolyStorageClient() created = client.api_keys.create(name="my-api-key", user_id="YOUR_USER_ID") print(created)
{ "success": true, "data": { "key_id": "uuid-string", "api_key": "pk_generated_api_key", "user_id": "user-uuid", "name": "my-api-key", "created_at": "2025-01-15T10:30:00Z" } }