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: Lazybird App Checkout API
version: 2.0.0
contact:
name: Lazybird
url: https://www.lazybird.app
description: 'Operations tagged Checkout across 2 of this provider''s published API definitions: lazybird-app-openapi.json, lazybird-app-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.lazybird.app/v2
security:
- apiKeyHeader: []
- apiKeyQuery: []
tags:
- name: Checkout
paths:
/checkout:
post:
operationId: createCheckout
summary: Create a checkout link to upgrade or buy credits
description: Returns a checkout URL for a paid plan ({plan, interval}) or for one-time extra credits ({creditsUsd}). Open it in a browser to pay; the plan or credits apply as soon as payment completes and the same API key keeps working. Extra credits need a plan; they cost $20 per 1M on Creator and $5 on Pro or Max, bought in whole dollars from $10 to $1,000, and never expire.
requestBody:
required: true
content:
application/json:
schema:
oneOf:
- type: object
required:
- plan
- interval
properties:
plan:
type: string
enum:
- creator
- pro
- max
interval:
type: string
enum:
- monthly
- yearly
- type: object
required:
- creditsUsd
properties:
creditsUsd:
type: integer
minimum: 10
maximum: 1000
responses:
'200':
description: Checkout link
content:
application/json:
schema:
type: object
properties:
checkoutUrl:
type: string
format: uri
'400':
description: Invalid input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Plan limit reached (credits, voice slots or plan feature)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Too many requests; retry after `Retry-After` seconds
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Checkout
servers:
- url: https://api.lazybird.app/v2
components:
schemas:
Error:
type: object
properties:
error:
type: string
name:
type: string
code:
type: string
details: {}
upgradeUrl:
type: string
format: uri
description: 'Set when credits ran out: where the user upgrades'
retryAfterSeconds:
type: integer
description: On 429
securitySchemes:
apiKeyHeader:
type: apiKey
in: header
name: X-API-Key
apiKeyQuery:
type: apiKey
in: query
name: api_key
externalDocs:
description: API Reference
url: https://www.lazybird.app/docs/api-reference
x-refined-from:
- lazybird-app-openapi.json
- lazybird-app-openapi.json
x-provenance:
method: harvested
publisher: Lazybird
source: https://www.lazybird.app/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)