For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Overview Agent Access Ads ChatGPT + Codex user docs Use cases

API Reference

List Product Feed Uploads

GET
/feeds/uploads

List recent feed uploads for the authenticated ad account. Defaults to product inventory; hotel inventory requires Hotel feed API access.

List Product Feed Uploads

curl https://api.ads.openai.com/v1/feeds/uploads \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY"
200 — Example
{
  "latest_uploads": [
    {
      "completed_at": "completed_at",
      "diagnostics": [
        {
          "code": "missing_required_column",
          "field": "field",
          "rows_affected": 0,
          "severity": "warning"
        }
      ],
      "feed_id": "feed_id",
      "rows_accepted": 0,
      "rows_rejected": 0,
      "status": "scanning",
      "upload_id": "upload_id",
      "uploaded_at": "uploaded_at",
      "inventory_type": "inventory_type",
      "rows_ads_eligible": 0,
      "schema_profile": "schema_profile"
    }
  ],
  "truncated": true,
  "uploads": [
    {
      "completed_at": "completed_at",
      "diagnostics": [
        {
          "code": "missing_required_column",
          "field": "field",
          "rows_affected": 0,
          "severity": "warning"
        }
      ],
      "feed_id": "feed_id",
      "rows_accepted": 0,
      "rows_rejected": 0,
      "status": "scanning",
      "upload_id": "upload_id",
      "uploaded_at": "uploaded_at",
      "inventory_type": "inventory_type",
      "rows_ads_eligible": 0,
      "schema_profile": "schema_profile"
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id"
}
Query Parameters
after: optional string
before: optional string
feed_id: optional string
minLength1
inventory_type: optional "product" or "hotel"

Inventory to list. Hotel inventory requires Hotel feed API access.

One of the following:
"product"
"hotel"
limit: optional integer
minimum1
maximum100
paginate: optional boolean
Returns
latest_uploads: array of object { completed_at, diagnostics, feed_id, 8 more }
completed_at: string or null
diagnostics: array of object { code, field, rows_affected, severity }
code: "missing_required_column" or "invalid_value" or "invalid_gzip" or 2 more
One of the following:
"missing_required_column"
"invalid_value"
"invalid_gzip"
"unsupported_file_type"
"invalid_sftp_directory_layout"
field: string or null
rows_affected: integer or null
severity: "warning" or "error"
One of the following:
"warning"
"error"
feed_id: string
rows_accepted: integer or null
rows_rejected: integer or null
status: "scanning" or "received" or "processing" or 4 more
One of the following:
"scanning"
"received"
"processing"
"completed"
"completed_with_errors"
"skipped"
"failed"
upload_id: string
uploaded_at: string
inventory_type: optional string
rows_ads_eligible: optional integer or null

Accepted ads-eligible item count; null when not reported.

schema_profile: optional string or null
truncated: boolean
uploads: array of object { completed_at, diagnostics, feed_id, 8 more }
completed_at: string or null
diagnostics: array of object { code, field, rows_affected, severity }
code: "missing_required_column" or "invalid_value" or "invalid_gzip" or 2 more
One of the following:
"missing_required_column"
"invalid_value"
"invalid_gzip"
"unsupported_file_type"
"invalid_sftp_directory_layout"
field: string or null
rows_affected: integer or null
severity: "warning" or "error"
One of the following:
"warning"
"error"
feed_id: string
rows_accepted: integer or null
rows_rejected: integer or null
status: "scanning" or "received" or "processing" or 4 more
One of the following:
"scanning"
"received"
"processing"
"completed"
"completed_with_errors"
"skipped"
"failed"
upload_id: string
uploaded_at: string
inventory_type: optional string
rows_ads_eligible: optional integer or null

Accepted ads-eligible item count; null when not reported.

schema_profile: optional string or null
first_id: optional string or null
has_more: optional boolean
last_id: optional string or null
Returns Examples
200 — Example
{
  "latest_uploads": [
    {
      "completed_at": "completed_at",
      "diagnostics": [
        {
          "code": "missing_required_column",
          "field": "field",
          "rows_affected": 0,
          "severity": "warning"
        }
      ],
      "feed_id": "feed_id",
      "rows_accepted": 0,
      "rows_rejected": 0,
      "status": "scanning",
      "upload_id": "upload_id",
      "uploaded_at": "uploaded_at",
      "inventory_type": "inventory_type",
      "rows_ads_eligible": 0,
      "schema_profile": "schema_profile"
    }
  ],
  "truncated": true,
  "uploads": [
    {
      "completed_at": "completed_at",
      "diagnostics": [
        {
          "code": "missing_required_column",
          "field": "field",
          "rows_affected": 0,
          "severity": "warning"
        }
      ],
      "feed_id": "feed_id",
      "rows_accepted": 0,
      "rows_rejected": 0,
      "status": "scanning",
      "upload_id": "upload_id",
      "uploaded_at": "uploaded_at",
      "inventory_type": "inventory_type",
      "rows_ads_eligible": 0,
      "schema_profile": "schema_profile"
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id"
}