API reference
Delete a webhook endpoint
DELETE
/api/v1/organizations/{organizationId}/webhooks/{webhookId}
const url = 'https://api.koneth.com/api/v1/organizations/b7378db4-5a7a-4e69-a8df-04f2e6d94243/webhooks/0f6f2d88-9357-4ce6-9b9e-76db2f98bb2e';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.koneth.com/api/v1/organizations/b7378db4-5a7a-4e69-a8df-04f2e6d94243/webhooks/0f6f2d88-9357-4ce6-9b9e-76db2f98bb2e \ --header 'Authorization: Bearer <token>'Removes the endpoint and the log of what was delivered to it. Deliveries stop immediately. Disable the endpoint instead if it may be wanted again — this cannot be undone.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organizationId
required
string format: uuid
UUID of the organization the signed-in user belongs to.
Example
b7378db4-5a7a-4e69-a8df-04f2e6d94243webhookId
required
string format: uuid
UUID of a webhook endpoint in the organization.
Example
0f6f2d88-9357-4ce6-9b9e-76db2f98bb2eResponses
Section titled “Responses”Endpoint deleted.
Media typeapplication/json
object
id
required
string format: uuid
deleted
required
boolean
Example
{ "id": "0f6f2d88-9357-4ce6-9b9e-76db2f98bb2e", "deleted": true}The Console session is missing or expired.
Media typeapplication/json
object
error
required
string
issues
Validation issue details when the request fails schema validation.
Array<object>
object
key
additional properties
any
Example
{ "error": "Authentication required"}The signed-in user is not an organization Owner or Finance member.
Media typeapplication/json
object
error
required
string
issues
Validation issue details when the request fails schema validation.
Array<object>
object
key
additional properties
any
Example
{ "error": "Insufficient organization permission"}The requested resource was not found.
Media typeapplication/json
object
error
required
string
issues
Validation issue details when the request fails schema validation.
Array<object>
object
key
additional properties
any
Examplegenerated
{ "error": "example", "issues": [ {} ]}Unexpected server error.
Media typeapplication/json
object
error
required
string
issues
Validation issue details when the request fails schema validation.
Array<object>
object
key
additional properties
any
Example
{ "error": "Internal server error"}