Use this API to trigger proof job of a Campaign. Sending Campaign proof is an async process, the API will return a proofJobId which can be used to check the status of the proof.
Campaign Proof Request
Array of objects (Recipient) non-empty Recipients |
Success Response
Bad Request
Not Authorized
Forbidden
Not Found
{- "recipients": [
- {
- "userId": "test@gmail.com",
- "namespace": "Email",
- "channelsData": [
- {
- "channel": "email",
- "subjectPrefix": "string",
- "emailAddresses": [
- "test@gmail.com"
]
}
], - "profile": { },
- "context": { }
}
]
}
{- "proofJobId": "d516349b-9b10-492a-92bb-ea9d941c2df2",
- "status": "CREATED",
- "proofs": [
- {
- "messageId": "8fd4b5e2-e559-425b-bd89-389b007d32d5",
- "variantId": "2d277062-b2d8-441c-85e6-6eb99b6a8600",
- "startDate": "string",
- "targeted": 0,
- "submitted": 0,
- "status": "CREATED",
- "proofFailureReasons": [
- {
- "profileIds": [
- "test@gmail.com"
], - "failureReasons": [
- {
- "title": "A concise error message",
- "status": 400,
- "report": {
- "tenantInfo": null,
- "additionalContext": { }
}, - "error-chain": [
- { }
]
}
]
}
]
}
], - "_links": {
- "self": {
- "href": "/campaign/8fd4b5e2-e559-425b-bd89-389b007d32d5/proof/8fd4b5e2-e559-425b-bd89-389b007d32d5"
}
}
}
Use this API to get status of a Campaign Proof
Success Response
Bad Request
Not Authorized
Forbidden
Not Found
{- "proofJobId": "d516349b-9b10-492a-92bb-ea9d941c2df2",
- "status": "CREATED",
- "proofs": [
- {
- "messageId": "8fd4b5e2-e559-425b-bd89-389b007d32d5",
- "variantId": "2d277062-b2d8-441c-85e6-6eb99b6a8600",
- "startDate": "string",
- "targeted": 0,
- "submitted": 0,
- "status": "CREATED",
- "proofFailureReasons": [
- {
- "profileIds": [
- "test@gmail.com"
], - "failureReasons": [
- {
- "title": "A concise error message",
- "status": 400,
- "report": {
- "tenantInfo": null,
- "additionalContext": { }
}, - "error-chain": [
- { }
]
}
]
}
]
}
], - "_links": {
- "self": {
- "href": "/campaign/8fd4b5e2-e559-425b-bd89-389b007d32d5/proof/8fd4b5e2-e559-425b-bd89-389b007d32d5"
}
}
}