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: Dns Coffee Auth API
version: 1.47.1
contact:
email: api@dns.coffee
name: DNS Coffee
description: 'Operations tagged auth across 2 of this provider''s published API definitions: dns-coffee-openapi.json, dns-coffee-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.dns.coffee
security:
- api_key: []
tags:
- name: Auth
paths:
/api/v1/auth/validate:
get:
description: 'Verifies the presented API key. A call to this endpoint is not required to use the API, but may be helpful when debugging: a valid key answers 204, an invalid or missing key answers 401.
Usage class: `lookup`.'
operationId: auth-validate
responses:
'204':
description: No Content
'429':
content:
application/json:
schema:
properties:
error:
properties:
detail:
description: Human-readable explanation of the error.
type: string
status:
description: HTTP status code, 429.
type: integer
title:
description: Short summary of the error.
type: string
type: object
type: object
description: 'Too Many Requests: the account''s rate limit (or, without a key, the client address''s) is exceeded, or the account''s allowance for this operation''s usage class is used up until the window resets. Retry after the number of seconds in `Retry-After`; `detail` says which limit applied.'
headers:
RateLimit-Policy:
description: The plan's rate limit, as `"rate";q=<requests>;w=60` (requests per 60 seconds). Sent on authenticated requests.
schema:
type: string
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
X-RateLimit-Limit:
description: Requests that can be sent back-to-back from idle (the burst), not the per-minute rate.
schema:
type: integer
X-RateLimit-Remaining:
description: Requests that can be sent back-to-back now.
schema:
type: integer
X-RateLimit-Reset:
description: Seconds until the full burst is available again.
schema:
type: integer
default:
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Error
summary: Validate an API key
tags:
- Auth
x-quota-class: lookup
servers:
- url: https://api.dns.coffee
components:
schemas:
ErrorModel:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.dns.coffee/schemas/ErrorModel.json
format: uri
readOnly: true
type: string
detail:
description: A human-readable explanation specific to this occurrence of the problem.
examples:
- Property foo is required but is missing.
type: string
errors:
description: Optional list of individual error details
items:
$ref: '#/components/schemas/ErrorDetail'
type:
- array
- 'null'
instance:
description: A URI reference that identifies the specific occurrence of the problem.
examples:
- https://example.com/error-log/abc123
format: uri
type: string
status:
description: HTTP status code
examples:
- 400
format: int64
type: integer
title:
description: A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
examples:
- Bad Request
type: string
type:
default: about:blank
description: A URI reference to human-readable documentation for the error.
examples:
- https://example.com/errors/example
format: uri
type: string
type: object
ErrorDetail:
additionalProperties: false
properties:
location:
description: Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
type: string
message:
description: Error message text
type: string
value:
description: The value at the given location
type: object
securitySchemes:
api_key:
description: API key issued by DNS Coffee.
in: header
name: X-API-Key
type: apiKey
x-refined-from:
- dns-coffee-openapi.json
- dns-coffee-openapi.yml