{"openapi":"3.1.0","info":{"title":"RegWatch Connector API","version":"1.0.0","summary":"Verified California employment-law changes, plus one account's own briefing, deadlines and alerts.","description":"Free endpoints answer questions about RegWatch's public archive of verified California employment-law changes and need no credential. Account endpoints (my-briefing, my-deadlines, my-alerts) read one subscriber's own data and require a bearer connector key. RegWatch monitors official sources and summarizes changes. It is not legal advice.","termsOfService":"https://regwatch.us/terms","contact":{"name":"RegWatch","email":"contact@regwatch.us","url":"https://regwatch.us/support"}},"servers":[{"url":"https://regwatch.us","description":"RegWatch connector API"}],"tags":[{"name":"Free","description":"Callable by anyone with no credential, including a directory crawler evaluating this submission."},{"name":"Account","description":"One subscriber's own data. Requires a bearer connector key and an active subscription."}],"security":[],"paths":{"/api/connector/v1/whats-changed":{"get":{"operationId":"getWhatsChanged","summary":"What changed in California employment law","description":"Verified California employment-law changes published in a window, newest first, each with a plain-English summary and a citation to the official source. Free and unauthenticated.","tags":["Free"],"security":[],"parameters":[{"name":"since","in":"query","required":false,"description":"How far back to look: a preset window (7d, 14d, 30d, 90d, 180d, 365d), 'all' for the full archive, or a YYYY-MM-DD date. Defaults to 30d.","schema":{"type":"string","default":"30d","pattern":"^(7d|14d|30d|90d|180d|365d|all|\\d{4}-\\d{2}-\\d{2})$"},"example":"30d"},{"name":"agency","in":"query","required":false,"description":"Restrict to one agency, named as RegWatch names it (for example 'Cal/OSHA' or 'Labor Commissioner'). Omit to search every agency.","schema":{"type":"string","minLength":2,"maxLength":120},"example":"Cal/OSHA"},{"name":"topic","in":"query","required":false,"description":"Restrict to one subject area, for example 'wages', 'leave' or 'safety'. Omit to search every topic.","schema":{"type":"string","minLength":2,"maxLength":120},"example":"leave"},{"name":"action_required","in":"query","required":false,"description":"Restrict to changes that do ('true') or do not ('false') require an employer to act. Defaults to 'any'.","schema":{"type":"string","enum":["true","false","any"],"default":"any"},"example":"true"},{"name":"q","in":"query","required":false,"description":"Keyword to match against headlines and summaries, 2 to 120 characters. Omit for no keyword filter.","schema":{"type":"string","minLength":2,"maxLength":120},"example":"sick leave"},{"name":"limit","in":"query","required":false,"description":"How many changes to return, 1 to 25. Defaults to 5, which is about as many as an agent can usefully read aloud.","schema":{"type":"integer","minimum":1,"maximum":25,"default":5},"example":5}],"responses":{"200":{"description":"The matching changes, plus a spoken-language answer summarising them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorAnswer"}}}},"400":{"description":"A parameter was outside its accepted values. The body names the parameter and lists what it accepts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"429":{"description":"The caller is being throttled. Retry-After carries the number of seconds to wait.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"503":{"description":"RegWatch data could not be read. Transient; the underlying cause is never echoed back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}}}}},"/api/connector/v1/explain-change":{"get":{"operationId":"getExplainChange","summary":"Explain one published change in full","description":"The full plain-English explanation of a single published change, with what it requires, who it applies to, any deadline, and the official source citation. Free and unauthenticated.","tags":["Free"],"security":[],"parameters":[{"name":"slug","in":"query","required":true,"description":"The identifier of the change, copied exactly from the 'slug' field of a whats-changed or changes result. No example is given here on purpose: a hardcoded slug would rot the first time that change was unpublished.","schema":{"type":"string","minLength":2,"maxLength":120}}],"responses":{"200":{"description":"The full explanation of that change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorAnswer"}}}},"400":{"description":"A parameter was outside its accepted values. The body names the parameter and lists what it accepts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"404":{"description":"No published change with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"429":{"description":"The caller is being throttled. Retry-After carries the number of seconds to wait.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"503":{"description":"RegWatch data could not be read. Transient; the underlying cause is never echoed back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}}}}},"/api/connector/v1/coverage":{"get":{"operationId":"getCoverage","summary":"What RegWatch monitors","description":"The sources RegWatch checks, how many checks run daily, how many agency groups they span, and how current the archive is. Takes no parameters. Free and unauthenticated.","tags":["Free"],"security":[],"responses":{"200":{"description":"The current coverage figures and what they mean.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorAnswer"}}}},"429":{"description":"The caller is being throttled. Retry-After carries the number of seconds to wait.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"503":{"description":"RegWatch data could not be read. Transient; the underlying cause is never echoed back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}}}}},"/api/connector/v1/changes":{"get":{"operationId":"listChanges","summary":"List published changes (REST-shaped alias)","description":"The same published changes as whats-changed, shaped as a plain collection for clients that expect a REST list endpoint. Free and unauthenticated.","tags":["Free"],"security":[],"parameters":[{"name":"since","in":"query","required":false,"description":"How far back to look: a preset window (7d, 14d, 30d, 90d, 180d, 365d), 'all' for the full archive, or a YYYY-MM-DD date. Defaults to 'all', because a REST list endpoint is expected to return the collection rather than a recent slice.","schema":{"type":"string","default":"all","pattern":"^(7d|14d|30d|90d|180d|365d|all|\\d{4}-\\d{2}-\\d{2})$"},"example":"90d"},{"name":"agency","in":"query","required":false,"description":"Restrict to one agency, named as RegWatch names it (for example 'Cal/OSHA'). Omit for every agency.","schema":{"type":"string","minLength":2,"maxLength":120},"example":"Labor Commissioner"},{"name":"topic","in":"query","required":false,"description":"Restrict to one subject area, for example 'wages' or 'safety'. Omit for every topic.","schema":{"type":"string","minLength":2,"maxLength":120},"example":"wages"},{"name":"limit","in":"query","required":false,"description":"How many changes to return, 1 to 25. Defaults to 20.","schema":{"type":"integer","minimum":1,"maximum":25,"default":20},"example":20}],"responses":{"200":{"description":"The matching changes as a collection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorAnswer"}}}},"400":{"description":"A parameter was outside its accepted values. The body names the parameter and lists what it accepts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"429":{"description":"The caller is being throttled. Retry-After carries the number of seconds to wait.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"503":{"description":"RegWatch data could not be read. Transient; the underlying cause is never echoed back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}}}}},"/api/connector/v1/capabilities":{"get":{"operationId":"getCapabilities","summary":"Connector capabilities manifest","description":"What this connector answers, when an agent should call it, and when it should not. Takes no parameters. Free and unauthenticated.","tags":["Free"],"security":[],"responses":{"200":{"description":"The capabilities manifest.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapabilitiesDocument"}}}}}}},"/api/connector/v1/openapi.json":{"get":{"operationId":"getOpenApiDocument","summary":"This OpenAPI document","description":"The machine-readable OpenAPI 3.1 description of this API. Takes no parameters. Free and unauthenticated.","tags":["Free"],"security":[],"responses":{"200":{"description":"The OpenAPI document.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/api/connector/v1/my-briefing":{"get":{"operationId":"getMyBriefing","summary":"The connected account's briefing","description":"The changes that matter to this specific business, assembled from the profile RegWatch holds for the account. Requires a bearer token from a RegWatch account with an active subscription. There is no generic version of this answer.","tags":["Account"],"security":[{"connectorBearer":[]}],"parameters":[{"name":"since_days","in":"query","required":false,"description":"How many days back the briefing covers, 1 to 90. Defaults to 7, matching the weekly briefing.","schema":{"type":"integer","minimum":1,"maximum":90,"default":7},"example":7},{"name":"limit","in":"query","required":false,"description":"How many items to include, 1 to 25. Defaults to 8.","schema":{"type":"integer","minimum":1,"maximum":25,"default":8},"example":8}],"responses":{"200":{"description":"This account's briefing for the requested window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorAnswer"}}}},"400":{"description":"A parameter was outside its accepted values. The body names the parameter and lists what it accepts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"401":{"description":"No bearer token, or a token that is unknown, revoked or expired. The body explains how to connect a RegWatch account. Do not retry with the same token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"402":{"description":"The token is valid but the account's subscription is not active. The token is not revoked and resumes working when billing recovers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"429":{"description":"The caller is being throttled. Retry-After carries the number of seconds to wait.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"503":{"description":"RegWatch data could not be read. Transient; the underlying cause is never echoed back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}}}}},"/api/connector/v1/my-deadlines":{"get":{"operationId":"getMyDeadlines","summary":"The connected account's compliance deadlines","description":"Dates that are this employer's own obligations, based on the business profile RegWatch holds for the account. Requires a bearer token from a RegWatch account with an active subscription.","tags":["Account"],"security":[{"connectorBearer":[]}],"parameters":[{"name":"within_days","in":"query","required":false,"description":"How far ahead to look, 1 to 365 days. Defaults to 60.","schema":{"type":"integer","minimum":1,"maximum":365,"default":60},"example":60},{"name":"include_overdue","in":"query","required":false,"description":"Whether to include deadlines whose date has already passed. Pass 'true' to include them or 'false' to exclude them.","schema":{"type":"string","enum":["true","false"]},"example":"true"},{"name":"limit","in":"query","required":false,"description":"How many deadlines to return, 1 to 50. Defaults to 10.","schema":{"type":"integer","minimum":1,"maximum":50,"default":10},"example":10}],"responses":{"200":{"description":"This account's deadlines in the requested window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorAnswer"}}}},"400":{"description":"A parameter was outside its accepted values. The body names the parameter and lists what it accepts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"401":{"description":"No bearer token, or a token that is unknown, revoked or expired. The body explains how to connect a RegWatch account. Do not retry with the same token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"402":{"description":"The token is valid but the account's subscription is not active. The token is not revoked and resumes working when billing recovers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"429":{"description":"The caller is being throttled. Retry-After carries the number of seconds to wait.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"503":{"description":"RegWatch data could not be read. Transient; the underlying cause is never echoed back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}}}}},"/api/connector/v1/my-alerts":{"get":{"operationId":"getMyAlerts","summary":"The connected account's alerts","description":"The saved filters this account is being alerted on, and where they deliver. Requires a bearer token from a RegWatch account with an active subscription.","tags":["Account"],"security":[{"connectorBearer":[]}],"parameters":[{"name":"include_off","in":"query","required":false,"description":"Pass 'true' to include alerts that are currently switched off. Defaults to 'false', which lists only active alerts.","schema":{"type":"string","enum":["true","false"],"default":"false"},"example":"false"}],"responses":{"200":{"description":"This account's alerts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorAnswer"}}}},"400":{"description":"A parameter was outside its accepted values. The body names the parameter and lists what it accepts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"401":{"description":"No bearer token, or a token that is unknown, revoked or expired. The body explains how to connect a RegWatch account. Do not retry with the same token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"402":{"description":"The token is valid but the account's subscription is not active. The token is not revoked and resumes working when billing recovers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"429":{"description":"The caller is being throttled. Retry-After carries the number of seconds to wait.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}},"503":{"description":"RegWatch data could not be read. Transient; the underlying cause is never echoed back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorError"}}}}}}}},"components":{"securitySchemes":{"connectorBearer":{"type":"http","scheme":"bearer","description":"A RegWatch connector key, minted by the account owner at regwatch.us and sent as 'Authorization: Bearer <token>'. Only the account endpoints require it; the free endpoints must be callable with no credential at all."}},"schemas":{"ConnectorAnswer":{"type":"object","description":"Every successful response. Carries both structured data and sentences an agent can say out loud.","required":["ok","intent","as_of","answer","answer_short","disclaimer"],"properties":{"ok":{"type":"boolean","description":"True on success."},"intent":{"type":"string","description":"Which capability answered, for example 'whats_changed'."},"as_of":{"type":"string","format":"date-time","description":"When this answer was assembled."},"answer":{"type":"string","description":"The full spoken-language answer."},"answer_short":{"type":"string","description":"A one-sentence version of the same answer."},"next_actions":{"type":"array","description":"Follow-up calls that make sense from here.","items":{"type":"object","additionalProperties":true}},"upgrade":{"type":["object","null"],"description":"Present when a connected account would give a materially better answer.","additionalProperties":true},"disclaimer":{"type":"string","description":"Must be surfaced to the user: RegWatch summarises official sources and is not legal advice."}},"additionalProperties":true},"ConnectorError":{"type":"object","description":"Every failure, including the 401 and 402 gates. Also carries spoken-language text, because an agent that says only 'the tool failed' has ended the conversation.","required":["ok","error","answer","answer_short","disclaimer"],"properties":{"ok":{"type":"boolean","description":"False on every error."},"intent":{"type":"string","description":"Which capability was being called."},"requires_connection":{"type":"boolean","description":"True when the caller needs to connect a RegWatch account. Do not retry until they have."},"error":{"type":"object","description":"Machine-readable failure detail.","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable code: account_connection_required, subscription_inactive, invalid_parameter, not_found, rate_limited or temporarily_unavailable."},"message":{"type":"string","description":"Short human-readable explanation."}},"additionalProperties":true},"answer":{"type":"string","description":"What to say to the user."},"answer_short":{"type":"string","description":"A one-sentence version of the same."},"disclaimer":{"type":"string","description":"RegWatch is not legal advice."}},"additionalProperties":true},"CapabilitiesDocument":{"type":"object","description":"The capabilities manifest: name, coverage, when to use this connector and when not to.","additionalProperties":true}}},"externalDocs":{"url":"https://regwatch.us/api/connector/v1/capabilities","description":"Plain-language capabilities manifest, including when not to use this connector."}}