{
  "info": {
    "name": "Gradally — Partner sandbox contract",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Seven implemented routes. Values are placeholders; use synthetic data in an assigned sandbox. Copy current response fields into environment variables. Acknowledge only after durable shadow storage. No auto-requests, scripts, credentials or webhook subscription."
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{stream_token}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "01 Manifest",
      "request": {
        "method": "GET",
        "url": "{{base_url}}/api/v1/streams/{{stream_id}}/",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "description": "Sandbox manual exercise only. See INTEGRATION.en.md. No cursor is auto-advanced and no result is auto-published."
      },
      "response": []
    },
    {
      "name": "02 Submit synthetic answer",
      "request": {
        "method": "POST",
        "url": "{{base_url}}/api/v1/streams/{{stream_id}}/answers/",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "description": "Sandbox manual exercise only. See INTEGRATION.en.md. No cursor is auto-advanced and no result is auto-published.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"schema_version\": \"sanad-submission-1\",\n  \"submission_id\": \"{{submission_id}}\",\n  \"submission_version\": {{submission_version}},\n  \"question_id\": \"{{question_id}}\",\n  \"question_fingerprint\": \"{{question_fingerprint}}\",\n  \"text\": \"إجابة اختبار مصطنعة\",\n  \"has_attachment\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": []
    },
    {
      "name": "03 Current result",
      "request": {
        "method": "GET",
        "url": "{{base_url}}/api/v1/streams/{{stream_id}}/results/{{receipt_id}}/",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "description": "Sandbox manual exercise only. See INTEGRATION.en.md. No cursor is auto-advanced and no result is auto-published."
      },
      "response": []
    },
    {
      "name": "04 Lookup by submission ID",
      "request": {
        "method": "GET",
        "url": "{{base_url}}/api/v1/streams/{{stream_id}}/submissions/?submission_id={{submission_id}}",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "description": "Sandbox manual exercise only. See INTEGRATION.en.md. No cursor is auto-advanced and no result is auto-published."
      },
      "response": []
    },
    {
      "name": "05 Initial receipts",
      "request": {
        "method": "GET",
        "url": "{{base_url}}/api/v1/streams/{{stream_id}}/results/?limit=50&cursor={{receipt_cursor}}",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "description": "Sandbox manual exercise only. See INTEGRATION.en.md. No cursor is auto-advanced and no result is auto-published."
      },
      "response": []
    },
    {
      "name": "06 Changes",
      "request": {
        "method": "GET",
        "url": "{{base_url}}/api/v1/streams/{{stream_id}}/changes/?limit=50&cursor={{change_cursor}}",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "description": "Sandbox manual exercise only. See INTEGRATION.en.md. No cursor is auto-advanced and no result is auto-published."
      },
      "response": []
    },
    {
      "name": "07 Acknowledge persisted shadow result",
      "request": {
        "method": "POST",
        "url": "{{base_url}}/api/v1/streams/{{stream_id}}/acknowledgements/",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "description": "Sandbox manual exercise only. See INTEGRATION.en.md. No cursor is auto-advanced and no result is auto-published.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"schema_version\": \"sanad-result-ack-1\",\n  \"receipt_id\": \"{{receipt_id}}\",\n  \"submission_version\": {{submission_version}},\n  \"decision_revision\": {{decision_revision}},\n  \"result_digest\": \"{{result_digest}}\",\n  \"delivery_token\": \"{{delivery_token}}\",\n  \"destination_record_id\": \"{{destination_record_id}}\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": []
    }
  ]
}
