API reference
Astro AI REST API for agents and accounts
The Astro AI API lets you list and inspect agents, register and push builds, and retrieve deployment configuration. It is used by the ast CLI and the Astro AI dashboard.
Base URL
Requests go to your Astro AI server, for example:
The base URL is set when you run ast login and is stored in your profile.
Authentication
- Public:
GET /agents(list public catalog) andGET /agents/:account/:name(public view of an agent) do not require authentication. - Authenticated: All other endpoints require a Bearer token. Use
ast loginto obtain and store tokens; the CLI sends them automatically.
Send the token in the header:
Agents
Profile
OpenAPI spec
The reference documentation in the Endpoints section is generated from the Astro AI OpenAPI specification. You can use it to generate clients or integrate with the API programmatically.