Register an account webhook
POST
Registers a URL that receives the events of the account, see the linkedinAccountDisconnected event. Sending an existing URL again updates its events. At most 10 URLs per account. The URL must be public and use HTTPS.
Errors. INVALID_PARAMETERS.
Authorization
apiKey Authorization<token>
Your 48 character API key, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/account-webhooks" \ -H "Authorization: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://hooks.acme.com/emelia/9f2c4e1a7b", "events": [ "LINKEDIN_ACCOUNT_DISCONNECTED" ] }'{ "success": true, "webhook": { "id": "string", "url": "string", "events": [ "string" ] }}