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: Cosvoice Com Line API
version: 1.0.0
contact:
name: CosVoice
url: https://cosvoice.com/contact
termsOfService: https://cosvoice.com/terms
description: 'Operations tagged Line across 2 of this provider''s published API definitions: cosvoice-com-openapi.json, cosvoice-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cosvoice.com/api/v1
security:
- bearerAuth: []
tags:
- name: Line
paths:
/line:
get:
operationId: getLine
summary: The line's number, email, name, and minutes left
security:
- bearerAuth: []
responses:
'200':
description: The line.
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
tags:
- Line
servers:
- url: https://cosvoice.com/api/v1
components:
schemas:
Error:
type: object
properties:
error:
type: string
description: What went wrong, in plain words you can show the owner.
required:
- error
responses:
NotFound:
description: No such call, email, or contact on this line.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Something in the request is missing or malformed; the message says which field.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: The key is missing, wrong, or revoked. Ask the owner for a new one; do not retry.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Over 240 requests a minute. Wait a little and try again.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: A line's API key (cv_live_…), from Settings → Connect your agent.
x-refined-from:
- cosvoice-com-openapi.json
- cosvoice-com-openapi.yml