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: TLS Radar Expiring API
version: 1.0.0
description: API for TLS Radar - SSL/TLS certificate monitoring service. Monitor certificate expirations, detect vulnerabilities, and receive alerts for your domains. Public certificates on every plan; private PKI monitoring (your own CA's certificates and internal hosts) on Enterprise, set up on request.
contact:
name: TLS Radar Support
url: https://tlsradar.com/contact
license:
name: Proprietary
servers:
- url: https://tlsradar.com/api/v1
description: Production
- url: https://staging.tlsradar.com/api/v1
description: Staging
security:
- oauth2:
- read
- write
- bearerAuth: []
tags:
- name: Expiring
description: 'Convenience: certificates expiring within a window'
paths:
/expiring:
get:
tags:
- Expiring
summary: List certificates expiring within N days
description: Convenience query that flattens all monitored hosts the user can see and returns those whose latest scan shows an expiration date within the requested window. Sorted by days until expiration ascending. Requires the `read` scope.
parameters:
- name: within
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 365
default: 30
description: Days from now to look ahead
responses:
'200':
description: List of expiring monitors with metadata
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/ExpiringEntry'
meta:
type: object
properties:
within_days:
type: integer
count:
type: integer
'401':
description: Missing, invalid, expired or revoked credential. Suspending or deleting an account revokes all of its API keys and OAuth tokens.
x-required-scope: read
operationId: getExpiring
x-operation-id-source: derived
components:
schemas:
ExpiringEntry:
type: object
properties:
host_id:
type: string
format: uuid
address:
type: string
expiration_date:
type: string
format: date-time
days_until_expiration:
type: integer
last_scanned_at:
type: string
format: date-time
scan_group:
type: object
properties:
id:
type: string
format: uuid
friendly_name:
type: string
team:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: API Key
description: API key obtained from TLS Radar dashboard
oauth2:
type: oauth2
description: OAuth 2.0 Authorization Code + PKCE. Public clients can self-register via RFC 7591 at /oauth/register. See /.well-known/oauth-authorization-server for the full metadata document.
flows:
authorizationCode:
authorizationUrl: https://tlsradar.com/oauth/authorize
tokenUrl: https://tlsradar.com/oauth/token
refreshUrl: https://tlsradar.com/oauth/token
scopes:
read: Read access to scans, monitors, teams, and account
write: Create and modify monitors, teams, scans
admin: All read + write plus account-level operations