Documentation Index
Fetch the complete documentation index at: https://docs.agenhq.com/llms.txt
Use this file to discover all available pages before exploring further.
Get started with the Coding Agent API
Use the Coding Agent API to create and manage Agen coding sessions programmatically. Before you make your first request, you need an Agen account, a workspace, an API key, and at least one connected repository.Prerequisites
Make sure you have the following ready:- An Agen Web Portal account
- A workspace where you want to run coding sessions
- A repository connected to that workspace
- An API client such as
curl, Postman, or your application backend
Step 1: Set up your Agen workspace
- Sign in to the Agen Web Portal.
- Create a workspace if you do not already have one.
- Open the workspace and connect the repository you want the agent to work on.
- Verify the repository has the permissions Agen needs to read, branch, and open changes safely.
Step 2: Get your API key
- In the Agen Web Portal, open your workspace.
- Navigate to the API settings or developer settings area for your workspace.
- Generate a new API key.
- Copy the key and store it in a secure secret manager or environment variable.
Step 3: Confirm the API base URL
Use the Coding Agent API reference in this docs section together with your API key to authenticate requests. If your team uses a hosted Agen environment, use the API base URL provided with that environment. When sending requests, include your API key as a bearer token:Step 4: Make your first API request
A common first step is to inspect the available endpoints in this reference and then create or manage a session for a repository in your workspace. You can use the interactive API reference on this page set to:- Review available endpoints
- Understand request and response schemas
- Test requests with your API key in a safe development environment
Next steps
API reference
Explore the full Coding Agent API reference and available endpoints.
Schemas
Review the session schema used by the Coding Agent API.