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: SAGARIS Public Suppression API
version: 1.0.0
description: 'Versioned public REST API (/api/v1). Authenticate with a workspace-scoped API key as a Bearer token (Authorization: Bearer ros_live_...). The workspace is resolved from the key; no client-supplied workspace id is ever trusted. Writes are rate-limited per key, and the writes that declare an Idempotency-Key header honour it. This document is served unauthenticated as developer documentation.'
termsOfService: https://www.sagaris.ai/terms
contact:
name: SAGARIS Support
url: https://www.sagaris.ai/contact
email: support@sagaris.ai
servers:
- url: https://www.sagaris.ai/api/v1
description: Versioned public API surface.
security:
- ApiKeyAuth: []
tags:
- name: Suppression
description: Add emails to the workspace suppression list.
paths:
/suppression:
post:
tags:
- Suppression
summary: Add to suppression list
description: Add an email to the workspace suppression list. Provide an email directly, or a contact_id that resolves to its email within the key's workspace. Upserts on (workspace_id, email). Requires the suppression.write scope.
operationId: addSuppression
security:
- ApiKeyAuth:
- suppression.write
parameters:
- name: Idempotency-Key
in: header
required: false
description: Opaque client-supplied key. A retry with the same key replays the original response instead of writing again.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
description: Provide either email or contact_id.
properties:
email:
type: string
format: email
contact_id:
type: string
description: A contact in the key's workspace; resolves to its email.
reason:
type: string
default: manual
description: Suppression reason; defaults to manual.
responses:
'201':
description: The suppression row.
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Suppression'
error:
type: 'null'
required:
- data
- error
'400':
description: Invalid JSON body or field validation failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, malformed, invalid, revoked, or expired API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The key does not hold the required scope for this operation.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: The referenced resource was not found in the key's workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Per-key write rate limit exceeded (60 requests / 60s).
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
minimum: 1
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Lookup or upsert failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: The database / API-keys table is not provisioned.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Suppression:
type: object
properties:
id:
type: string
workspace_id:
type: string
email:
type: string
reason:
type: string
nullable: true
source:
type: string
nullable: true
created_at:
type: string
format: date-time
Error:
type: object
description: The standard v1 error envelope.
properties:
data:
type: 'null'
error:
type: string
description: Human-readable error message.
code:
type: string
description: Machine-readable error code (e.g. validation_failed, rate_limited).
correlationId:
type: string
description: Present on unexpected 500s for support correlation.
required:
- data
- error
securitySchemes:
ApiKeyAuth:
type: http
scheme: bearer
description: 'Workspace-scoped API key presented as a Bearer token (Authorization: Bearer ros_live_...). The workspace is resolved from the key.'