LyricPatch Agent keys API
The Agent keys API from LyricPatch — 2 operation(s) for agent keys.
The Agent keys API from LyricPatch — 2 operation(s) for agent keys.
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/lyricpatch-com:lyricpatch-com-agent-keys-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: LyricPatch Agent keys API
version: 0.1.0
tags:
- name: Agent keys
paths:
/v1/account/agent-keys:
get:
tags:
- Agent keys
summary: List Keys
operationId: list_keys_v1_account_agent_keys_get
security:
- HTTPBearer: []
parameters:
- name: x-dev-user-id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Dev-User-Id
- name: x-dev-email
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Dev-Email
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AgentKeyList'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Agent keys
summary: Create Key
operationId: create_key_v1_account_agent_keys_post
security:
- HTTPBearer: []
parameters:
- name: x-dev-user-id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Dev-User-Id
- name: x-dev-email
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Dev-Email
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AgentKeyCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AgentKeyCreated'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/account/agent-keys/{key_id}:
delete:
tags:
- Agent keys
summary: Revoke Key
operationId: revoke_key_v1_account_agent_keys__key_id__delete
security:
- HTTPBearer: []
parameters:
- name: key_id
in: path
required: true
schema:
type: string
format: uuid
title: Key Id
- name: x-dev-user-id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Dev-User-Id
- name: x-dev-email
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Dev-Email
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
AgentKeyList:
properties:
items:
items:
$ref: '#/components/schemas/AgentKeyResponse'
type: array
title: Items
type: object
required:
- items
title: AgentKeyList
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
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
AgentKeyResponse:
properties:
id:
type: string
format: uuid
title: Id
name:
type: string
title: Name
key_prefix:
type: string
title: Key Prefix
scopes:
items:
type: string
type: array
title: Scopes
project_ids:
anyOf:
- items:
type: string
format: uuid
type: array
- type: 'null'
title: Project Ids
daily_credit_limit:
type: integer
title: Daily Credit Limit
credits_used_today:
type: integer
title: Credits Used Today
default: 0
created_at:
type: string
format: date-time
title: Created At
expires_at:
type: string
format: date-time
title: Expires At
revoked_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Revoked At
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
type: object
required:
- id
- name
- key_prefix
- scopes
- daily_credit_limit
- created_at
- expires_at
title: AgentKeyResponse
AgentKeyCreated:
properties:
id:
type: string
format: uuid
title: Id
name:
type: string
title: Name
key_prefix:
type: string
title: Key Prefix
scopes:
items:
type: string
type: array
title: Scopes
project_ids:
anyOf:
- items:
type: string
format: uuid
type: array
- type: 'null'
title: Project Ids
daily_credit_limit:
type: integer
title: Daily Credit Limit
credits_used_today:
type: integer
title: Credits Used Today
default: 0
created_at:
type: string
format: date-time
title: Created At
expires_at:
type: string
format: date-time
title: Expires At
revoked_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Revoked At
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
secret:
type: string
title: Secret
type: object
required:
- id
- name
- key_prefix
- scopes
- daily_credit_limit
- created_at
- expires_at
- secret
title: AgentKeyCreated
AgentKeyCreate:
properties:
name:
type: string
maxLength: 80
minLength: 1
title: Name
scopes:
items:
type: string
enum:
- projects:read
- projects:write
- generate
- export
- transcribe
- payments
type: array
maxItems: 6
minItems: 1
title: Scopes
project_ids:
anyOf:
- items:
type: string
format: uuid
type: array
maxItems: 100
- type: 'null'
title: Project Ids
daily_credit_limit:
type: integer
maximum: 10000.0
minimum: 1.0
title: Daily Credit Limit
default: 100
expires_in_days:
type: integer
maximum: 365.0
minimum: 1.0
title: Expires In Days
default: 90
legal_version:
type: string
maxLength: 50
minLength: 1
title: Legal Version
rights_attested:
type: boolean
const: true
title: Rights Attested
type: object
required:
- name
- scopes
- legal_version
- rights_attested
title: AgentKeyCreate
securitySchemes:
HTTPBearer:
type: http
scheme: bearer