GoliathDevelopersGet an API key
Reference/Workflowsgenerated from the gateway manifest

setSkipTraceDailyCap

Set the ORGANIZATION's daily cap on property-signal skip-trace workflow runs.

POST/api/v1/callADMINidempotent · 24 hruns as the key's owner
View as Markdown

Set the ORGANIZATION's daily cap on property-signal skip-trace workflow runs: the dailyCap getWorkflowThrottleUsage reports, shared by every PROPERTY_SIGNAL_SKIP_TRACE workflow in the org. Each run spends a skip-trace credit, so this arms real spend: ADMIN scope, and the key owner must be an org admin. A whole number, 1 to 1,000,000,000; a raise reaches an org already capped today within minutes. Returns the new cap. State the old cap (getWorkflowThrottleUsage on a skip-trace workflow) and the new one first; when it already is that cap, change nothing. Run it as a write code task whose approvedLive names it: that draws the person's yes/no card showing both caps, and only that yes sets it, so never ask a yes of your own. Never lower it unless asked: a lower cap throttles every skip-trace workflow.

curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "setSkipTraceDailyCap",
    "variables": {
      "dailyCap": 10
    }
  }'
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.workflows.setSkipTraceDailyCap(
  {
    dailyCap: 10
  },
  { idempotencyKey: crypto.randomUUID() },
)
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',
    'Idempotency-Key': crypto.randomUUID(),
  },
  body: JSON.stringify({
    operationId: 'setSkipTraceDailyCap',
    variables: {
      dailyCap: 10
    }
  }),
})
const { data, errors } = await res.json()

Variables

The example sends only what the schema requires. Some operations also need one of several optional variables (one filter or another, say); the description above says which.

dailyCapInt!required

Response

What comes back under data: a list shows as one entry, and a value as its type.

response shape
{
  "data": {
    "workflowAutomationsMutation": {
      "updatePropertySignalSkipTraceDailyCap": 0
    }
  }
}

Errors

Idempotency

Send an Idempotency-Key of 1 to 255 characters. A finished request retried with the same key replays its stored response, marked Idempotency-Replayed: true; one still in flight returns 409 idempotency_conflict. Keys expire after 24 hours. Write without fear →