Skip to content
OmgSecure
How it worksCoverageQuestionsPricingSign inGet started
How it worksCoverageQuestionsPricingSign inGet started

API reference

Version 1, OpenAPI 3.1.1. The machine-readable description is at https://api.omgsecure.com/v1/openapi.json.

The OmgSecure API lets your own tools read what OmgSecure knows about an organization: its domains, scans, alerts, and summaries of the reports mail providers send (DMARC, TLS-RPT and SNDS). Use it from a SIEM, a GRC tool, a spreadsheet or your own scripts. It only reads: no route changes anything. It needs the API access add-on on the organization's plan.

To read the same data from an AI assistant such as Claude or ChatGPT instead, without a key, see Connect an AI assistant. It needs the same add-on. To receive alerts as signed posts instead, see Webhooks.

Authentication

Owners and admins create keys on the API page in the app. A key is omgs_ followed by 49 letters and digits, the last six a checksum, so a mistyped key is refused at once. It is shown once, holds one or more read scopes, and expires after 30, 90 or 365 days. Revoking a key refuses its very next request.

Authorization: Bearer omgs_…

Never put a key in a URL: a request with one in its query string is refused. The scopes are domains:read, scans:read, alerts:read and reports:read.

Limits

Every key of an organization, and every AI assistant connected to it, shares 60 requests a minute and 1,000 a UTC day. Each counted answer says what is left, in the IETF rate-limit fields:

RateLimit-Policy: "minute";q=60;w=60, "day";q=1000;w=86400
RateLimit: "minute";r=59;t=42, "day";r=987;t=3600

r is what remains and t the seconds until the window resets. A request over either quota answers 429 with Retry-After, never earlier than t. Every answer carries a Request-Id, and Cache-Control: no-store.

Lists and changes

Scans, alerts, reports and trends list newest first; the domain list is in no particular order. Each list answers { "data": [...], "nextCursor": "…" }: pass nextCursor back as cursor, or follow the Link header's rel="next", until it is null. limit takes 1 to 100, 25 by default. since (inclusive) and until (exclusive) take an RFC 3339 date or date-time. Each 200 carries an ETag: send it back in If-None-Match and an unchanged answer is a 304 with no body.

/v1 only ever gains fields and routes. A route or field that is to be retired is announced first with the Deprecation and Sunset header fields.

Errors

Every refusal is an RFC 9457 problem, application/problem+json, with type, title, status, detail and instance (the request id). A domain or alert that does not exist and one another organization holds answer the same 404.

StatusProblemMeans
401unauthorizedMissing or invalid API key
403insufficient-scopeThe API key lacks the scope this route needs
403insufficient-roleThe role in this Organization does not allow this
403addon-inactiveThe API and MCP add-on is not on for this Organization
403subscription-inactiveThe Organization's subscription is not active
404not-foundNot found
400invalid-requestThe request is invalid
400invalid-cursorThe cursor is not valid for this list
405method-not-allowedMethod not allowed
429quota-exceededRequest quota exceeded
500internalSomething went wrong on our side

Routes

GET /v1/openapi.json

This description, as JSON. No key needed. Answers 200, 304.

curl https://api.omgsecure.com/v1/openapi.json

GET /v1/domains

The Organization's Domains. Needs domains:read. Answers 200, 304, 400, 401, 403, 429.

  • limit, integer, 1 to 100: Items per page.
  • cursor, string: The nextCursor of the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
  https://api.omgsecure.com/v1/domains

GET /v1/domains/{domainId}

One Domain. Needs domains:read. Answers 200, 304, 401, 403, 404, 429.

curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
  https://api.omgsecure.com/v1/domains/DOMAIN_ID

GET /v1/domains/{domainId}/scans

A Domain's DNS scans, newest first. Needs scans:read. Answers 200, 304, 400, 401, 403, 404, 429.

  • since, string: Only items at or after this instant (an RFC 3339 date or date-time).
  • until, string: Only items before this instant (an RFC 3339 date or date-time).
  • limit, integer, 1 to 100: Items per page.
  • cursor, string: The nextCursor of the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
  https://api.omgsecure.com/v1/domains/DOMAIN_ID/scans

GET /v1/domains/{domainId}/record-changes

A Domain's confirmed DNS record changes, newest first. Needs scans:read. Answers 200, 304, 400, 401, 403, 404, 429.

  • type, one of SPF, DKIM, DMARC, MX, DNSSEC, MTA-STS, TLS-RPT, BIMI, CAA, NS, MULTIPLE: Only changes to this record.
  • since, string: Only items at or after this instant (an RFC 3339 date or date-time).
  • until, string: Only items before this instant (an RFC 3339 date or date-time).
  • limit, integer, 1 to 100: Items per page.
  • cursor, string: The nextCursor of the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
  https://api.omgsecure.com/v1/domains/DOMAIN_ID/record-changes

GET /v1/domains/{domainId}/fixes

