Sample Workflows

The following examples illustrate how trusted clients interact with the FastAPI gateway at https://api.intelligenceforgood.org.

Submit Evidence (User)

POST https://api.intelligenceforgood.org/intakes
Authorization: Bearer <id_token>
Content-Type: application/json

{
  "channel": "web-intake",
  "description": "I was contacted by someone claiming to be a crypto advisor...",
  "attachments": [
    {
      "type": "image",
      "uri": "gs://i4g-evidence-dev/uploads/case_1234/chat1.png"
    }
  ]
}

Response (Submit Evidence)

{
  "case_id": "case_1234",
  "status": "queued",
  "next_steps": "An analyst will review your case within 72 hours."
}

Analyst Decision

Report Download (Law Enforcement)

Response (Report Download)

  • 200 OK with PDF payload.

  • Headers include X-I4G-Report-Hash for signature verification.

Error Handling

Errors conform to the following envelope:

Include the correlation ID when escalating issues to the engineering team.

Last updated