Your personal API token authenticates all requests to the Codegen API. This token is tied to your user account and inherits your permissions within organizations.
Most API endpoints require an organization ID to specify which organization’s resources you want to access. You can find your organization ID in the developer settings.
from codegen import Agent# Initialize with your credentialsagent = Agent(org_id="YOUR_ORG_ID", token="YOUR_API_TOKEN")# The SDK handles authentication automaticallytask = agent.run(prompt="Fix the bug in user authentication")