CloudX API

Authenticate requests and use the CloudX API reference.

CloudX API

Use the CloudX API to retrieve reporting metrics, inspect auctions, manage Tasks, and read or write account configuration.

Base URL

https://provisioning.cloudx.io/api/v1

Authentication

Create an API key in Settings > API Keys, then send it as a bearer token:

curl https://provisioning.cloudx.io/api/v1/auth/status \
  -H "Authorization: Bearer $CLOUDX_API_KEY"

Only administrators can create, manage, and revoke API keys.

Permissions

Choose permissions based on the endpoints your integration needs.

PermissionAllows
reports:readReporting and activity-export endpoints under /report/* and /export/*
auctions:readAuction inspection endpoints under /auction/*
configuration:readConfiguration endpoints under /config/* and Task read endpoints
configuration:writeConfiguration write endpoints under /config/* and Task write endpoints

Activity Exports

Create asynchronous, full-day activity-export reports with POST /export/impressions, POST /export/requests, or POST /export/bids, then poll the matching GET endpoint until the export is ready.

Most reports are ready to download within 5–45 minutes. Processing time varies with the amount of data for the selected date and filters. When the export is ready, the status response includes a short-lived download URL.

See Activity Exports for request bodies, polling examples, and the CSV schemas returned by both the API and CLI.

Configuration Writes

Use POST /config/edit to create or update a config draft for apps, ad units, ad unit groups, lists, tags, test devices, network mappings, and line items. The same endpoint also accepts A/B test operations; creating an A/B test returns a draft, while update, start, end, promote, and delete publish the resulting config.

Requests use typed operation keys such as create_app, update_ad_unit, upsert_network_mapping, and update_line_item. Ad-unit and line-item bidfloor values are decimal USD CPM, so 1.5 means $1.50 CPM.

Tasks

Use the /scheduled-agents endpoints to manage recurring CloudX analyses. The API uses scheduled-agents in endpoint paths for compatibility, but the product and CLI call them Tasks.

Create a Task with a prompt and five-field cron schedule:

curl https://provisioning.cloudx.io/api/v1/scheduled-agents \
  -X POST \
  -H "Authorization: Bearer $CLOUDX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Weekly revenue review",
    "prompt": "Review weekly revenue and flag material changes",
    "schedule": "0 9 * * 1",
    "timezone": "Europe/Madrid",
    "access_mode": "workspace"
  }'

The Task endpoints support the full lifecycle:

MethodEndpointAction
GET/scheduled-agentsList Tasks.
POST/scheduled-agentsCreate a Task.
GET/scheduled-agents/{scheduled_agent_id}Get one Task.
PATCH/scheduled-agents/{scheduled_agent_id}Update one or more fields.
DELETE/scheduled-agents/{scheduled_agent_id}Delete a Task.
POST/scheduled-agents/{scheduled_agent_id}/runQueue an enabled Task now.

Read operations require configuration:read; mutations require configuration:write. User-authenticated mutations also require editor access. The Tasks feature must be available for the account.

Set access_mode to private or workspace. Private Tasks require an end-user creator and are visible only to that user. Tasks created with an API key have no end-user creator, are workspace-visible, and cannot be made private.

Task responses include the cron expression, IANA timezone, human-readable schedule, enabled state, access mode, optional creator user ID, next run time, timestamps, and creation source.

API Reference

The API reference is generated from the live OpenAPI schema hosted by CloudX.