POST Create GTM messaging

Base URL: https://server-url-from-token-page.endpoint. Version: 1.2.0.

POST /api/v1/public/gtm/messagings — Create GTM messaging

Read/write token required

Create workspace messaging. Requires write permission. Creates require clientRequestId; updates and deletions require expectedRevision. Omitted update fields are retained; supplied arrays replace existing arrays. Referenced records cannot be deleted. 5. Messaging: select one saved Offering and one or more of its Segments. Optionally select one or more saved Buying Logics with the same Offering and overlapping Segments. Define where buyers are today and public/private use (default public), then the seven layers. Claims/proof links and References are optional; each included claim requires a saved, eligible Proof.

Send the documented JSON object. Workspace scope comes exclusively from the bearer credential. Requires a read/write API credential. Check receipts before retrying a timed-out write.

JSON body fields

input (body, object, required)

See the JSON schema for this field’s contract.

name (body, string, required)

See the JSON schema for this field’s contract.

offeringId (body, string, required)

See the JSON schema for this field’s contract.

segmentIds (body, string[], required)

See the JSON schema for this field’s contract.

logicIds (body, string[], optional)

See the JSON schema for this field’s contract.

startingPoint (body, string, optional)

See the JSON schema for this field’s contract.

belief (body, string, optional)

See the JSON schema for this field’s contract.

stall (body, string, optional)

See the JSON schema for this field’s contract.

layers (body, object, required)

See the JSON schema for this field’s contract.

drivers (body, string, required)

See the JSON schema for this field’s contract.

pains (body, string, required)

See the JSON schema for this field’s contract.

coping (body, string, required)

See the JSON schema for this field’s contract.

category (body, string, required)

See the JSON schema for this field’s contract.

subcategory (body, string, required)

See the JSON schema for this field’s contract.

dimensions (body, string, required)

See the JSON schema for this field’s contract.

vendor (body, string, required)

See the JSON schema for this field’s contract.

gains (body, string, optional)

See the JSON schema for this field’s contract.

alternatives (body, object[], optional)

See the JSON schema for this field’s contract.

id (body, string, required)

See the JSON schema for this field’s contract.

  • Minimum length: 1
  • Maximum length: 100
name (body, string, required)

See the JSON schema for this field’s contract.

pros (body, string, required)

See the JSON schema for this field’s contract.

cons (body, string, required)

See the JSON schema for this field’s contract.

consequences (body, string, required)

See the JSON schema for this field’s contract.

chosen (body, object, required)

See the JSON schema for this field’s contract.

id (body, string, required)

See the JSON schema for this field’s contract.

  • Minimum length: 1
  • Maximum length: 100
name (body, string, required)

See the JSON schema for this field’s contract.

pros (body, string, required)

See the JSON schema for this field’s contract.

cons (body, string, required)

See the JSON schema for this field’s contract.

consequences (body, string, required)

See the JSON schema for this field’s contract.

dimensions (body, object[], optional)

See the JSON schema for this field’s contract.

id (body, string, required)

See the JSON schema for this field’s contract.

  • Minimum length: 1
  • Maximum length: 100
name (body, string, required)

See the JSON schema for this field’s contract.

first (body, string, required)

See the JSON schema for this field’s contract.

second (body, string, required)

See the JSON schema for this field’s contract.

position (body, string, required)

See the JSON schema for this field’s contract.

reason (body, string, required)

See the JSON schema for this field’s contract.

capabilities (body, string, optional)

See the JSON schema for this field’s contract.

productDetails (body, string, optional)

See the JSON schema for this field’s contract.

safety (body, string, optional)

See the JSON schema for this field’s contract.

claims (body, object[], optional)

See the JSON schema for this field’s contract.

id (body, string, required)

See the JSON schema for this field’s contract.

  • Minimum length: 1
  • Maximum length: 100
text (body, string, required)

See the JSON schema for this field’s contract.

layer (body, string, required)

See the JSON schema for this field’s contract.

proofId (body, string, required)

See the JSON schema for this field’s contract.

referenceIds (body, string[], optional)

See the JSON schema for this field’s contract.

summary (body, string, optional)

See the JSON schema for this field’s contract.

use (body, string, optional)

See the JSON schema for this field’s contract.

clientRequestId (body, string, required)

See the JSON schema for this field’s contract.

