Before you begin
You need:- A Cursor Cloud Agent endpoint that contains the agent ID.
- A Cursor API key authorized to run that agent.
- A Pinter agent to assign to the integration.
- Permission to create integrations.
Create the integration
1
Open integrations
In Pinter, go to Integrations at
/integrations and create an
integration.2
Select the HTTP channel
Set the channel type to
http and select the Pinter agent that will use the
integration.3
Enter the connection configuration
Add the Cursor endpoint and API key to the JSON connection configuration.You can use
api_key instead of cursor_api_key. Pinter also accepts the
credential from headers.Authorization, headers.api_key, or
headers.cursor_api_key.4
Save and test the integration
Save the integration, assign its tool to an agent, and run a request that
delegates a coding task.
Request behavior
When the integration endpoint containscursor.com, Pinter:
- Extracts the Cursor agent ID from the endpoint path.
- Sends the request to
https://api.cursor.com/v1/agents/{agent_id}/runs. - Adds the API key as a bearer token.
- Sends the Pinter agent message in this payload:
Handle a busy agent
Cursor returns HTTP409 when the selected Cloud Agent is already processing
another request. Pinter converts that response into:
agent_busy.