Early access: these pages are being written and reviewed. Facts in the header boxes come straight from the product.
Call the MCP server (JSON-RPC)
POST
/mcp
const url = 'https://api.pitch2sale.com/mcp';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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.pitch2sale.com/mcp \ --header 'Authorization: Bearer <token>'Send one JSON-RPC 2.0 request (initialize, tools/list, tools/call) authenticated with a personal access token; write tools need the MCP write scope. Stateless, one JSON response per request. See the MCP guide.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”A JSON-RPC response; a failed call carries error instead of result
Media typeapplication/json
object
jsonrpc
required
string
id
required
string | number | null
result
required
object
key
additional properties
Example
{ "jsonrpc": "2.0"}Authentication required or token invalid
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}Role permission or token scope missing
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}Rate limit exceeded
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}Internal error envelope
Media typeapplication/json
object
jsonrpc
required
string
error
required
object
code
required
number
message
required
string
id
required
string | number | null
Example
{ "jsonrpc": "2.0"}