Integrations

Search Integrations

Method: GET

URL: https://zstatus.io/api/v0/integrations

Params

KeyDescriptionRequired

Example

const integrations = await api.getIntegrations({
})

Example Response

{
"edges": [
{
"node": {
"id": "cl4ww9vrh026709mjnsp11hoq",
"creatorId": "cl4ww9o71012909mjg92ih1cm",
"pageId": "cl4ww9v04016509mjisnijiwe",
"data": {
"webhookId": "P3A9PLH",
"autoResolve": true,
"autoAnnotate": true,
"autoCreateIncidents": true,
"autoUpdateOnAcknowledgement": true
},
"type": "PagerDuty",
"createdAt": "2022-06-27T15:28:21.773Z",
"updatedAt": "2022-06-27T15:28:21.774Z"
},
"cursor": "cl4ww9vrh026709mjnsp11hoq"
}
],
"nodes": [
{
"id": "cl4ww9vrh026709mjnsp11hoq",
"creatorId": "cl4ww9o71012909mjg92ih1cm",
"pageId": "cl4ww9v04016509mjisnijiwe",
"data": {
"webhookId": "P3A9PLH",
"autoResolve": true,
"autoAnnotate": true,
"autoCreateIncidents": true,
"autoUpdateOnAcknowledgement": true
},
"type": "PagerDuty",
"createdAt": "2022-06-27T15:28:21.773Z",
"updatedAt": "2022-06-27T15:28:21.774Z"
}
],
"pageInfo": {
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": "cl4ww9vrh026709mjnsp11hoq",
"endCursor": "cl4ww9vrh026709mjnsp11hoq"
},
"totalCount": 1
}

API Types

export interface CreateIntegrationProps {
pageId: string;
data?: Record<string, string>;
type: APIIntegrationType;
}
export interface UpdateIntegrationProps {
id: string;
data?: Record<string, string>;
}
export interface APIIntegration extends CreateIntegrationProps {
id: string;
creatorId: string;
creator: APIUser;
createdAt: string;
updatedAt: string;
}
export interface APIIntegrationSearchArgs {
pageId: string;
type?: APIIntegrationType;
}