POST
/
v1
/
audit
curl --request POST \
  --url https://api.trustblock.run/v1/audit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "reportFileCid": "<string>",
  "reportType": "file",
  "name": "<string>",
  "description": "<string>",
  "conductedAt": 123,
  "project": {
    "links": {
      "website": "<string>",
      "twitter": "<string>",
      "discord": "<string>",
      "telegram": "<string>",
      "github": "<string>",
      "youtube": "<string>",
      "linkedIn": "<string>"
    },
    "email": "<string>",
    "name": "<string>",
    "tags": [
      "analytics"
    ],
    "chains": [
      "ethereum"
    ]
  },
  "contracts": [
    {
      "type": "onChain",
      "chain": "<string>",
      "address": "<string>"
    }
  ],
  "issues": [
    {
      "name": "<string>",
      "description": "<string>",
      "status": "<string>",
      "severity": "<string>"
    }
  ]
}'
{
  "extra": {
    "requestId": "<string>"
  },
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
enum<string>
required
Available options:
application/json

Body

application/json
name
string
required
description
string
required
conductedAt
number
required
reportFileCid
string
required
project
object
required
contracts
object[]
required
issues
object[]
required
reportType
enum<string>
required
Available options:
file

Response

200
application/json
Successful response
extra
object
required
id
string
required

ID of the new audit