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"
}
Endpoint Examples
Create Lead
Create a new lead for a specific endpoint
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
Your API key. Include this in the request header as
Authorization: Bearer YOUR_API_KEYPath Parameters
Request Body
Response
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"
}