Start a coding agent session

Required scope: command_coding_agent_sessions:write

Starts a coding agent session on a ticket or to-do, as delegating to a coding agent in Asana does. Requires permission to comment on the target and to use the coding agent. The target must be in a Command teamspace, and the user must have connected their account and set up the coding agent's settings in that teamspace; otherwise the request fails with 403 and the error coding_agent_not_ready. A ticket and its to-dos can have at most 10 sessions in status launching or active at once; starting another fails with 403 and the error too_many_running_coding_agent_sessions. The session is returned with status launching; problems found while launching show up later as status failed with a fail_reason.

🚧

Early Access

Command endpoints are in early access and the interface is subject to change. For updates, please refer to our API Changelog.

📘

Command license required

To use these endpoints, you need a Command license. Learn what Command includes

📘

Permissions and user authorization

Apps with Full Permissions or command_coding_agent_sessions:write scope can start sessions on the user’s behalf.

Query Params
opt_fields
array of strings

This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include. Properties can include nested fields. To learn more, see the input/output options guide.

opt_fields
boolean

Provides “pretty” output.
Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.

Body Params

The session to start.

data
object
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json