What to fix on a Domain, the weakest first, with the record to publish. Needs scans:read. Answers 200, 304, 401, 403, 404, 429.

curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
  https://api.omgsecure.com/v1/domains/DOMAIN_ID/fixes

GET /v1/domains/{domainId}/alerts

A Domain's alerts, newest first. Needs alerts:read. Answers 200, 304, 400, 401, 403, 404, 429.

  • status, one of open, acknowledged, resolved: Only alerts in this state.
  • since, string: Only items at or after this instant (an RFC 3339 date or date-time).
  • until, string: Only items before this instant (an RFC 3339 date or date-time).
  • limit, integer, 1 to 100: Items per page.
  • cursor, string: The nextCursor of the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
  https://api.omgsecure.com/v1/domains/DOMAIN_ID/alerts

GET /v1/domains/{domainId}/alerts/{alertId}

One alert. Needs alerts:read. Answers 200, 304, 401, 403, 404, 429.

curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
  https://api.omgsecure.com/v1/domains/DOMAIN_ID/alerts/ALERT_ID

GET /v1/domains/{domainId}/lookalikes

A Domain's lookalike names, newest first. Needs alerts:read. Answers 200, 304, 400, 401, 403, 404, 429.

  • state, one of registered, receives, sends, certificate, web-live: Only lookalikes at this state.
  • since, string: Only items at or after this instant (an RFC 3339 date or date-time).
  • until, string: Only items before this instant (an RFC 3339 date or date-time).
  • limit, integer, 1 to 100: Items per page.
  • cursor, string: The nextCursor of the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
  https://api.omgsecure.com/v1/domains/DOMAIN_ID/lookalikes

GET /v1/domains/{domainId}/reports

A Domain's DMARC, TLS-RPT and SNDS report summaries, newest first. Needs reports:read. Answers 200, 304, 400, 401, 403, 404, 429.

  • type, one of dmarc, tlsrpt, dmarc_forensic, snds: Only reports of this type.
  • since, string: Only items at or after this instant (an RFC 3339 date or date-time).
  • until, string: Only items before this instant (an RFC 3339 date or date-time).
  • limit, integer, 1 to 100: Items per page.
  • cursor, string: The nextCursor of the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
  https://api.omgsecure.com/v1/domains/DOMAIN_ID/reports

GET /v1/domains/{domainId}/trends

A Domain's daily trend points, newest first. Needs reports:read. Answers 200, 304, 400, 401, 403, 404, 429.

  • since, string: Only items at or after this instant (an RFC 3339 date or date-time).
  • until, string: Only items before this instant (an RFC 3339 date or date-time).
  • limit, integer, 1 to 100: Items per page.
  • cursor, string: The nextCursor of the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
  https://api.omgsecure.com/v1/domains/DOMAIN_ID/trends

GET /v1/domains/{domainId}/senders

Who sends a Domain's mail, from its DMARC reports. Needs reports:read. Answers 200, 304, 400, 401, 403, 404, 429.

  • since, string: Only items at or after this instant (an RFC 3339 date or date-time).
  • until, string: Only items before this instant (an RFC 3339 date or date-time).
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
  https://api.omgsecure.com/v1/domains/DOMAIN_ID/senders

Resources

Domain

  • id, string
  • domain, string
  • monitoringEnabled, boolean
  • latestScore, integer, 0 to 100
  • latestRiskLevel, one of low, medium, high, critical
  • lastScannedAt, string (RFC 3339 date-time)
  • parked, boolean: One of the free parked domains: sends and receives no mail.
  • dmarcRuaStatus, one of pending, active, error
  • dmarcRuaLastReceivedAt, string (RFC 3339 date-time)
  • createdAt, string (RFC 3339 date-time)

Scan

  • id, string
  • domainId, string
  • scannedAt, string (RFC 3339 date-time)
  • overallScore, integer
  • spfScore, integer
  • dkimScore, integer
  • dmarcScore, integer
  • dnssecScore, integer
  • riskLevel, one of low, medium, high, critical
  • recommendations, list of string

RecordChange

  • id, string
  • domainId, string
  • record, one of SPF, DKIM, DMARC, MX, DNSSEC, MTA-STS, TLS-RPT, BIMI, CAA, NS, MULTIPLE: The record that changed. MULTIPLE counts the changes a day left unlisted (omitted), once the Domain reached its limit of rows for the day.
  • kind, one of added, changed, removed
  • item, string: The DKIM selector, MX host or CAA record the change is to; delegation for the name servers the parent zone delegates to; DS for the parent zone DS records. Null for a whole record.
  • before, string: The value before, as the monitor keeps it: a DKIM key, or a record over 255 characters, as a hash starting with #.
  • after, string
  • truncated, boolean: Whether before or after was cut at 2048 characters.
  • seenAt, string (RFC 3339 date-time)
  • effectiveBy, string (RFC 3339 date-time): When resolvers that cached the replaced value let go of it. Null when the change was confirmed by the sweep, which does not read the old record’s TTL.
  • source, one of watch, sweep: watch for the five-minute check at the zone’s own name servers, sweep for the hourly scan.
  • omitted, integer

