Skip to main content
POST
Create a compliance run

Authorizations

x-conveyour-token
string
header
required

Your API key token. Contacts endpoints require a Server-only — Full API key — see Authentication.

Query Parameters

teams[]
string[]

Team scope for the request, as one or more team ObjectIds. The brackets are required: PHP keeps only the last value for a repeated plain key, so teams=A&teams=B silently resolves to B alone. On requests with a JSON body you may send teams (no brackets) in the body instead.

Values that are not valid ObjectIds are silently ignored — a mistyped team ID behaves as if no team was sent. See the teams section of the API conventions guide.

Body

application/json
group_id
string

ID of a group whose filters define the contact audience.

contact_query
object

A filter object matching contacts by field values. An empty object {} matches all contacts — use with care.

content_query.lesson_tags.all
string[]

Lesson must have every tag in this list to be in scope.

content_query.lesson_tags.any
string[]

Lesson must have at least one tag in this list to be in scope.

content_query.completed_after
string

Relative time string — only completions after this window count (e.g. "-1 year").

content_query.released_only
boolean

When true, only lessons released to the contact via campaigns or triggers count.

content_query.released_after
string

Optional. Only lessons released after this time count.

submission_query.enabled
boolean

Include form submissions in the compliance run.

submission_query.completed_statuses
string[]

Submission status values that count as done. Default ["completed"].

submission_query.submission_collection_ids
string[]

Limit scoring to specific collection IDs. Empty array includes all collections.

callback_url
string

Set to an HTTPS URL for async mode — results are POSTed to your webhook. Omit or send "" for sync mode.

include_lessons
boolean

Include per-lesson detail rows in each contact result.

include_submissions
boolean

Include per-submission detail rows in each contact result.

Response

Success.

The common response envelope shared by all ConveYour endpoints.

status
enum<string>

ok on success, failed on error.

Available options:
ok,
failed
message
string

Human-readable description of the result.

data
object

Result of a compliance run. Its keys depend on whether callback_url was supplied (queued vs inline run) and have not been verified field by field.