POST
/
api
/
endpoints
/
{endpointId}
curl -X POST https://app.router.so/api/endpoints/{endpointId} \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "John Doe"}'
{
  "id": "lead_123456",
  "name": "John Doe",
  "createdAt": "2023-04-01T12:00:00Z"
}
This endpoint allows you to create a new lead for a given endpoint ID.

Authentication

Authorization
string
required
Your API key. Include this in the request header as Authorization: Bearer YOUR_API_KEY

Path Parameters

endpointId
string
required
The unique identifier for the user’s endpoint

Request Body

name
string
required
The name of the lead

Response

id
string
The unique identifier for the created lead
name
string
The name of the lead
createdAt
string
The timestamp of when the lead was created (in ISO 8601 format)
curl -X POST https://app.router.so/api/endpoints/{endpointId} \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "John Doe"}'
{
  "id": "lead_123456",
  "name": "John Doe",
  "createdAt": "2023-04-01T12:00:00Z"
}