What is missing to send: content, audience, connection, sending domain and test send (codes only; changes nothing)
GET
/v1/campaigns/{campaign}/readiness
const url = 'https://api.replifier.com/v1/campaigns/cmp_01hx0000000000000000000000/readiness';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.replifier.com/v1/campaigns/cmp_01hx0000000000000000000000/readiness \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”campaign
required
string
Example
cmp_01hx0000000000000000000000Responses
Section titled “Responses”ready is true if no blocker is pending
Media typeapplication/json
object
ready
required
boolean
requirements
required
Array<object>
object
id
required
string
ok
required
boolean
severity
required
blocker: sending would fail; warning: sending is possible, but it should be resolved
string
reason
required
Reason code if not met (missing, invalid, unknown_tags, empty, not_active, not_verified, unknown, not_done); null if met
string
Example
{ "requirements": [ { "id": "content", "severity": "blocker" } ]}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}