Artboard
Webhooks

Register Webhook

POST
/otto/api/webhooks

Request Body

application/json

POST /otto/api/webhooks Request body

channel*string

Webhook Channel

filename*string

Filename

useFileReceiver?boolean

Use FileReceiver

Defaultfalse
label*string

Label for the webhook

Response Body

application/json

application/json

curl -X POST "https://your.server.net/otto/api/webhooks" \  -H "Content-Type: application/json" \  -d '{    "channel": "string",    "filename": "string",    "label": "string"  }'
{
  "response": {
    "id": 9007199254740991,
    "url": "string",
    "database": "string",
    "label": "string",
    "created_at": "string",
    "updated_at": "string",
    "last_used": "string",
    "last_result": "string",
    "last_result_is_error": 1,
    "active": 1,
    "number_of_times_used": 9007199254740991,
    "bytes_received": 1.7976931348623157e+308
  },
  "messages": [
    {
      "code": 0.1,
      "text": "ok"
    }
  ]
}
{
  "response": {},
  "messages": [
    {
      "code": 18011,
      "text": "OttoFMS sample error"
    }
  ]
}