Goals
Operations related to Goals, the conversion events and objectives tracked for campaign optimization and measurement. Goals can be triggered:
Via tracking pixels (for one-time conversions on confirmation pages)
Via OTQL query rules (for complex, recurring conversion logic)
Goals are associated with attribution models for campaign attribution.
Relevant documentation:
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/goals/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"new_query_id": "text",
"archived": false,
"organisation_id": "text",
"technical_name": "text",
"goal_value_currency": "text",
"id": "text",
"query_id": "text",
"status": "PAUSED",
"datamart_id": "text",
"default_goal_value": 0,
"name": "text"
}
}false0Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/goals/{id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 212
{
"new_query_id": "text",
"archived": false,
"organisation_id": "text",
"technical_name": "text",
"goal_value_currency": "text",
"query_id": "text",
"status": "PAUSED",
"datamart_id": "text",
"default_goal_value": 0,
"name": "text"
}{
"status": "ok",
"data": {
"new_query_id": "text",
"archived": false,
"organisation_id": "text",
"technical_name": "text",
"goal_value_currency": "text",
"id": "text",
"query_id": "text",
"status": "PAUSED",
"datamart_id": "text",
"default_goal_value": 0,
"name": "text"
}
}Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/goals/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}The organisation id to search into
The Datamart id to search into
The keywords to match with goal name
Whether to filter with archived or not
Fields used to order the result
Label id
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Goal's status ACTIVE or PAUSED
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/goals?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"count": 1,
"data": [
{
"new_query_id": "text",
"archived": false,
"organisation_id": "text",
"technical_name": "text",
"goal_value_currency": "text",
"id": "text",
"query_id": "text",
"status": "PAUSED",
"datamart_id": "text",
"default_goal_value": 0,
"name": "text"
}
],
"first_result": 1,
"total": 1,
"max_results": 1
}The organisation to create the new goal into
false0Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/goals?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 212
{
"new_query_id": "text",
"archived": false,
"organisation_id": "text",
"technical_name": "text",
"goal_value_currency": "text",
"query_id": "text",
"status": "PAUSED",
"datamart_id": "text",
"default_goal_value": 0,
"name": "text"
}{
"status": "ok",
"data": {
"new_query_id": "text",
"archived": false,
"organisation_id": "text",
"technical_name": "text",
"goal_value_currency": "text",
"id": "text",
"query_id": "text",
"status": "PAUSED",
"datamart_id": "text",
"default_goal_value": 0,
"name": "text"
}
}Last updated
Was this helpful?