{
  "info": {
    "name": "Salesforce Data 360 — Ingestion API (SF Guide, scrubbed)",
    "description": "Credential-free starter collection for the Data 360 Ingestion API. Set the variables locally; never commit real tokens or endpoints. Obtain a token via a connected app (see the guide's connected-app page).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "instance_url", "value": "https://YOUR_INSTANCE.my.salesforce.com", "type": "string" },
    { "key": "access_token", "value": "{{PLACEHOLDER_BEARER_TOKEN}}", "type": "string" },
    { "key": "connector_name", "value": "YOUR_INGESTION_CONNECTOR", "type": "string" },
    { "key": "object", "value": "YOUR_OBJECT", "type": "string" }
  ],
  "item": [
    {
      "name": "Get OAuth token (client credentials)",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/x-www-form-urlencoded" }
        ],
        "url": {
          "raw": "{{instance_url}}/services/oauth2/token",
          "host": ["{{instance_url}}"],
          "path": ["services", "oauth2", "token"]
        },
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            { "key": "grant_type", "value": "client_credentials" },
            { "key": "client_id", "value": "{{PLACEHOLDER_CLIENT_ID}}" },
            { "key": "client_secret", "value": "{{PLACEHOLDER_CLIENT_SECRET}}" }
          ]
        },
        "description": "Returns an access_token. Store it in the access_token variable. Replace the client id/secret placeholders with values from your connected app — do NOT save real values in this collection."
      }
    },
    {
      "name": "Ingest records",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Authorization", "value": "Bearer {{access_token}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "url": {
          "raw": "{{instance_url}}/api/v1/ingest/sources/{{connector_name}}/{{object}}",
          "host": ["{{instance_url}}"],
          "path": ["api", "v1", "ingest", "sources", "{{connector_name}}", "{{object}}"]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"data\": [\n    { \"id\": \"EXAMPLE_ID\", \"timestamp\": \"2026-11-04T00:00:00Z\" }\n  ]\n}"
        },
        "description": "Sends a sample batch to your ingestion object. Shape the payload to match your uploaded schema."
      }
    }
  ]
}
