Create an account for a coding agent
const url = 'https://api.gopromptless.ai/agent-signups';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"organization_name":"Acme Docs"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.gopromptless.ai/agent-signups \ --header 'Content-Type: application/json' \ --data '{ "organization_name": "Acme Docs" }'Create a Promptless account for a coding agent, with no person present. The response carries a token the agent connects to the Promptless MCP server with, and a claim link a person opens to take over the account. Promptless stores only digests of both, so save them from this response.
The request needs no API key. A person must claim the account within 72 hours. Sign-ups are limited to 200 an hour across all callers.
Request Bodyrequired
Section titled “Request Bodyrequired”JSON request body for creating an account for a coding agent.
object
Name of the organization to create.
Responses
Section titled “Responses”The account was created.
Everything the agent needs to connect over MCP and hand the account to a person.
object
Identifier of the new organization.
The organization’s name, as stored.
The Promptless MCP server URL to connect the coding agent to.
Bearer token the agent sends to the MCP server. It needs no OAuth and has no refresh. This response is the only place it appears.
Link a person opens, signed in to Promptless, to become the account’s first admin. This response is the only place it appears.
When the claim link expires. Promptless doesn’t keep an account nobody claimed by then.
Example
{ "organization_id": "org_2b5f9c1e", "organization_name": "Acme Docs", "mcp_url": "https://api.gopromptless.ai/mcp"}The request body doesn’t match the schema, such as an empty organization_name or one longer than 100 characters (invalid_payload). fields names the fields to correct.
Error body returned when an agent sign-up is rejected.
object
Stable machine-readable error code.
What happened and what to do next, written for the agent to act on.
For invalid_payload, the request fields to correct, separated by commas.
For signups_paused, how many seconds to wait before retrying.
Example
{ "error": "signups_paused"}Too many sign-up requests arrived this hour, so sign-up is paused (signups_paused). Retry after the number of seconds in Retry-After, or sign up at the dashboard.
Error body returned when an agent sign-up is rejected.
object
Stable machine-readable error code.
What happened and what to do next, written for the agent to act on.
For invalid_payload, the request fields to correct, separated by commas.
For signups_paused, how many seconds to wait before retrying.
Example
{ "error": "signups_paused"}Headers
Section titled “Headers”Seconds to wait before retrying.
The account service didn’t complete the request (clerk_unavailable). Repeating the request is safe.
Error body returned when an agent sign-up is rejected.
object
Stable machine-readable error code.
What happened and what to do next, written for the agent to act on.
For invalid_payload, the request fields to correct, separated by commas.
For signups_paused, how many seconds to wait before retrying.
Example
{ "error": "signups_paused"}Agent sign-up is unavailable right now (signups_unavailable). Retry in a minute.
Error body returned when an agent sign-up is rejected.
object
Stable machine-readable error code.
What happened and what to do next, written for the agent to act on.
For invalid_payload, the request fields to correct, separated by commas.
For signups_paused, how many seconds to wait before retrying.
Example
{ "error": "signups_paused"}