curl -X POST 'https://api.sendforsign.com/api/webhook' \
     -H 'Authorization: Bearer 123456789' \
     -H 'Content-Type: application/json' \
     -d '{
    "data": {
        "action": "create",
        "webhooks": [
            {
                "url": "URL",
                "created": true,
                "seen": true,
                "sent": false,
                "approved": false,
                "signed": false,
                "fullySigned": true
            }
        ]
    }
}'
{
    "webhooks": [
        {
            "createTime": "2024-04-08T08:58:54.000Z",
            "url": "testurl1",
            "secret": "whsec_123",
            "webhookKey": "WEBHOOK_KEY"
        }
    ],
    "code": "201",
    "message": "Webhooks created"
}
Webhooks are created for the specific client key you use when creating a webhook.

Body parameters

action
string
required
Action type.
webhooks
string
required
Array of webhooks.

Response

webhooks
string
Array of webhooks.
code
string
The code of the answer.
message
string
The message of the answer.
curl -X POST 'https://api.sendforsign.com/api/webhook' \
     -H 'Authorization: Bearer 123456789' \
     -H 'Content-Type: application/json' \
     -d '{
    "data": {
        "action": "create",
        "webhooks": [
            {
                "url": "URL",
                "created": true,
                "seen": true,
                "sent": false,
                "approved": false,
                "signed": false,
                "fullySigned": true
            }
        ]
    }
}'
{
    "webhooks": [
        {
            "createTime": "2024-04-08T08:58:54.000Z",
            "url": "testurl1",
            "secret": "whsec_123",
            "webhookKey": "WEBHOOK_KEY"
        }
    ],
    "code": "201",
    "message": "Webhooks created"
}