Skip to Content
APIResourcesLegacy campaigns (deprecated)

Legacy campaigns (deprecated)

Deprecated compatibility endpoints. New integrations should use Recipes plus explicit canvas and image operations.

Every operation on this page is deprecated. They remain callable for existing integrations only. Build new work on Recipes plus explicit canvas operations and image calls, and observe it through Runs.

Base URL: https://app.gavana.ai/api/canvas-agent/v1 · Authentication: HTTP bearer, token format cba_<token-id>.<secret>

Operations

OperationPurposeScopes
GET /campaignsList legacy campaign runscanvas:read, canvas:write, asset:read, image:generate, job:manage
GET /campaigns/{runId}Get a legacy campaign runcanvas:read, canvas:write, asset:read, image:generate, job:manage
DELETE /campaigns/{runId}Cancel a legacy campaign runcanvas:read, canvas:write, asset:read, image:generate, job:manage
POST /campaigns/{runId}/reviewReview a legacy campaign runcanvas:read, canvas:write, asset:read, image:generate, job:manage
POST /campaigns/planPlan a legacy campaigncanvas:read, canvas:write, asset:read
POST /campaigns/startStart a legacy campaigncanvas:read, canvas:write, asset:read, image:generate, job:manage

GET /campaigns

Deprecated. This operation is kept for compatibility only. Use the Recipes and Runs replacement described at the top of this page.

List legacy campaign runs

  • Operation id: listLegacyCampaignRuns
  • Scopes: Requires canvas:read + canvas:write + asset:read + image:generate + job:manage.

Parameters

ParameterInTypeRequiredNotes
canvasIdquerystringNoOptional plain canvas id used to filter or scope the request. Pattern ^[A-Za-z0-9_-]{1,180}$.

Responses

StatusPayloadMeaning
200objectDeprecated campaign compatibility results.
defaultErrorResponseA stable machine-readable error. The response always includes X-Request-ID.

200 response body

FieldTypeRequiredNotes
runsarray of objectYes—

Example

curl "https://app.gavana.ai/api/canvas-agent/v1/campaigns" \ -H "Authorization: Bearer $GAVANA_AGENT_TOKEN"

GET /campaigns/{runId}

Deprecated. This operation is kept for compatibility only. Use the Recipes and Runs replacement described at the top of this page.

Get a legacy campaign run

  • Operation id: getLegacyCampaignRun
  • Scopes: Requires canvas:read + canvas:write + asset:read + image:generate + job:manage.

Parameters

ParameterInTypeRequiredNotes
runIdpathstringYesPattern ^(?:run:)?[A-Za-z0-9_-]{1,180}$.

Responses

StatusPayloadMeaning
200objectA deprecated campaign compatibility result.
defaultErrorResponseA stable machine-readable error. The response always includes X-Request-ID.

Example

curl "https://app.gavana.ai/api/canvas-agent/v1/campaigns/run:4c7a9e12" \ -H "Authorization: Bearer $GAVANA_AGENT_TOKEN"

DELETE /campaigns/{runId}

Deprecated. This operation is kept for compatibility only. Use the Recipes and Runs replacement described at the top of this page.

Cancel a legacy campaign run

Retired mutation surface. Returns 410 unless legacy compatibility is explicitly enabled by the server operator.

  • Operation id: cancelLegacyCampaignRun
  • Scopes: Requires canvas:read + canvas:write + asset:read + image:generate + job:manage.
  • Runtime: legacy-compatibility

Parameters

ParameterInTypeRequiredNotes
runIdpathstringYesPattern ^(?:run:)?[A-Za-z0-9_-]{1,180}$.

Responses

StatusPayloadMeaning
200objectA deprecated campaign compatibility result.
410ErrorResponseA stable machine-readable error. The response always includes X-Request-ID.
defaultErrorResponseA stable machine-readable error. The response always includes X-Request-ID.

Example

curl -X DELETE "https://app.gavana.ai/api/canvas-agent/v1/campaigns/run:4c7a9e12" \ -H "Authorization: Bearer $GAVANA_AGENT_TOKEN"

POST /campaigns/{runId}/review

Deprecated. This operation is kept for compatibility only. Use the Recipes and Runs replacement described at the top of this page.

Review a legacy campaign run

Retired mutation surface. Returns 410 unless legacy compatibility is explicitly enabled by the server operator.

  • Operation id: reviewLegacyCampaignRun
  • Scopes: Requires canvas:read + canvas:write + asset:read + image:generate + job:manage.
  • Runtime: legacy-compatibility

Parameters

ParameterInTypeRequiredNotes
runIdpathstringYesPattern ^(?:run:)?[A-Za-z0-9_-]{1,180}$.

Request body (application/json, required)

Responses

StatusPayloadMeaning
200objectA deprecated campaign compatibility result.
202objectA deprecated campaign compatibility result.
410ErrorResponseA stable machine-readable error. The response always includes X-Request-ID.
defaultErrorResponseA stable machine-readable error. The response always includes X-Request-ID.

Example

curl -X POST "https://app.gavana.ai/api/canvas-agent/v1/campaigns/run:4c7a9e12/review" \ -H "Authorization: Bearer $GAVANA_AGENT_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'

POST /campaigns/plan

Deprecated. This operation is kept for compatibility only. Use the Recipes and Runs replacement described at the top of this page.

Plan a legacy campaign

Retired mutation surface. Returns 410 unless legacy compatibility is explicitly enabled by the server operator.

  • Operation id: planLegacyCampaign
  • Scopes: Requires canvas:read + canvas:write + asset:read.
  • Runtime: legacy-compatibility

Request body (application/json, required)

Responses

StatusPayloadMeaning
200objectA deprecated campaign compatibility result.
201objectA deprecated campaign compatibility result.
410ErrorResponseA stable machine-readable error. The response always includes X-Request-ID.
defaultErrorResponseA stable machine-readable error. The response always includes X-Request-ID.

Example

curl -X POST "https://app.gavana.ai/api/canvas-agent/v1/campaigns/plan" \ -H "Authorization: Bearer $GAVANA_AGENT_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'

POST /campaigns/start

Deprecated. This operation is kept for compatibility only. Use the Recipes and Runs replacement described at the top of this page.

Start a legacy campaign

Retired mutation surface. Returns 410 unless legacy compatibility is explicitly enabled by the server operator.

  • Operation id: startLegacyCampaign
  • Scopes: Requires canvas:read + canvas:write + asset:read + image:generate + job:manage.
  • Runtime: legacy-compatibility

Request body (application/json, required)

Responses

StatusPayloadMeaning
200objectA deprecated campaign compatibility result.
202objectA deprecated campaign compatibility result.
410ErrorResponseA stable machine-readable error. The response always includes X-Request-ID.
defaultErrorResponseA stable machine-readable error. The response always includes X-Request-ID.

Example

curl -X POST "https://app.gavana.ai/api/canvas-agent/v1/campaigns/start" \ -H "Authorization: Bearer $GAVANA_AGENT_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'

Errors

Every failure uses the shared error envelope described in Errors and X-Request-ID. The response always carries X-Request-ID; share that value with support instead of the request payload.

Last updated on