Webhooks
List team webhooks
This endpoint makes an HTTP GET request to retrieve a list of webhooks from the team.
Request Body This request does not require a request body.
Request
Method:
GET
Endpoint:
https://api.creatopy.com/v1/webhooks
Response Body
response
(object)id
(number): The webhook id.name
(string): The name of the webhook.webhookUrl
(string): The URL of the webhook.createdAt
(date): webhook creation date.createdByUser
(object)id
(number): The unique identifier of the user who creates the webhook.name
(string): The name of the user who creates the webhook.
actions (array)
actionId
(number): The action ID was added to the webhook.createdAt
(Date): The datecreatedByUser
(object)id
(number): The id of the user who added the action to the webhook.name
(string): The user's name who added the action to the webhook.
action
(object)name
: the added action name.description
: the added action description
Create team webhook
This endpoint allows you to create a new team webhook.
Request
Method:
POST
Endpoint:
https://api.creatopy.com/v1/webhooks
Body:
name
(string, required): The name of the webhook.url
(string, required): The URL of the webhook.actions
(array, required): The selected actions to add to webhook (for. ex: [1, 2, 4])
Response
The response will be in JSON format with the following structure:
name
(string) - The name of the webhook.id
(int) - The id of the webhook.webhookUrl
(string) - The URL of the webhook.actions
(array)actionId
(number) - the id of the actioncreatedAt
(date) - the date when action was added to the webhookcreatedByUser
(object)id
(number) - the user's ID who added the action to the webhookname
(string) - the user's name who added the action to the webhook
action
(object)id
(number) - the action ID added to the webhookname
(string) - the name of the action added to the webhookdescription
(string) - the description of the action added to the webhookconfig
(string) - some config of the action added to the webhookcreatedAt
(Date) - the date when the action was created
createdAt
(Date) - the date when the webhook was createdcreatedByUser
(object)id
(number) - the ID of the user who created the webhookname
(string) - the name of the user who created the webhook
Delete team webhook
This endpoint allows you to delete a team webhook.
Request
Method:
DELETE
Endpoint:
https://api.creatopy.com/v1/webhooks
Body:
webhookId
(string, required): The id of the team webhook.
Response
The response will be in JSON format:
Update team webhook
This endpoint allows you to update an existing team webhook.
Request
Method:
PUT
Endpoint:
https://api.creatopy.com/v1/webhooks
Body:
webhookId
(number, required): The webhook idname
(string): The new name of the webhook.url
(string): The new URL of the webhook.actions
(array): The newly selected actions to add to webhook (for. ex: [1, 2, 4])
Response
The response will be in JSON format with the following structure:
name
(string) - The name of the webhook.id
(int) - The id of the webhook.webhookUrl
(string) - The URL of the webhook.actions
(array)actionId
(number) - the id of the actioncreatedAt
(date) - the date when action was added to the webhookcreatedByUser
(object)id
(number) - the user's ID who added the action to the webhookname
(string) - the user's name who added the action to the webhook
action
(object)id
(number) - the action ID added to the webhookname
(string) - the name of the action added to the webhookdescription
(string) - the description of the action added to the webhookconfig
(string) - some config of the action added to the webhookcreatedAt
(Date) - the date when the action was created
createdAt
(Date) - the date when the webhook was createdcreatedByUser
(object)id
(number) - the ID of the user who created the webhookname
(string) - the name of the user who created the webhook
Last updated