Skip to content

Errors and return values

202 Accepted

json
{
    "status": "Message accepted"
}

400 Bad request

json
{
    "detail": "Message is empty"
}

401 Unauthorized

json
{
    "detail": "Invalid Dock ID or secret key"
}

422 Unprocessable Entity

You did not send one of the necessary fields or made a typo.

json
{
    "detail": [
        {
            "type": "missing",
            "loc": [
                "body",
                "message"
            ],
            "msg": "Field required",
            "input": {
                "dock_id": "<Dock ID>",
                "secret_key": "<Secret Key>",
                "missing_field": "<must be msg or message instead of missign field>"
            }
        }
    ]
}

500 Server error

json
Internal Server Error