Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Agentictrade Io Batch API
version: 0.7.1
description: 'Operations tagged batch across 2 of this provider''s published API definitions: agentictrade-io-openapi.json, agentictrade-io.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Batch
paths:
/api/v1/batch/keys:
post:
tags:
- Batch
summary: Batch Create Keys
description: 'Bulk-create API keys for an owner.
Requires admin authentication. Cap: 10 keys per request (each requires a
separate scrypt hash; larger batches are split across multiple requests).
All keys share the same owner_id, role, and rate_limit.
The raw secret for each key is returned once and cannot be retrieved again.
Scrypt hashing is offloaded to a thread pool via ``run_in_executor``
so the event loop is not blocked (~100ms per key).'
operationId: batch_create_keys_api_v1_batch_keys_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BatchCreateKeysRequest'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/batch/deposits:
post:
tags:
- Batch
summary: Batch Deposits
description: 'Bulk-deposit funds into multiple buyer balances.
Requires admin authentication. Cap: 100 deposits per request.
Each deposit is processed independently; failures for one buyer do not
block the remaining deposits. Failed items are included in the response
with an ``error`` field instead of ``new_balance``.'
operationId: batch_deposits_api_v1_batch_deposits_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BatchDepositsRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/batch/usage:
get:
tags:
- Batch
summary: Batch Usage
description: 'Aggregate API usage across all keys belonging to an owner for a specified date range.
Requires admin authentication.
If period_start and period_end are not provided, defaults to the current calendar month.
Returns total call count, total spend, key count, and the billing period.'
operationId: batch_usage_api_v1_batch_usage_get
parameters:
- name: owner_id
in: query
required: true
schema:
type: string
description: Owner ID to aggregate usage for
title: Owner Id
description: Owner ID to aggregate usage for
- name: period_start
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Start date (ISO 8601, e.g. 2026-01-01). Defaults to first day of current month.
title: Period Start
description: Start date (ISO 8601, e.g. 2026-01-01). Defaults to first day of current month.
- name: period_end
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: End date (ISO 8601, e.g. 2026-01-31). Defaults to current timestamp.
title: Period End
description: End date (ISO 8601, e.g. 2026-01-31). Defaults to current timestamp.
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
BatchDepositsRequest:
properties:
deposits:
items:
$ref: '#/components/schemas/DepositItem'
type: array
title: Deposits
type: object
required:
- deposits
title: BatchDepositsRequest
DepositItem:
properties:
buyer_id:
type: string
title: Buyer Id
amount:
type: string
title: Amount
type: object
required:
- buyer_id
- amount
title: DepositItem
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
BatchCreateKeysRequest:
properties:
count:
type: integer
title: Count
owner_id:
type: string
title: Owner Id
role:
type: string
title: Role
default: buyer
rate_limit:
type: integer
title: Rate Limit
default: 60
type: object
required:
- count
- owner_id
title: BatchCreateKeysRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
x-refined-from:
- agentictrade-io-openapi.json
- agentictrade-io.json