POST /webhook/confirm
The code sent to the URL needs to be confirmed. To do this, send it back in the request.
Header | Description |
---|
X-Auth-Account-Url (required) | The base URL of the account, e.g. https://myaccount.ispringlearn.com |
X-Auth-Email (required) | The login of Account Owner and Account Administrator. |
X-Auth-Password (required) | The password of Account Owner and Account Administrator. |
Parameter | Description |
---|
subscriberName (required) | The unique name of the subscriber. It can have up to 255 characters. |
code | The confirmation code that came to the specified URL. |
Sample Request
curl --location 'https://api-learn.ispringlearn.com/webhook/confirm' \
--header 'X-Auth-Account-Url: https://myaccount.ispringlearn.com' \
--header 'X-Auth-Email: email@email.com' \
--header 'X-Auth-Password: password' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"subscriberName": "name",
"code": "1759b14e-d387-11ed-88a2-42349c105193"
}'
XML
Response Codes
Code | Text | Description |
---|
200 | ОК | The URL has been verified. |
400 | Bad Request | A request error. |
401 | Unauthorized | An authorization error. |
403 | Permission Denied | The user doesn't have enough permissions. |
404 | Subscriber not found | The subscriber was not found. |