Add API_USER

Create an API_USER (POST only; official description 'Same as GET method' refers to parameter passing, the OpenAPI method is POST).
Tips:

  1. To enable click-tracking, you need to make sure the bound domain has passed "cname" configuration validation.
  2. When trackDomainName is the system default tracking domain name (track2.sendcloud.net), reading tracking and click tracking cannot be enabled — the server forces open=0 and click=0 (APIUserController:283-290). This also applies when trackDomainName is omitted.
  3. Unsubscribe tracking is forcibly enabled (1) for free accounts regardless of the unsubscribe parameter (APIUserController:225-227).
  4. An account may hold at most 10 NORMAL API_USERs (Constant.MAX_CATEGORY_COUNT); exceeding returns 41112 unless the account is whitelisted.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Form Data
string
required
length between 6 and 64
^[A-Za-z0-9_][[email protected]]{5,63}$

APIUSER name: 6-64 chars, must start with a letter/digit/underscore; may contain A-Z a-z 0-9 @ . - (Category.CATEGORY_PATTERN). Must be unique; duplicates fail creation with 41119 + 'API_USER already exists'.

integer
enum
required

Email type: 0 (Trigger), 1 (Batch). Non-integer or out-of-enum values return 41102.

Allowed:
string
required
length between 4 and 255
^([a-z0-9A-Z][a-z0-9A-Z\-]{0,46}[a-z0-9A-Z]{0,1}\.)+([a-z0-9A-Z]+)$

API_USER bound domain name: total length 4-255 AND each label 1-48 chars. Must be an existing domain owned by the caller (41108); test domains and unverified domains are rejected inside creation (41119 with service message).

string
length between 4 and 255
^([a-z0-9A-Z][a-z0-9A-Z\-]{0,46}[a-z0-9A-Z]{0,1}\.)+([a-z0-9A-Z]+)$

API_USER bound tracking domain. When omitted or equal to the default (track2.sendcloud.net): defaults to the system tracking domain and forces open=0, click=0. Otherwise must be an existing tracking domain of the caller with CNAME status passed or todo (41018/41019).

integer
1 to 2147483646

Unsubscribe page ID: integer in [1, 2147483646] (0, negative, >= 2147483647 or non-integer return 41113). Must reference an existing unsubscribe page owned by the caller, otherwise 41112.

integer
enum
Defaults to 0

Whether to enable open-tracking: 0 (disable), 1 (enable); disable by default. Non-{0,1} integer or non-integer returns 41114. Forced to 0 when the tracking domain is the default one.

Allowed:
integer
enum
Defaults to 0

Whether to enable click-tracking: 0 (disable), 1 (enable); disable by default. Non-{0,1} integer or non-integer returns 41116. Forced to 0 when the tracking domain is the default one.

Allowed:
integer
enum
Defaults to 1

Whether to enable unsubscribe-tracking: 0 (disable), 1 (enable); enabled by default. Non-{0,1} integer or non-integer returns 41118. Forced to 1 for free accounts (server-side, reflected in the response).

Allowed:
Responses

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