TradesAPI Batch Jobs API
The batch-jobs API from TradesAPI — 3 operation(s) for batch-jobs.
The batch-jobs API from TradesAPI — 3 operation(s) for batch-jobs.
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/tradesapi-com:tradesapi-com-batch-jobs-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: Trades Batch Jobs API
description: Real-time contractor license verification across all 50 US states + DC, plus 16 metro areas. Send a license number + state + trade, get back a normalized JSON result with status, expiration, and disciplinary history.
version: 1.0.0
tags:
- name: batch-jobs
paths:
/batch/jobs:
post:
tags:
- batch-jobs
summary: Submit an asynchronous batch verification job
operationId: submit_batch_job_batch_jobs_post
parameters:
- name: x-api-key
in: header
required: false
schema:
type: string
description: API key for authentication
default: ''
title: X-Api-Key
description: API key for authentication
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BatchJobsRequest'
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/BatchJobSubmitted'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/batch/jobs/{job_id}:
get:
tags:
- batch-jobs
summary: Get Batch Job
operationId: get_batch_job_batch_jobs__job_id__get
parameters:
- name: job_id
in: path
required: true
schema:
type: string
title: Job Id
- name: x-api-key
in: header
required: false
schema:
type: string
description: API key for authentication
default: ''
title: X-Api-Key
description: API key for authentication
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/BatchJobStatus'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/batch/jobs/{job_id}/items:
get:
tags:
- batch-jobs
summary: Get Batch Job Items
operationId: get_batch_job_items_batch_jobs__job_id__items_get
parameters:
- name: job_id
in: path
required: true
schema:
type: string
title: Job Id
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
- name: limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
default: 200
title: Limit
- name: x-api-key
in: header
required: false
schema:
type: string
description: API key for authentication
default: ''
title: X-Api-Key
description: API key for authentication
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/BatchJobItemOut'
title: Response Get Batch Job Items Batch Jobs Job Id Items Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
BatchJobStatus:
properties:
job_id:
type: string
title: Job Id
status:
type: string
title: Status
total_items:
type: integer
title: Total Items
succeeded_items:
type: integer
title: Succeeded Items
failed_items:
type: integer
title: Failed Items
pending_items:
type: integer
title: Pending Items
credits_charged:
type: integer
title: Credits Charged
created_at:
type: string
title: Created At
started_at:
anyOf:
- type: string
- type: 'null'
title: Started At
finished_at:
anyOf:
- type: string
- type: 'null'
title: Finished At
type: object
required:
- job_id
- status
- total_items
- succeeded_items
- failed_items
- pending_items
- credits_charged
- created_at
- started_at
- finished_at
title: BatchJobStatus
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
VerifyRequest:
properties:
state:
type: string
maxLength: 2
minLength: 2
pattern: ^[A-Za-z]{2}$
title: State
description: Two-letter state code
city:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: City
description: Optional municipality slug (e.g. 'chicago') for city-level licenses. Composed into a jurisdiction code like 'IL_chicago'. None = state-level.
license:
type: string
maxLength: 50
minLength: 1
title: License
description: License number to verify
trade:
type: string
maxLength: 40
minLength: 1
title: Trade
description: Trade type
default: general
type: object
required:
- state
- license
title: VerifyRequest
BatchJobItemOut:
properties:
position:
type: integer
title: Position
jurisdiction:
type: string
title: Jurisdiction
license_number:
type: string
title: License Number
trade:
type: string
title: Trade
status:
type: string
title: Status
result:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Result
error:
anyOf:
- type: string
- type: 'null'
title: Error
duplicate_positions:
anyOf:
- items:
type: integer
type: array
- type: 'null'
title: Duplicate Positions
type: object
required:
- position
- jurisdiction
- license_number
- trade
- status
- result
- error
- duplicate_positions
title: BatchJobItemOut
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
BatchJobSubmitted:
properties:
job_id:
type: string
title: Job Id
status:
type: string
title: Status
total_items:
type: integer
title: Total Items
unique_items:
type: integer
title: Unique Items
type: object
required:
- job_id
- status
- total_items
- unique_items
title: BatchJobSubmitted
BatchJobsRequest:
properties:
licenses:
items:
$ref: '#/components/schemas/VerifyRequest'
type: array
minItems: 1
title: Licenses
type: object
required:
- licenses
title: BatchJobsRequest
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: API key for authenticated endpoints. Sign up at /auth/login to get one. Every successful verification consumes one credit.