curl --request GET \
--url https://api.embedreach.com/partner/schema-definitions{
"success": true,
"message": "<string>",
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"plural_name": "<string>",
"pluralName": "<string>",
"description": "<string>",
"category": "contacts_schema",
"version_number": 123,
"versionNumber": 123,
"reference_schemas": [
"<string>"
],
"referenceSchemas": [
"<string>"
],
"schema": {},
"external_id_field": "<string>",
"externalIdField": "<string>",
"created_at": "<string>",
"createdAt": "<string>",
"updated_at": "<string>",
"updatedAt": "<string>",
"fieldsToExpose": [
{
"name": "<string>",
"jsonPath": "<string>",
"exposure": [
"segments"
],
"description": "<string>"
}
],
"partner_db_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnerDbId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_db_query": "<string>",
"partnerDbQuery": "<string>",
"deactivated_at": "<string>",
"deactivatedAt": "<string>",
"exposeNameJsonPath": "<string>"
}
]
}Retrieves all active schema definitions for your system
curl --request GET \
--url https://api.embedreach.com/partner/schema-definitions{
"success": true,
"message": "<string>",
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"plural_name": "<string>",
"pluralName": "<string>",
"description": "<string>",
"category": "contacts_schema",
"version_number": 123,
"versionNumber": 123,
"reference_schemas": [
"<string>"
],
"referenceSchemas": [
"<string>"
],
"schema": {},
"external_id_field": "<string>",
"externalIdField": "<string>",
"created_at": "<string>",
"createdAt": "<string>",
"updated_at": "<string>",
"updatedAt": "<string>",
"fieldsToExpose": [
{
"name": "<string>",
"jsonPath": "<string>",
"exposure": [
"segments"
],
"description": "<string>"
}
],
"partner_db_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnerDbId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_db_query": "<string>",
"partnerDbQuery": "<string>",
"deactivated_at": "<string>",
"deactivatedAt": "<string>",
"exposeNameJsonPath": "<string>"
}
]
}Status 200 response
List of schema definitions
Show child attributes
Unique identifier for the schema definition
Platform ID this schema belongs to
Name of the schema
[Deprecated] Please use pluralName instead. Plural name of the schema
Plural name of the schema
Description of the schema
Schema category
contacts_schema, transactions_schema, custom_schema, combined_schema, locations_schema, customer_fields [Deprecated] Please use versionNumber instead. Schema version number
Schema version number
[Deprecated] Please use referenceSchemas instead. References to other schemas
References to other schemas
[Deprecated] Please use externalIdField instead. Field used for external ID references
Field used for external ID references
[Deprecated] Please use createdAt instead. Creation timestamp
Creation timestamp
[Deprecated] Please use updatedAt instead. Last update timestamp
Last update timestamp
Fields to expose
Show child attributes
The name of the field
The JSON path to the field in the custom resource (e.g. .user.rewards.points for the json { "user": { "rewards": { "points": 100 } } })
How to expose this field, is it available in segments, email builder, etc.
segments, merge-fields The description of the field
[Deprecated] Please use partnerDbId instead. Database ID for the schema
Database ID for the schema
[Deprecated] Please use partnerDbQuery instead. Database query for the schema
Database query for the schema
[Deprecated] Please use deactivatedAt instead. When this schema was deactivated
When this schema was deactivated
The JSON path to the field in the schema that will be used to expose the resource to the user. If not provided, the resource will not be exposed to the user.