{
  "opencollection": "1.0.0",
  "info": {
    "name": "USCIS Case Status FOIA Requests API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "FOIA Requests",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Submit FOIA or Privacy Act Request",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api-int.uscis.gov/case-status/requests",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-int.uscis.gov/oauth/accesstoken",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new Freedom of Information Act (FOIA) or Privacy Act (PA) request for Alien File material. The request can be submitted about or on behalf of the subject of record. A unique Request Number is returned upon successful creation, which can be used to track the request status."
        },
        {
          "info": {
            "name": "Get FOIA Request Status",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api-int.uscis.gov/case-status/requests/:requestNumber",
            "params": [
              {
                "name": "requestNumber",
                "value": "USCIS-2024-001234",
                "type": "path",
                "description": "The FOIA request number returned when the request was submitted. Format: USCIS-YYYY-NNNNNN"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-int.uscis.gov/oauth/accesstoken",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Check the current status of a submitted FOIA or Privacy Act request using the Request Number returned when the request was created. Returns the current processing status and any available updates."
        }
      ]
    }
  ],
  "bundled": true
}