Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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: Yonyon Ai Jobs API
version: 1.0.0
contact:
name: Yonatan Gross
email: hi@yonyon.ai
url: https://yonyon.ai
description: 'Operations tagged Jobs across 2 of this provider''s published API definitions: yonyon-ai-openapi.yml, yonyon-ai.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://yonyon.ai
description: Production. The public API is read-only and anonymous.
tags:
- name: Jobs
paths:
/api/v1/jobs:
post:
operationId: createJob
summary: Start an async read job
description: Accepts a read operation and returns 202 Accepted with a Location header and a job_id in the body. Poll GET /api/v1/jobs/{jobId} for the result. The public API is read-only, so the job always succeeds or fails on the poll; there is no queue to cancel.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- op
properties:
op:
type: string
enum:
- projects
- services
- about
description: Which read to run.
q:
type: string
description: Keyword filter (only applied to the projects op).
responses:
'202':
description: Job accepted. Follow Location or status_url.
headers:
Location:
$ref: '#/components/headers/Location'
X-API-Version:
$ref: '#/components/headers/X-API-Version'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/JobAccepted'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/RateLimited'
tags:
- Jobs
options:
operationId: createJobPreflight
summary: CORS preflight for POST /api/v1/jobs
responses:
'204':
description: CORS preflight response (no body).
tags:
- Jobs
servers:
- url: https://yonyon.ai
description: Production. The public API is read-only and anonymous.
- url: https://yonyon.ai
description: Sandbox (read-only public API; no production side effects). Same origin; see /sandbox.md.
/api/v1/jobs/{jobId}:
get:
operationId: getJob
summary: Poll an async job
description: Returns the result of a job started by POST /api/v1/jobs. The job_id is an opaque token from the 202 body.
parameters:
- name: jobId
in: path
required: true
description: Job identifier returned as job_id by POST /api/v1/jobs.
schema:
type: string
responses:
'200':
description: Job result.
headers:
X-API-Version:
$ref: '#/components/headers/X-API-Version'
content:
application/json:
schema:
$ref: '#/components/schemas/Job'
'404':
description: Unknown job_id.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
tags:
- Jobs
options:
operationId: getJobPreflight
summary: CORS preflight for GET /api/v1/jobs/{jobId}
responses:
'204':
description: CORS preflight response (no body).
tags:
- Jobs
servers:
- url: https://yonyon.ai
description: Production. The public API is read-only and anonymous.
- url: https://yonyon.ai
description: Sandbox (read-only public API; no production side effects). Same origin; see /sandbox.md.
components:
headers:
RateLimit-Remaining:
description: RFC draft-ietf-httpapi-ratelimit-headers. Requests remaining in the current window.
schema:
type: integer
RateLimit-Limit:
description: RFC draft-ietf-httpapi-ratelimit-headers. Requests allowed per window.
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
Location:
description: URI of the newly accepted job (GET /api/v1/jobs/{jobId}).
schema:
type: string
format: uri
X-RateLimit-Limit:
description: Requests allowed per window.
schema:
type: integer
RateLimit-Reset:
description: RFC draft-ietf-httpapi-ratelimit-headers. Seconds (a delta, not an epoch) until the current window resets.
schema:
type: integer
X-RateLimit-Reset:
description: Epoch seconds when the current window resets.
schema:
type: integer
X-API-Version:
description: Major version of the API serving this response. Currently always "1".
schema:
type: string
responses:
BadRequest:
description: Malformed request (invalid JSON, validation failure, or blocked content).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limit exceeded (10 requests/IP/minute).
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
JobAccepted:
type: object
description: 202 Accepted body for POST /api/v1/jobs.
required:
- job_id
- status
- status_url
properties:
job_id:
type: string
description: Opaque job identifier. Pass it to GET /api/v1/jobs/{jobId}.
status:
type: string
enum:
- accepted
description: Always accepted on 202.
status_url:
type: string
format: uri
description: Absolute URL to poll for the result.
op:
type: string
enum:
- projects
- services
- about
Job:
type: object
description: Polled job result from GET /api/v1/jobs/{jobId}.
required:
- job_id
- status
- op
- result
properties:
job_id:
type: string
status:
type: string
enum:
- succeeded
description: Jobs on this API complete on the first poll.
op:
type: string
enum:
- projects
- services
- about
result:
type: object
additionalProperties: true
description: The read result (projects list, services markdown, or about markdown).
Error:
type: object
description: Typed error envelope returned for every non-2xx response.
required:
- error
- code
properties:
error:
type: string
description: Human-readable message.
code:
type: string
description: Stable machine-readable error token.
enum:
- invalid_request
- invalid_limit
- invalid_cursor
- invalid_operations
- too_many_operations
- unknown_op
- rate_limited
- unavailable
- internal_error
- method_not_allowed
- forbidden
- not_found
retry_after:
type: integer
description: Seconds to wait before retrying (present on rate_limited).
docs:
type: string
format: uri
description: Link to this OpenAPI document.
x-refined-from:
- yonyon-ai-openapi.yml
- yonyon-ai.json