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

Body

application/json
assets
object[]
required
attachmentUrls
string[]

URLs of images to attach to the report

contactInfo
string
description
string
required

Description of the report. Supports markdown

discordGuildId
string

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

externalReporter
object
organizationSlug
string

Organization slug used to identify the organization on ChainPatrol

rawAssetsInput
string
title
string
required

Title of the report

Response

200 - application/json
createdAt
string
required

Date the report was created

id
number
required

ID of the created report

organization
object | null
required

Organization the report was created for