Subscriptions
Create a new subscription
POST https://api.tiledesk.com/v3/:project_id/subscriptions
This endpoint allows to add more subscriptions.
Path Parameters
project_id
string
The project_id is a unique code assigned to your project when you create it in Tiledesk
Headers
Authorization
string
authorization token. Basic Auth or JWT
Content-Type
string
use "application/json" value
Request Body
event
string
the event method
target
string
the target url
{
{
"__v":0,
"updatedAt":"2019-03-12T12:01:56.462Z",
"createdAt":"2019-03-12T12:01:56.462Z",
"target":"https://webhook.site/c312005b-5042-49e9-a769-0f3ba4245b51",
"event":"request.create",
"id_project":"5b55e806c93dde00143163dd",
"createdBy":"5ab11c6b83dc240014d46095",
"_id":"5c879fb4f1ae6600173b8c75",
"secret":"56c189c8-33ae-4930-bd98-410a12aa45ce"
}Example
This endpoint retrieves all subscriptions
GET https://api.tiledesk.com/v3/:project_id/subscriptions
This endpoint retrieves all active subscriptions.
Path Parameters
project_id
string
the Project Id is a unique code assigned to your project when you create it in Tiledesk.
Headers
Authorization
string
authorization token. Basic Auth or JWT
Get a subscription by id
GET https://api.tiledesk.com/v3/:project_id/subscriptions/:id
This endpoint retrieves a subscription by ID
Path Parameters
id
string
the subscription identifier
project_id
string
The project_id is a unique code assigned to your project when you create it in Tiledesk
Headers
Authorization
string
authorization token. Basic Auth or JWT
This endpoint deletes a subscription by id
DELETE https://api.tiledesk.com/v3/:project_id/subscriptions/:id
This endpoint delete a subscription by ID
Path Parameters
id
string
the subscription identifier
project_id
string
The project_id is a unique code assigned to your project when you create it in Tiledesk
Headers
Authorization
string
authorization token. Basic Auth or JWT
Update a subscription
PUT https://api.tiledesk.com/v3/:project_id/subscriptions/:id
This endpoint updates a subscription.
Path Parameters
project_id
string
The project_id is a unique code assigned to your project when you create it in Tiledesk
id
string
the subscription identifier
Headers
Authorization
string
authorization token. Basic Auth or JWT
Content-Type
string
use "application/json" value
Request Body
event
string
the event method
target
string
the target url
Example
Get the subscriptions logs
GET https://api.tiledesk.com/v3/:project_id/subscriptions/history
The endpoint receives subscription call logs.
\
Experimental
Path Parameters
project_id
string
the Project Id is a unique code assigned to your project when you create it in Tiledesk.
Query Parameters
page
number
what page of results to fetch. default to first page.
Headers
Authorization
string
authorization token. Basic Auth or JWT
Example:
Last updated
Was this helpful?