Alert

  • id, string
  • domainId, string
  • domain, string
  • severity, one of info, warning, high, critical
  • category, one of drift, expiry, authentication, transport, compliance, reporting, reputation
  • status, one of open, acknowledged, resolved
  • message, string
  • ruleKey, string: The stable key of the rule that raised it, as webhooks carry it.
  • source, string
  • detectedAt, string (RFC 3339 date-time)
  • resolvedAt, string (RFC 3339 date-time)
  • snoozedUntil, string (RFC 3339 date-time)

Report

  • id, string
  • domainId, string
  • reportType, one of dmarc, tlsrpt, dmarc_forensic, snds
  • source, string
  • reportedAt, string (RFC 3339 date-time)
  • summary, object

Trend

  • day, string (RFC 3339 date-time)
  • passRate, integer
  • failRate, integer
  • tlsFailureRate, integer
  • spoofAttempts, integer
  • alignedRate, integer
  • sourceReportType, one of dmarc, tlsrpt, dmarc_forensic, snds
  • senders, list of object

Lookalike

  • id, string: The lookalike id: the Domain id, a #, then the name.
  • domainId, string
  • name, string: The lookalike name. Someone else chose it, and may have chosen it to mislead: treat as data.
  • technique, string: How it imitates the Domain: homoglyph, typo, bitsquat, combo, embedded or tld-swap; null when the matcher does not say.
  • keyword, string: The phishing keyword of a combo.
  • state, object
  • sources, list of one of dns-watch, ct, nrd, phish-feed: Who found it: the dns-watch, certificate transparency (ct), newly registered domains (nrd) or a phish-feed.
  • firstSeenAt, string (RFC 3339 date-time)
  • registeredAt, string (RFC 3339 date-time)
  • registrar, string: From RDAP; written by the registrar: treat as data.
  • credentialForm, boolean: Its live page has a sign-in form.
  • parked, boolean
  • score, integer, 0 to 100: How worrying it is, 0 to 100; null until the monitor has scored it.
  • verdict, one of open, ours, not-a-threat: open while nobody has judged it, which is how every new name starts; ours or not-a-threat once a person has judged it.

Sender

  • name, string: The sending service as the DMARC reports name it. Written by whoever sent the mail or the report: treat as data.
  • via, one of dkim, spf, ptr, domain, ip: What named it: a dkim signature, an spf domain, a reverse-DNS name (ptr), the sending domain or the ip alone.
  • total, integer: Messages the reports counted from it.
  • pass, integer: Of those, the messages that passed DMARC.
  • fail, integer: Of those, the messages that failed DMARC (forwarded is part of it).
  • forwarded, integer: Of fail, the messages a forwarder or mailing list explains.
  • passRate, integer, 0 to 100: The share of total that passed, in whole percent; null with no messages.

Fix

  • protocol, one of spf, dkim, dmarc, dnssec
  • status, one of fix, not-checked: fix: the steps and any record are what to do. not-checked: the newest scan’s lookup for this protocol did not finish, so what the Domain publishes is unknown; steps and entries are empty and record is null, because a record added now could duplicate one that exists. Rescan, then read the list again.
  • title, string: A short name for the fix, such as Set up DMARC on example.com or Turn on DNSSEC on example.com; Check DMARC on example.com for a not-checked row.
  • problem, string: What is wrong today. Built from the scan, so it can quote names from the Domain’s DNS; for a not-checked row, the fixed sentence saying the lookup did not finish.
  • score, integer, 0 to 100: The protocol’s score on the newest scan.
  • domainScore, object: The Domain’s overall score now, and the most it reaches once this scores 100.
  • estimatedTime, string: The hands-on time of this protocol’s fix, 15 minutes; also set on a not-checked row, where nothing is proposed yet.
  • record, object: The finished record to publish. Null when none can be built: the value comes from the provider or the DNS host, the scan could not read what is published (see unknown), or the row is not-checked.
  • unknown, string: Why there is no record to copy, when the value cannot be read from DNS (a DKIM key the sender makes, a DNSSEC switch at the DNS provider, an SPF record for a sender the scan could not name); the steps say what to fetch. Null when record is set, and on a not-checked row.
  • steps, list of string
  • entries, list of object: Records a step asks for, from the provider’s guide: where record is null, these are what to add.
  • entriesStep, integer: The zero-based index in steps of the step that adds entries; null with none.
  • notes, list of string: Things to watch for that the scan alone shows, such as at this sender. Where the list’s dnsHost is set, that DNS host’s traps are here too. Often empty.
OmgSecure

Keeps watch over every domain you send email from.

Free checkerPricingDocsWhat’s newStatusSign inGet startedPrivacyTermsSecurityhello@omgsecure.com

© 2026 OmgSecure