api reference

Rotate Secret

POST
/v1/webhooks/{sub_id}/rotate-secret

Path Parameters

sub_id*Sub Id
Formatuuid

Header Parameters

authorization?string|null

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "has_authorization": false,  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "target_url": "string",  "event_types": [    "string"  ],  "status": "active",  "consecutive_failures": 0,  "last_success_at": "2019-08-24T14:15:22Z",  "last_failure_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "secret": "string"}

Resubmit Verification

Fix a rejected number registration and file it again (multipart/form-data), without typing everything again. Hail keeps a number registration's answers and files for 30 days after submit (`kept_until` on the verification; read them with `GET /v1/verifications/{id}/application`). This files a new registration from them, with your changes. Every part is optional: * `fields` (JSON object), `address` (JSON object) and `documents` (JSON object: slot name to `{"option": ..., "fields": {...}}`) each replace the kept value whole when sent; * `file.<slot>`, or `upload.<slot>` (an upload id, as in `POST /v1/verifications`), replaces the kept file of that slot. A slot with no new file reuses the kept one, while it keeps the document `option` it was filed with (a new option needs a new file). A kept file whose slot is no longer in `documents` is not sent; * `quote_id`: the offer to verify for. Default: the quote of the rejected filing, which Hail keeps while the answers are kept. Pass a new one for a newer price, or when that offer is no longer sold (409). The purpose, country, number type and subject type stay as filed: sending one of them with another value is a 422. The new registration goes through every check of `POST /v1/verifications` (422, 402, 409, the credit set aside) and answers the same way, as a new verification with its own id. Once it is filed, the rejected one is dismissed (as `DELETE /v1/verifications/{id}`) and its kept answers and files are deleted. Only one resubmit of a registration can succeed; another one sent at the same time is a 409.

Rotate Sip Connection Password

Make a new password for your phone system to send. The old one stops working at once: put the new one in your phone system's trunk.