OpenSend docs
Create Contact Property
Create a custom contact property definition for audience management.
POST /contact-properties
POST /api/properties
Compatibility behavior
/contact-properties is the compatibility alias. In this mode the request body is validated strictly:
nameis required and trimmed.keyis required and cannot be omitted.typeis required and must be one ofstring,number,boolean, ordate.fallback_valueis optional.
/api/properties retains OpenSend extension behavior:
keymay be omitted and is derived fromnamewhen missing.typedefaults tostringwhen omitted.- Existing
/api/propertiesintegration behavior is preserved.
Authentication
Use an OpenSend API key in the Authorization header.
http
Authorization: Bearer os_YOUR_API_KEYDashboard session cookies are not API credentials.
Parameters
name(required)key(optional; required for/contact-properties)type(optional; required for/contact-properties)fallback_value(optional)
Response
Returns an OpenSend JSON response for the authenticated tenant. Error responses use OpenSend error envelopes and standard HTTP status codes.
Self-hosting notes
Self-hosted deployments can use the same path on their own OPENSEND_BASE_URL. Ensure middleware is enabled so API-like requests are routed to /api/properties while dashboard page routes continue to render normally.