Skip to content

For the complete documentation index, see llms.txt.

Create an account for a coding agent

POST
/agent-signups
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.

Media typeapplication/json
CreateAgentSignupRequest

JSON request body for creating an account for a coding agent.

object
organization_name
required
Organization Name

Name of the organization to create.

string
>= 1 characters <= 100 characters

The account was created.

Media typeapplication/json
CreateAgentSignupResponse

Everything the agent needs to connect over MCP and hand the account to a person.

object
organization_id
required
Organization Id

Identifier of the new organization.

string
organization_name
required
Organization Name

The organization’s name, as stored.

string
mcp_url
required
Mcp Url

The Promptless MCP server URL to connect the coding agent to.

string
access_token
required
Access Token

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.

string
claim_url
required
Claim Url

Link a person opens, signed in to Promptless, to become the account’s first admin. This response is the only place it appears.

string
expires_at
required
Expires At

When the claim link expires. Promptless doesn’t keep an account nobody claimed by then.

string format: date-time
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.

Media typeapplication/json
AgentSignupErrorResponse

Error body returned when an agent sign-up is rejected.

object
error
required
Error

Stable machine-readable error code.

string
message
required
Message

What happened and what to do next, written for the agent to act on.

string
fields
Fields

For invalid_payload, the request fields to correct, separated by commas.

string | null
retry_after_seconds
Retry After Seconds

For signups_paused, how many seconds to wait before retrying.

integer | null
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.

Media typeapplication/json
AgentSignupErrorResponse

Error body returned when an agent sign-up is rejected.

object
error
required
Error

Stable machine-readable error code.

string
message
required
Message

What happened and what to do next, written for the agent to act on.

string
fields
Fields

For invalid_payload, the request fields to correct, separated by commas.

string | null
retry_after_seconds
Retry After Seconds

For signups_paused, how many seconds to wait before retrying.

integer | null
Example
{
"error": "signups_paused"
}
Retry-After
integer

Seconds to wait before retrying.

The account service didn’t complete the request (clerk_unavailable). Repeating the request is safe.

Media typeapplication/json
AgentSignupErrorResponse

Error body returned when an agent sign-up is rejected.

object
error
required
Error

Stable machine-readable error code.

string
message
required
Message

What happened and what to do next, written for the agent to act on.

string
fields
Fields

For invalid_payload, the request fields to correct, separated by commas.

string | null
retry_after_seconds
Retry After Seconds

For signups_paused, how many seconds to wait before retrying.

integer | null
Example
{
"error": "signups_paused"
}

Agent sign-up is unavailable right now (signups_unavailable). Retry in a minute.

Media typeapplication/json
AgentSignupErrorResponse

Error body returned when an agent sign-up is rejected.

object
error
required
Error

Stable machine-readable error code.

string
message
required
Message

What happened and what to do next, written for the agent to act on.

string
fields
Fields

For invalid_payload, the request fields to correct, separated by commas.

string | null
retry_after_seconds
Retry After Seconds

For signups_paused, how many seconds to wait before retrying.

integer | null
Example
{
"error": "signups_paused"
}