Tech Providers
Provision client orgs, the fan-out webhook and the usage rollup
PARTNER_ADMIN only means something on an org of kind TECH_PROVIDER. See Client orgs.
clientOrgs
ScopePARTNER_ADMIN
Returns
_idString!nameString!slugString!partnerOfStringpartnerRelationPartnerRelationexternalIdStringtenantConnectionTenantConnectionStatusquery {
clientOrgs { _id name slug partnerOf partnerRelation }
}clientOrgsPage
ScopePARTNER_ADMIN
Arguments
paginationGetCursorPaginatedInputfilterClientOrgsFilterInputGetCursorPaginatedInput
cursorStringlimitIntbeforeBooleanClientOrgsFilterInput
searchStringReturns
data[Organisation!]!nextCursorStringhasNextBoolean!totalCountIntquery {
clientOrgsPage(pagination: { … }, filter: { … }) { data nextCursor hasNext totalCount }
}partnerApiKeyAudit
ScopePARTNER_ADMIN
Arguments
paginationGetCursorPaginatedInputfilterApiKeyAuditFilterInputGetCursorPaginatedInput
cursorStringlimitIntbeforeBooleanApiKeyAuditFilterInput
keyIdStringoutcomeApiKeyAuditOutcomefromDateTimetoDateTimeReturns
nextCursorStringhasNextBoolean!totalCountIntquery {
partnerApiKeyAudit(pagination: { … }, filter: { … }) { data nextCursor hasNext totalCount }
}createClientOrg
ScopePARTNER_ADMIN
Arguments
CreateClientOrgInput
nameString!RequiredslugStringexternalIdStringtenantDbUriStringtenantRedisUrlStringReturns
_idString!nameString!slugString!partnerOfStringpartnerRelationPartnerRelationexternalIdStringtenantConnectionTenantConnectionStatusmutation {
createClientOrg(input: { … }) { _id name slug partnerOf partnerRelation }
}createClientOrgWithWebhook
ScopePARTNER_ADMIN
Create a managed client org and a webhook subscription bound to it. The signing secret is returned only in this response. If the webhook step fails after the org exists, the org is kept: call registerPartnerWebhook with organisationIds [childId] to recover.
Arguments
CreateClientOrgInput
nameString!RequiredslugStringexternalIdStringtenantDbUriStringtenantRedisUrlStringClientOrgWebhookInput
urlString!RequiredReturns
mutation {
createClientOrgWithWebhook(input: { … }, webhook: { … }) { organisation webhook }
}deletePartnerWebhook
ScopePARTNER_ADMIN
Arguments
idID!RequiredReturns
Boolean!mutation {
deletePartnerWebhook(id: "…")
}deprovisionClientOrg
ScopePARTNER_ADMIN
Arguments
orgIdString!RequiredReturns
successBoolean!organisationIdString!deletedCountsCleanupDeletedCounts!errors[String!]!durationInt!mutation {
deprovisionClientOrg(orgId: "…") { success organisationId deletedCounts errors duration }
}partnerChildUsagePage
ScopePARTNER_ADMIN
Arguments
paginationGetCursorPaginatedInputGetCursorPaginatedInput
cursorStringlimitIntbeforeBooleanTechProviderUsageFilterInput
monthsIntsearchStringReturns
nextCursorStringhasNextBoolean!totalCountIntquery {
partnerChildUsagePage(pagination: { … }, filter: { … }) { data nextCursor hasNext totalCount }
}partnerUsageAllTime
ScopePARTNER_ADMIN
Returns
opsUsedFloat!aiUsedFloat!estimatedAmountCentsInt!query {
partnerUsageAllTime { opsUsed aiUsed estimatedAmountCents }
}partnerUsageHistory
ScopePARTNER_ADMIN
Arguments
TechProviderUsageFilterInput
monthsIntsearchStringReturns
periodEndDateTime!opsUsedFloat!aiUsedFloat!childrenInt!estimatedAmountCentsInt!query {
partnerUsageHistory(filter: { … }) { periodEnd opsUsed aiUsed children estimatedAmountCents }
}partnerUsageSummary
ScopePARTNER_ADMIN
Returns
childrenInt!opsUnitsInt!aiUnitsInt!estimatedAmountCentsInt!currencyString!opsAllowanceRemainingFloat!aiAllowanceRemainingFloat!currentPeriodStartDateTime!currentPeriodEndDateTime!query {
partnerUsageSummary { children opsUnits aiUnits estimatedAmountCents currency }
}partnerWebhookDeliveries
ScopePARTNER_ADMIN
Arguments
Returns
query {
partnerWebhookDeliveries(subscriptionId: "…", status: PENDING, before: { … }, limit: 0, page: 0) { items total nextCursor hasMore }
}partnerWebhooks
ScopePARTNER_ADMIN
Returns
idID!urlString!subscribedEvents[OutboundWebhookEventName!]!organisationIds[ID!]!statusPartnerWebhookStatus!previousSecretExpiresAtDateTimecreatedAtDateTimeupdatedAtDateTimequery {
partnerWebhooks { id url subscribedEvents organisationIds status }
}registerPartnerWebhook
ScopePARTNER_ADMIN
Arguments
Returns
mutation {
registerPartnerWebhook(url: "…", events: […], organisationIds: "…") { id signingSecret }
}setPartnerWebhookOrganisations
ScopePARTNER_ADMIN
Re-target a subscription to specific managed children. The list must be non-empty; to widen to all children, register a new subscription without organisationIds.
Arguments
idID!RequiredorganisationIds[ID!]!RequiredReturns
idID!urlString!subscribedEvents[OutboundWebhookEventName!]!organisationIds[ID!]!statusPartnerWebhookStatus!previousSecretExpiresAtDateTimecreatedAtDateTimeupdatedAtDateTimemutation {
setPartnerWebhookOrganisations(id: "…", organisationIds: "…") { id url subscribedEvents organisationIds status }
}rotatePartnerWebhookSecret
ScopePARTNER_ADMIN
Arguments
idID!RequiredrevokePreviousBooleanfalse.Returns
mutation {
rotatePartnerWebhookSecret(id: "…", revokePrevious: false) { signingSecret previousSecretExpiresAt }
}setPartnerWebhookEvents
ScopePARTNER_ADMIN
Arguments
idID!RequiredReturns
idID!urlString!subscribedEvents[OutboundWebhookEventName!]!organisationIds[ID!]!statusPartnerWebhookStatus!previousSecretExpiresAtDateTimecreatedAtDateTimeupdatedAtDateTimemutation {
setPartnerWebhookEvents(id: "…", events: […]) { id url subscribedEvents organisationIds status }
}setPartnerWebhookStatus
ScopePARTNER_ADMIN
Arguments
idID!RequiredReturns
idID!urlString!subscribedEvents[OutboundWebhookEventName!]!organisationIds[ID!]!statusPartnerWebhookStatus!previousSecretExpiresAtDateTimecreatedAtDateTimeupdatedAtDateTimemutation {
setPartnerWebhookStatus(id: "…", status: ACTIVE) { id url subscribedEvents organisationIds status }
}