Skip to main content

Public REST/JSON reference

Ad Spend Auto-Governor API

Monitor Meta and Google ad campaign ROAS, budget pacing, and spend variance; recommend or execute pauses, reactivations, caps, and reallocations before underperforming campaigns burn through budget. Part of the Logic Igniter E-commerce Operations bundle.

Access boundary

These examples describe public API calls only. Use the service output to review, score, summarize, analyze, or recommend; do not treat the API reference as permission for an assistant to write, send, publish, charge, schedule, notify, delete, or modify records.

Base URL

https://api.logicigniter.com

Auth

Authorization: Bearer YOUR_API_KEY

Version

OpenAPI 3.0.3 · 1.0.0

Operations rendered

14

Response models rendered

19

GET/api/v1/adgovernor/health

Service liveness

Liveness probe for Ad Spend Auto-Governor API. Returns 200 when the public API route is reachable.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/adgovernor/health" \
  -H "Accept: application/json"

Responses

200

Service healthy

GET/api/v1/adgovernor/customers

List customers

List customers record for the customer workspace used by Ad Spend Auto-Governor API.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/adgovernor/customers" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

PUT/api/v1/adgovernor/customers/{id}

Update customer

Update customer record for the customer workspace used by Ad Spend Auto-Governor API.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
idrequiredpathstringId

Request body (required)

Schema: CustomerInput

Sample JSON payload for evaluation.

{
  "companyName": "Mira Home Goods",
  "email": "[email protected]"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X PUT "https://api.logicigniter.com/api/v1/adgovernor/customers/:id" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"companyName":"Mira Home Goods","email":"[email protected]"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

GET/api/v1/adgovernor/budget/allocation

Get budget allocation

Return current spend allocation, pacing, and remaining budget by channel.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/adgovernor/budget/allocation" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

POST/api/v1/adgovernor/budget/reallocate

Reallocate budget

Move budget from underperforming campaigns to higher-ROAS campaigns.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request body (required)

Schema: BudgetReallocateRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "BudgetReallocateRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/adgovernor/budget/reallocate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"BudgetReallocateRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

GET/api/v1/adgovernor/budget/caps

Get budget caps

Read active spend caps and enforcement thresholds.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/adgovernor/budget/caps" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

POST/api/v1/adgovernor/campaigns/sync

Sync campaigns

Import campaign, ad set, and spend data from connected ad platforms.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request body (required)

Schema: CampaignSyncRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "CampaignSyncRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/adgovernor/campaigns/sync" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"CampaignSyncRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

GET/api/v1/adgovernor/campaigns

List campaigns

List campaigns with budget, spend, ROAS, and governor status.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/adgovernor/campaigns" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

GET/api/v1/adgovernor/campaigns/{campaign_id}/performance

Get campaign performance

Read hourly spend, ROAS, conversions, and variance for one campaign.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
campaign_idrequiredpathstringCampaign Id

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/adgovernor/campaigns/:campaign_id/performance" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

POST/api/v1/adgovernor/governor/analyze

Analyze performance

Evaluate campaign performance against ROAS and pacing rules.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request body (required)

Schema: GovernorAnalyzeRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "GovernorAnalyzeRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/adgovernor/governor/analyze" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"GovernorAnalyzeRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

POST/api/v1/adgovernor/governor/execute

Execute governance

Execute approved pause, cap, or reallocation actions.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request body (required)

Schema: GovernorExecuteRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "GovernorExecuteRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/adgovernor/governor/execute" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"GovernorExecuteRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

POST/api/v1/adgovernor/campaigns/{campaign_id}/pause

Pause campaign

Pause a campaign that breached ROAS or pacing thresholds.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
campaign_idrequiredpathstringCampaign Id

Request body (required)

Schema: PauseCampaignRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "PauseCampaignRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/adgovernor/campaigns/:campaign_id/pause" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"PauseCampaignRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

POST/api/v1/adgovernor/campaigns/{campaign_id}/reactivate

Reactivate campaign

Reactivate a campaign after recovery criteria are met.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
campaign_idrequiredpathstringCampaign Id

Request body (required)

Schema: ReactivateCampaignRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "ReactivateCampaignRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/adgovernor/campaigns/:campaign_id/reactivate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"ReactivateCampaignRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

GET/api/v1/adgovernor/governor/actions

List governor actions

List automatic and manual governance actions.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/adgovernor/governor/actions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Data models

Customer

FieldTypeNotes
idrequiredstringExample: "cus_mira_home"
companyNamerequiredstringExample: "Mira Home Goods"
emailrequiredstring (email)Example: "[email protected]"
bundlerequiredstringExample: "ecommerce-operations"
createdAtstring (date-time)

CustomerInput

FieldTypeNotes
companyNamerequiredstringExample: "Mira Home Goods"
emailrequiredstring (email)Example: "[email protected]"
bundlestringExample: "ecommerce-operations"

CustomerList

FieldTypeNotes
customersarray<Customer>

Error

FieldTypeNotes
errorrequiredstringExample: "validation failed"
messagestringExample: "sku is required"
requestIdstringExample: "req_01HX9E2M7K8Q4J3V"

BudgetAllocation

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "BudgetAllocation"

BudgetCaps

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "BudgetCaps"

BudgetCapsRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "BudgetCapsRequest"

BudgetReallocateRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "BudgetReallocateRequest"

CampaignList

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "CampaignList"

CampaignPerformance

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "CampaignPerformance"

CampaignSyncRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "CampaignSyncRequest"

CampaignSyncResult

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "CampaignSyncResult"

GovernorAction

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "GovernorAction"

GovernorActionList

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "GovernorActionList"

GovernorAnalyzeRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "GovernorAnalyzeRequest"

GovernorDecisionList

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "GovernorDecisionList"

GovernorExecuteRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "GovernorExecuteRequest"

PauseCampaignRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "PauseCampaignRequest"

ReactivateCampaignRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "ReactivateCampaignRequest"