listIntegrations
Every integration on the app's Integrations page and whether it is CONNECTED, in one read.
Every integration on the app's Integrations page and whether it is CONNECTED, in one read: currentUser.connectedEmailIntegrations (the key owner's own Google/Microsoft mailboxes; email is per person, so a teammate's mailbox is not here), oauthQuery.slackIntegrationStatus, Facebook Lead Ads through the key owner's own Facebook account (oauthQuery.listFacebookPages: Lead Ads is CONNECTED only when a Page has connected: true, the way the card reads it; facebookAccountConnected is just the account sign-in, and a null page list means Facebook did not answer), organizationQuery.getOrganization callTools / smrtPhone / enzo / readyMode (the dialers; a connected Enzo or ReadyMode lists its campaigns), directMailConnectionQuery.list (Lob, PostGrid, OLC: state ACTIVE | PENDING_VERIFICATION | DISCONNECTED, authHealth; rows outlive a disconnect, so an empty list means no account was ever connected), and phoneEnrichmentQuery.providers (phone enrichment such as Trestle: connectionStatus ACTIVE | NOT_CONNECTED | REVOKED | UNVERIFIED). Zapier, incoming webhooks and API keys are not listed. To connect anything, send the user the link from getIntegrationSetupUrls: connecting needs their own login. Organization admins only.
curl https://server.goliathdata.com/api/v1/call \
-H "Authorization: Bearer $GOLIATH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"operationId": "listIntegrations",
"variables": {}
}'import { GoliathClient } from '@goliath-data/sdk'
const goliath = new GoliathClient({
apiKey: process.env.GOLIATH_API_KEY!,
baseUrl: 'https://server.goliathdata.com',
})
const result = await goliath.account.listIntegrations()const res = await fetch('https://server.goliathdata.com/api/v1/call', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GOLIATH_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
operationId: 'listIntegrations',
variables: {}
}),
})
const { data, errors } = await res.json()Variables
None. Send "variables": {}.
Response
What comes back under data: a list shows as one entry, and a value as its type.
{
"data": {
"currentUser": {
"id": "<ID>",
"connectedEmailIntegrations": [
{
"provider": "GMAIL",
"email": "…",
"isDefaultForSending": true
}
]
},
"oauthQuery": {
"slackIntegrationStatus": {
"connected": true,
"teamId": "…"
},
"facebookAccountConnected": true,
"listFacebookPages": [
{
"id": "…",
"name": "…",
"connected": true
}
]
},
"organizationQuery": {
"getOrganization": {
"id": "<ID>",
"callToolsIntegrationStatus": {
"connected": true
},
"smrtPhoneIntegrationStatus": {
"connected": true
},
"enzo": {
"connected": true,
"campaignConfigs": [
{
"id": "<ID>",
"campaignName": "…"
}
]
},
"readyMode": {
"connected": true,
"campaignConfigs": [
{
"id": "<ID>",
"campaignName": "…"
}
]
}
}
},
"directMailConnectionQuery": {
"list": [
{
"id": "<ID>",
"provider": "OPEN_LETTER_CONNECT",
"label": "…",
"state": "PENDING_VERIFICATION",
"authHealth": "UNVERIFIED"
}
]
},
"phoneEnrichmentQuery": {
"providers": [
{
"provider": {
"key": "…",
"displayName": "…"
},
"connectionStatus": "NOT_CONNECTED"
}
]
}
}
}Errors
unknown_variableA variable the operation does not declare. A typo is refused rather than silently dropped.
unauthorizedNo bearer header, or the key is invalid or revoked.
insufficient_scopeThe key lacks the scope the operation requires.
forbiddenA referenced record does not exist, was deleted, or is outside your organization. The gateway cannot tell those apart.
Behaviour
A read. It rejects an Idempotency-Key header with 400 bad_request.