Svit.One Docs
Reference

Submit external form

Submit a contact form from an external website. Creates a new person record in the CRM system. Requires a valid client token in the x-client-token header.

POST/v1/external/client/form

Submit a contact form from an external website. Creates a new person record in the CRM system. Requires a valid client token in the x-client-token header.

Header Parameters

x-client-token*string

Client token for project authentication

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api-external.svit.one/api/v1/external/client/form" \  -H "x-client-token: string" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "phone": "string"  }'
{
  "personId": "string",
  "message": "string"
}
{
  "type": "https://api-errors.svit.one/validation/invalid-request",
  "title": "Validation Failed",
  "status": 400,
  "detail": "Phone is required",
  "code": "INVALID_REQUEST",
  "errors": [
    {
      "field": "phone",
      "message": "Phone is required"
    }
  ],
  "timestamp": "2026-04-23T18:30:54.061Z"
}
{
  "type": "https://api-errors.svit.one/external-client/invalid-token",
  "title": "Invalid Client Token",
  "status": 401,
  "detail": "The provided client token is invalid",
  "code": "INVALID_CLIENT_TOKEN",
  "timestamp": "2026-04-23T18:30:54.061Z"
}
{
  "type": "https://api-errors.svit.one/external-client/invalid-origin",
  "title": "Origin Not Allowed",
  "status": 403,
  "detail": "Origin 'https://example.com' is not allowed for this token",
  "code": "INVALID_CLIENT_ORIGIN",
  "timestamp": "2026-04-23T18:30:54.062Z"
}
{
  "type": "https://api-errors.svit.one/internal/server-error",
  "title": "Internal Server Error",
  "status": 500,
  "detail": "An unexpected error occurred",
  "code": "INTERNAL_SERVER_ERROR",
  "timestamp": "2026-04-23T18:30:54.062Z"
}