pydo.genai.create_agent_api_key()
Generated on 7 Jul 2026
from pydo version
v0.39.0
Usage
client.genai.create_agent_api_key(
agent_uuid="\"123e4567-e89b-12d3-a456-426614174000\"",
body={
"agent_uuid": "\"12345678-1234-1234-1234-123456789012\"",
"name": "Production Key",
},
)Description
To create an agent API key, send a POST request to /v2/gen-ai/agents/{agent_uuid}/api_keys.
Parameters
agent_uuidstring requiredAgent id
agent_uuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"Agent id
namestring optionalExample:
Production KeyA human friendly name to identify the key
Request Sample
Response Example
More Information
See /v2/gen-ai/agents/{agent_uuid}/api_keys in the API reference for additional detail on responses, headers, parameters, and more.