PERM Tracker Webhooks API
Signed deliveries when a watched case changes status, DOL moves an employer's cases, a visa bulletin is published or the queue moves. Needs the webhooks scope.
Signed deliveries when a watched case changes status, DOL moves an employer's cases, a visa bulletin is published or the queue moves. Needs the webhooks scope.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/permtracker-app:permtracker-app-webhooks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PERM Tracker Webhooks API
summary: Federal PERM, prevailing wage, H-1B and visa bulletin records, as JSON.
version: 1.1.0
description: 'U.S. employment-based immigration records from the Department of Labor and the State Department, as JSON: a case by its number, cases found without one, DOL''s processing times and the pending queue, an estimate of a PERM decision date, the visa bulletin, and each employer''s, law firm''s and occupation''s PERM record.
Every answer names its source, the date it''s true for and the page that shows it. The same reads are offered to AI assistants as tools at https://permtracker.app/mcp.
Free plan: 10 calls a minute, 300 a day, 3,000 a month. A sandbox key (pt_test_) answers fixed sample data and is never counted.
Errors are RFC 9457 problem documents that also carry the `error` object version 1 has always sent. The codes: bad_request, refused, missing_key, invalid_key, revoked_key, expired_key, missing_scope, plan_feature, sandbox_key, unknown_endpoint, not_found, rate_limited, daily_limit, monthly_limit, busy, live_daily_limit, live_api_limit, live_site_limit, export_daily_limit, internal_error, unavailable, key_check_failed, dol_unavailable, live_unavailable, record_failed, export_unavailable, not_loaded.'
termsOfService: https://permtracker.app/api-terms
contact:
name: PERM Tracker
email: support@permtracker.app
url: https://permtracker.app/developers
license:
name: API terms; the data is CC BY 4.0
url: https://permtracker.app/api-terms
servers:
- url: https://permtracker.app/v1
description: Production
security:
- bearer: []
- apiKeyHeader: []
tags:
- name: Webhooks
description: Signed deliveries when a watched case changes status, DOL moves an employer's cases, a visa bulletin is published or the queue moves. Needs the webhooks scope.
paths:
/webhooks:
get:
operationId: listWebhooks
tags:
- Webhooks
summary: List webhook endpoints
description: 'This account''s webhook endpoints (url, events, whether paused, the secret''s last four characters) and its watches, with every event an endpoint can ask for. Needs the webhooks scope.
Needs a key with the webhooks scope. Counted as one call.'
parameters: []
responses:
'200':
description: The answer in `data`, and in `meta` the source, the date the data is true for and the page that shows it.
headers:
RateLimit-Limit:
description: The plan's calls a minute.
schema:
type: integer
RateLimit-Remaining:
description: Calls left in this minute.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the minute turns.
schema:
type: integer
content:
application/json:
schema:
type: object
required:
- data
- meta
properties:
data:
$ref: '#/components/schemas/WebhookList'
meta:
$ref: '#/components/schemas/Meta'
example:
data:
endpoints:
- id: jd7abc123def456ghi789
url: https://example.com/hooks/perm
events:
- case.status_changed
paused: false
secretLast4: 9f2c
watches:
- kind: case
caseNumber: G-100-26045-123456
events:
- case.status_changed
- employer.moved
- bulletin.published
- queue.moved
- processing_times.updated
meta:
source: PERM Tracker
asOf: null
url: https://permtracker.app/developers
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/Unavailable'
post:
operationId: createWebhook
tags:
- Webhooks
summary: Add a webhook endpoint
description: 'Add an endpoint: a public https address and the events it wants. The answer carries the signing secret, the only time it''s shown; keep it to check each delivery''s webhook-signature header. Plus has 5 endpoints. Needs the webhooks scope.
Needs a key with the webhooks scope. Counted as one call.'
parameters: []
requestBody:
required: true
description: 'url (public https) and events, any of: case.status_changed, employer.moved, bulletin.published, queue.moved, processing_times.updated.'
content:
application/json:
schema:
type: object
properties:
url:
type: string
description: A public https address that answers within 10 seconds.
events:
minItems: 1
type: array
items:
type: string
enum:
- case.status_changed
- employer.moved
- bulletin.published
- queue.moved
- processing_times.updated
description: The events the endpoint wants.
required:
- url
- events
additionalProperties: false
example:
url: https://example.com/hooks/perm
events:
- case.status_changed
- bulletin.published
responses:
'200':
description: The answer in `data`, and in `meta` the source, the date the data is true for and the page that shows it.
headers:
RateLimit-Limit:
description: The plan's calls a minute.
schema:
type: integer
RateLimit-Remaining:
description: Calls left in this minute.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the minute turns.
schema:
type: integer
content:
application/json:
schema:
type: object
required:
- data
- meta
properties:
data:
$ref: '#/components/schemas/WebhookCreated'
meta:
$ref: '#/components/schemas/Meta'
example:
data:
id: jd7abc123def456ghi789
url: https://example.com/hooks/perm
events:
- case.status_changed
- bulletin.published
secret: whsec_shown_once
note: This is the only time the secret is shown. Use it to check each delivery's webhook-signature header.
meta:
source: PERM Tracker
asOf: null
url: https://permtracker.app/developers
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/Unavailable'
/webhooks/{id}:
delete:
operationId: deleteWebhook
tags:
- Webhooks
summary: Delete a webhook endpoint
description: 'Delete an endpoint and its delivery log. Needs the webhooks scope.
Needs a key with the webhooks scope. Counted as one call.'
parameters:
- name: id
in: path
required: true
description: The endpoint's id, from the list of webhooks.
schema:
type: string
maxLength: 64
example: jd7abc123def456ghi789
responses:
'200':
description: The answer in `data`, and in `meta` the source, the date the data is true for and the page that shows it.
headers:
RateLimit-Limit:
description: The plan's calls a minute.
schema:
type: integer
RateLimit-Remaining:
description: Calls left in this minute.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the minute turns.
schema:
type: integer
content:
application/json:
schema:
type: object
required:
- data
- meta
properties:
data:
$ref: '#/components/schemas/Done'
meta:
$ref: '#/components/schemas/Meta'
example:
data:
deleted: true
meta:
source: PERM Tracker
asOf: null
url: https://permtracker.app/developers
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/Unavailable'
/watches:
get:
operationId: listWatches
tags:
- Webhooks
summary: List watched cases and employers
description: 'The case numbers and employers this account''s webhooks watch, with its endpoints. Needs the webhooks scope.
Needs a key with the webhooks scope. Counted as one call.'
parameters: []
responses:
'200':
description: The answer in `data`, and in `meta` the source, the date the data is true for and the page that shows it.
headers:
RateLimit-Limit:
description: The plan's calls a minute.
schema:
type: integer
RateLimit-Remaining:
description: Calls left in this minute.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the minute turns.
schema:
type: integer
content:
application/json:
schema:
type: object
required:
- data
- meta
properties:
data:
$ref: '#/components/schemas/WebhookList'
meta:
$ref: '#/components/schemas/Meta'
example:
data:
endpoints:
- id: jd7abc123def456ghi789
url: https://example.com/hooks/perm
events:
- case.status_changed
paused: false
secretLast4: 9f2c
watches:
- kind: case
caseNumber: G-100-26045-123456
events:
- case.status_changed
- employer.moved
- bulletin.published
- queue.moved
- processing_times.updated
meta:
source: PERM Tracker
asOf: null
url: https://permtracker.app/developers
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/Unavailable'
post:
operationId: createWatch
tags:
- Webhooks
summary: Watch a case or an employer
description: 'Watch a case number (case.status_changed fires when DOL''s status for it changes) or an employer''s page (employer.moved fires when DOL moves its cases as a group). Plus watches 100. Needs the webhooks scope.
Needs a key with the webhooks scope. Counted as one call.'
parameters: []
requestBody:
required: true
description: One of caseNumber (as DOL prints it) or employer (its page's slug, from the employer search).
content:
application/json:
schema:
type: object
properties:
caseNumber:
description: A case number as DOL prints it.
type: string
employer:
description: An employer's slug, from the employer search.
type: string
additionalProperties: false
example:
caseNumber: G-100-26045-123456
responses:
'200':
description: The answer in `data`, and in `meta` the source, the date the data is true for and the page that shows it.
headers:
RateLimit-Limit:
description: The plan's calls a minute.
schema:
type: integer
RateLimit-Remaining:
description: Calls left in this minute.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the minute turns.
schema:
type: integer
content:
application/json:
schema:
type: object
required:
- data
- meta
properties:
data:
$ref: '#/components/schemas/Done'
meta:
$ref: '#/components/schemas/Meta'
example:
data:
watching: G-100-26045-123456
kind: case
meta:
source: PERM Tracker
asOf: null
url: https://permtracker.app/developers
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/Unavailable'
/watches/{target}:
delete:
operationId: deleteWatch
tags:
- Webhooks
summary: Stop watching a case or an employer
description: 'Stop watching a case number, or an employer with kind=employer. Needs the webhooks scope.
Needs a key with the webhooks scope. Counted as one call.'
parameters:
- name: target
in: path
required: true
description: The case number, or the employer's slug.
schema:
type: string
maxLength: 120
example: G-100-26045-123456
- name: kind
in: query
required: false
description: What the target is.
schema:
type: string
enum:
- case
- employer
default: case
example: case
responses:
'200':
description: The answer in `data`, and in `meta` the source, the date the data is true for and the page that shows it.
headers:
RateLimit-Limit:
description: The plan's calls a minute.
schema:
type: integer
RateLimit-Remaining:
description: Calls left in this minute.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the minute turns.
schema:
type: integer
content:
application/json:
schema:
type: object
required:
- data
- meta
properties:
data:
$ref: '#/components/schemas/Done'
meta:
$ref: '#/components/schemas/Meta'
example:
data:
removed: true
meta:
source: PERM Tracker
asOf: null
url: https://permtracker.app/developers
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/Unavailable'
components:
responses:
Forbidden:
description: 'The key lacks the scope, or the plan lacks the feature. Not counted. Codes: missing_scope, plan_feature, sandbox_key.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
example:
type: https://permtracker.app/developers#error-missing-scope
title: The key lacks a scope
status: 403
detail: 'The key can read public records, and this call needs more: export, live_lookup or webhooks. Make a key with that scope.'
code: missing_scope
error:
code: missing_scope
message: 'The key can read public records, and this call needs more: export, live_lookup or webhooks. Make a key with that scope.'
docs: https://permtracker.app/developers
BadRequest:
description: 'The request isn''t valid. Not counted. Codes: bad_request, refused.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
example:
type: https://permtracker.app/developers#error-bad-request
title: The request isn't valid
status: 400
detail: A parameter is missing, malformed or out of range. The message says which one and what it takes.
code: bad_request
error:
code: bad_request
message: A parameter is missing, malformed or out of range. The message says which one and what it takes.
docs: https://permtracker.app/developers
ServerError:
description: 'Something went wrong on our side. Nothing was counted. Codes: internal_error.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
example:
type: https://permtracker.app/developers#error-internal-error
title: Something went wrong on our side
status: 500
detail: Our failure, not the request's. Nothing was counted. Try again shortly.
code: internal_error
error:
code: internal_error
message: Our failure, not the request's. Nothing was counted. Try again shortly.
docs: https://permtracker.app/developers
TooManyRequests:
description: 'A minute, day or month limit. Retry-After says when it lifts. Not counted. Codes: rate_limited, daily_limit, monthly_limit, busy, live_daily_limit, live_api_limit, live_site_limit, export_daily_limit.'
headers:
Retry-After:
description: Seconds until it's worth trying again.
schema:
type: integer
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
example:
type: https://permtracker.app/developers#error-rate-limited
title: Too many calls this minute
status: 429
detail: The plan's calls a minute are used, or one address is asking faster than the front door allows. Retry-After says how many seconds to wait.
code: rate_limited
retryAfter: 42
error:
code: rate_limited
message: The plan's calls a minute are used, or one address is asking faster than the front door allows. Retry-After says how many seconds to wait.
retryAfter: 42
docs: https://permtracker.app/developers
Unauthorized:
description: 'No key, or a key that''s unknown, revoked or expired. Codes: missing_key, invalid_key, revoked_key, expired_key.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
example:
type: https://permtracker.app/developers#error-missing-key
title: No API key
status: 401
detail: 'The endpoint needs a key. Make one free in Settings, under API keys, and send it as Authorization: Bearer <key>.'
code: missing_key
error:
code: missing_key
message: 'The endpoint needs a key. Make one free in Settings, under API keys, and send it as Authorization: Bearer <key>.'
docs: https://permtracker.app/developers
NotFound:
description: 'No such record. Counted, like an answer. Codes: unknown_endpoint, not_found.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
example:
type: https://permtracker.app/developers#error-unknown-endpoint
title: No such endpoint
status: 404
detail: The address isn't one of the API's endpoints. The index at /v1 lists them, and so does the OpenAPI document.
code: unknown_endpoint
error:
code: unknown_endpoint
message: The address isn't one of the API's endpoints. The index at /v1 lists them, and so does the OpenAPI document.
docs: https://permtracker.app/developers
Unavailable:
description: 'A part the call needs can''t be reached right now. Retry-After says when to try again. Not counted. Codes: unavailable, key_check_failed, dol_unavailable, live_unavailable, record_failed, export_unavailable, not_loaded.'
headers:
Retry-After:
description: Seconds until it's worth trying again.
schema:
type: integer
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
example:
type: https://permtracker.app/developers#error-unavailable
title: Not available right now
status: 503
detail: A part the call needs can't be reached, or the server is full for a moment. Retry-After, when it's sent, says how long to wait.
code: unavailable
error:
code: unavailable
message: A part the call needs can't be reached, or the server is full for a moment. Retry-After, when it's sent, says how long to wait.
docs: https://permtracker.app/developers
schemas:
WebhookList:
type: object
properties:
endpoints:
type: array
items:
type: object
properties:
id:
type: string
description: The endpoint's id. Send it to delete the endpoint.
url:
type: string
description: The https address deliveries are posted to.
events:
type: array
items:
type: string
description: The events the endpoint receives.
required:
- id
- url
- events
additionalProperties: {}
description: One webhook endpoint.
description: This account's endpoints, each with its url, events, whether it's paused and the last four characters of its secret.
watches:
type: array
items:
type: object
propertyNames:
type: string
additionalProperties: {}
description: The cases and employers this account's webhooks watch.
events:
type: array
items:
type: string
description: Every event an endpoint can ask for.
required:
- endpoints
- watches
- events
additionalProperties: {}
description: An account's webhook endpoints and watches.
Problem:
type: object
properties:
type:
type: string
description: A URL naming the kind of problem. It opens the docs for that error code.
title:
type: string
description: The kind of problem in a few words.
status:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
description: The HTTP status, repeated.
detail:
type: string
description: What went wrong with this request and what to do, in a sentence.
code:
type: string
description: A stable machine-readable code, e.g. rate_limited or not_found.
retryAfter:
description: Seconds until the limit lifts. Also sent as the Retry-After header.
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
error:
type: object
properties:
code:
type: string
description: The same code.
message:
type: string
description: The same sentence as detail.
retryAfter:
description: Seconds until the limit lifts.
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
url:
description: A page on permtracker.app that can help, when there is one.
type: string
docs:
type: string
description: The developer page.
required:
- code
- message
- docs
additionalProperties: {}
description: The error as version 1 has always sent it. Kept so older clients keep working.
required:
- type
- title
- status
- detail
- code
- error
additionalProperties: {}
description: 'A refusal or a failure: an RFC 9457 problem document, with the older error object inside it.'
Meta:
type: object
properties:
source:
type: string
description: Who published the underlying records, in words.
asOf:
anyOf:
- type: string
pattern: ^\d{4}-\d{2}-\d{2}$
description: The date the data is true for, as YYYY-MM-DD.
- type: 'null'
description: The date the data is true for, as YYYY-MM-DD, or null when no single date applies.
url:
type: string
description: The page on permtracker.app that shows the same thing. Cite it.
required:
- source
- asOf
- url
additionalProperties: false
description: 'Where the answer came from: the publisher, the date it''s true for, and the page that shows it.'
WebhookCreated:
type: object
properties:
id:
type: string
description: The new endpoint's id.
secret:
type: string
description: 'The signing secret. Shown this once: use it to check each delivery''s webhook-signature header.'
note:
type: string
description: A reminder that the secret is shown only once.
required:
- id
- secret
- note
additionalProperties: {}
description: A new webhook endpoint with its signing secret.
Done:
type: object
properties: {}
additionalProperties: {}
description: What was done, in a few fields.
securitySchemes:
bearer:
type: http
scheme: bearer
description: 'Your key, pt_live_... (or pt_test_... for the sandbox), from Settings > API keys, as Authorization: Bearer <key>.'
apiKeyHeader:
type: apiKey
in: header
name: X-API-Key
description: The same key in an X-API-Key header, for clients that can't set Authorization.
externalDocs:
description: 'The developer page: quick start, limits, errors, webhooks, SDKs and the MCP server.'
url: https://permtracker.app/developers