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 Auth API
version: 2.0.0
contact:
name: Lazybird
url: https://www.lazybird.app
description: 'Operations tagged Auth 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: Auth
paths:
/auth/request-code:
post:
operationId: requestLoginCode
summary: Email a login code
description: 'Sign up or log in without the studio: emails a 6-digit code that `/auth/verify-code` trades for an API key. Creates a free account on verify if none exists for the email. The response is the same whether or not an account exists. Disposable email domains are rejected. One code per email per minute, five per hour.'
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- email
properties:
email:
type: string
format: email
responses:
'202':
description: Code sent
content:
application/json:
schema:
type: object
properties:
sent:
type: boolean
expiresInSeconds:
type: integer
examples:
- 600
'400':
description: Invalid input
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'
headers:
Retry-After:
schema:
type: integer
'503':
description: Email login is temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Auth
servers:
- url: https://api.lazybird.app/v2
/auth/verify-code:
post:
operationId: verifyLoginCode
summary: Trade a login code for an API key
description: Returns a new API key for the account. Codes expire after 10 minutes and work once; five wrong attempts cancel the code. Each successful verification creates a new key; existing keys keep working.
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- email
- code
properties:
email:
type: string
format: email
code:
type: string
description: The 6-digit code from the email
keyName:
type: string
maxLength: 100
description: A label for the new key
responses:
'200':
description: API key created
content:
application/json:
schema:
type: object
properties:
apiKey:
type: string
userId:
type: string
email:
type: string
isNewAccount:
type: boolean
'400':
description: Invalid or expired code
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'
headers:
Retry-After:
schema:
type: integer
tags:
- Auth
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)