POST
/
report
/
create
curl --request POST \
  --url https://app.chainpatrol.io/api/v2/report/create \
  --header 'Content-Type: application/json' \
  --data '{
  "organizationSlug": "<string>",
  "discordGuildId": "<string>",
  "title": "<string>",
  "description": "<string>",
  "contactInfo": "<string>",
  "attachmentUrls": [
    "<string>"
  ],
  "assets": [
    {
      "content": "<string>",
      "status": "UNKNOWN",
      "screenshot": {
        "url": "<string>",
        "takenBy": "<string>"
      }
    }
  ],
  "rawAssetsInput": "<string>",
  "externalReporter": {
    "avatarUrl": "<string>",
    "platformIdentifier": "<string>",
    "platform": "<string>",
    "displayName": "<string>"
  }
}'
{
  "id": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "organization": {
    "id": 123,
    "slug": "<string>",
    "name": "<string>"
  }
}

Body

application/json
organizationSlug
string

Organization slug used to identify the organization on ChainPatrol

discordGuildId
string

Discord Guild (Server) ID linked to the organization on ChainPatrol

title
string
required

Title of the report

description
string
required

Description of the report. Supports markdown

contactInfo
string
attachmentUrls
string[]

URLs of images to attach to the report

assets
object[]
required
rawAssetsInput
string
externalReporter
object

Response

200 - application/json
id
number
required

ID of the created report

createdAt
string
required

Date the report was created

organization
object | null
required

Organization the report was created for