Sign up for newsletters

Sign up a contact for the newsletter. The contact does not need to be an existing customer.

⚠️ We strongly recommend verifying the contact with CAPTCHA before sending a request to CareCloud APIs.

Partner assignment

When a contact is signed up, CareCloud creates one or more customer-partner relations. The assignment is determined as follows:

  • If partner_records is provided (non-empty array) - relations are created for the listed partners without removing existing relations.
  • If partner_records is an empty array ([]) or omitted - relations are created for all partners accessible to the authenticated API user.

Because this endpoint returns no customer ID, partner assignment cannot be managed after the call. Use partner_records to control assignment at sign-up time.

Agreements

The agreements parameter is optional. Providing it updates only the consent types listed, leaving all others unchanged:

  • If agreements is omitted - the customer's existing consents remain unchanged.
  • If agreements is provided - only the consent types included in the request are updated; consent types not present in the request remain unchanged.

Behavior based on account state

The endpoint behaves differently depending on whether the contact already has an account:

  • No existing account: A new non-club account is created with the provided data. The membership level is determined by the customer source configuration. If the customer source does not specify one, the project's non-club membership level is used.
  • Existing active account: No new account is created. Consents are set as provided. Partners are added, and existing partner relations are not removed. The customer source is linked to the account if it is not already linked. If the account is non-club and the customer source has a linked membership level, the membership level is updated.
  • Existing deleted account: Returns HTTP 400 with reason code deleted.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The parameter can contain an email address, a phone number, or another identifier of the contact.

string
required

The unique ID of the customer source.

agreements
object

Customer's consents.

string

The unique ID of the language by ISO 639-1 code. When omitted, the project's default communication language is used for new accounts. For existing accounts, omitting language_id leaves the current language unchanged. GET /languages

partner_records
array of objects
length ≤ 1000

List of partners to associate with the signed-up contact. When provided as a non-empty array, partner assignment is based solely on this list. An empty array is treated the same as omitting this field. See the partner assignment rules in the endpoint description for the full precedence logic. GET /partners

partner_records
Responses
204

No Content

error.error_data.invalid_params[] array lists the parameters that caused the failure, each carrying a reason code. See the BadRequestErrorBody schema for the generic reason taxonomy. Operations with domain-specific business rules document additional reasons at the operation level.

429

Too many requests - more than the resource limit.

503

Temporary state when the service is temporarily unavailable, overloaded or there is a maintenance window.

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json