JSON request body schema
{
  "type": "object",
  "properties": {
    "input": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "offeringId": {
          "type": "string"
        },
        "segmentIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "logicIds": {
          "nullable": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "startingPoint": {
          "type": "string",
          "nullable": true
        },
        "belief": {
          "type": "string",
          "nullable": true
        },
        "stall": {
          "type": "string",
          "nullable": true
        },
        "layers": {
          "type": "object",
          "properties": {
            "drivers": {
              "type": "string"
            },
            "pains": {
              "type": "string"
            },
            "coping": {
              "type": "string"
            },
            "category": {
              "type": "string"
            },
            "subcategory": {
              "type": "string"
            },
            "dimensions": {
              "type": "string"
            },
            "vendor": {
              "type": "string"
            }
          },
          "required": [
            "drivers",
            "pains",
            "coping",
            "category",
            "subcategory",
            "dimensions",
            "vendor"
          ],
          "additionalProperties": false
        },
        "gains": {
          "type": "string",
          "nullable": true
        },
        "alternatives": {
          "nullable": true,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "name": {
                "type": "string"
              },
              "pros": {
                "type": "string"
              },
              "cons": {
                "type": "string"
              },
              "consequences": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "pros",
              "cons",
              "consequences"
            ],
            "additionalProperties": false
          }
        },
        "chosen": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "name": {
              "type": "string"
            },
            "pros": {
              "type": "string"
            },
            "cons": {
              "type": "string"
            },
            "consequences": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name",
            "pros",
            "cons",
            "consequences"
          ],
          "additionalProperties": false
        },
        "dimensions": {
          "nullable": true,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "name": {
                "type": "string"
              },
              "first": {
                "type": "string"
              },
              "second": {
                "type": "string"
              },
              "position": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "first",
              "second",
              "position",
              "reason"
            ],
            "additionalProperties": false
          }
        },
        "capabilities": {
          "type": "string",
          "nullable": true
        },
        "productDetails": {
          "type": "string",
          "nullable": true
        },
        "safety": {
          "type": "string",
          "nullable": true
        },
        "claims": {
          "nullable": true,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "text": {
                "type": "string"
              },
              "layer": {
                "type": "string"
              },
              "proofId": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "text",
              "layer",
              "proofId"
            ],
            "additionalProperties": false
          }
        },
        "referenceIds": {
          "nullable": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "summary": {
          "type": "string",
          "nullable": true
        },
        "use": {
          "type": "string",
          "nullable": true
        }
      },
      "required": [
        "name",
        "offeringId",
        "segmentIds",
        "layers",
        "chosen"
      ],
      "additionalProperties": false
    },
    "clientRequestId": {
      "type": "string"
    }
  },
  "required": [
    "input",
    "clientRequestId"
  ],
  "additionalProperties": false
}
JSON response schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "revision": {
      "type": "number"
    },
    "updatedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        }
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "confirmed"
      ]
    },
    "confirmation": {
      "nullable": true,
      "type": "object",
      "properties": {
        "confirmedBy": {
          "type": "string"
        },
        "confirmedByName": {
          "type": "string"
        },
        "confirmedAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "string"
            }
          ]
        },
        "confirmedRevision": {
          "type": "number"
        }
      },
      "required": [
        "confirmedBy",
        "confirmedByName",
        "confirmedAt",
        "confirmedRevision"
      ],
      "additionalProperties": false
    },
    "use": {
      "type": "string",
      "enum": [
        "private",
        "public"
      ]
    }
  },
  "required": [
    "id",
    "name",
    "revision",
    "updatedAt",
    "use"
  ],
  "additionalProperties": false
}

Responses

200: Operation receipt or read result. Arrays are returned under items; scalar and null results under value.
RateLimit-Policy (header, value, optional)

Response header

RateLimit-Limit (header, value, optional)

Response header

RateLimit-Remaining (header, value, optional)

Response header

RateLimit-Reset (header, value, optional)

Response header

400: Invalid operation input or record identifiers.
400 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
401: Bearer credential is missing, expired or invalid.
401 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
402: Insufficient research credits. Add credits before retrying.
402 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
403: Write access or resource permission is required.
403 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
404: Record is not available in the credential workspace.
404 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
405: Use the documented HTTP method.
405 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
409: Revision conflict or a record has dependencies. Refetch and reconcile links before retrying.
409 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
413: Request exceeds the permitted JSON body size.
413 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
429: Rate limit exceeded. Observe Retry-After.
RateLimit-Policy (header, value, optional)

Response header

RateLimit-Limit (header, value, optional)

Response header

RateLimit-Remaining (header, value, optional)

Response header

RateLimit-Reset (header, value, optional)

Response header

429 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
500: Internal server error.
500 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
503: Service temporarily unavailable. Observe Retry-After when present.
503 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
504: Execution timed out. A write may have committed; check receipts or progress before retrying.
504 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}

Create GTM messaging

curl -X POST "https://server-url-from-token-page.endpoint/api/v1/public/gtm/messagings" \
  -H "Authorization: Bearer $DOE_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  --data-raw '{
  "input": {
    "name": "Claims automation narrative",
    "offeringId": "507f1f77bcf86cd799439011",
    "segmentIds": [
      "507f1f77bcf86cd799439012"
    ],
    "logicIds": [],
    "layers": {
      "drivers": "Rising claims costs",
      "pains": "Manual review delays",
      "coping": "Adding temporary staff",
      "category": "Compare automation with outsourcing",
      "subcategory": "Explainable claims automation",
      "dimensions": "Accuracy and auditability",
      "vendor": "Transparent decisions backed by evidence"
    },
    "chosen": {
      "id": "chosen",
      "name": "Claims automation",
      "pros": "Faster handling",
      "cons": "Integration effort",
      "consequences": "A more auditable workflow"
    }
  },
  "clientRequestId": "replace-with-unique-request-id"
}'
Response example
No response example is supplied. See the JSON response schema.