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=3600r 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.
| Status | Problem | Means |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key |
| 403 | insufficient-scope | The API key lacks the scope this route needs |
| 403 | insufficient-role | The role in this Organization does not allow this |
| 403 | addon-inactive | The API and MCP add-on is not on for this Organization |
| 403 | subscription-inactive | The Organization's subscription is not active |
| 404 | not-found | Not found |
| 400 | invalid-request | The request is invalid |
| 400 | invalid-cursor | The cursor is not valid for this list |
| 405 | method-not-allowed | Method not allowed |
| 429 | quota-exceeded | Request quota exceeded |
| 500 | internal | Something 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.jsonGET /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: ThenextCursorof the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
https://api.omgsecure.com/v1/domainsGET /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_IDGET /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: ThenextCursorof the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
https://api.omgsecure.com/v1/domains/DOMAIN_ID/scansGET /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: ThenextCursorof the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
https://api.omgsecure.com/v1/domains/DOMAIN_ID/record-changesGET /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/fixesGET /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: ThenextCursorof the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
https://api.omgsecure.com/v1/domains/DOMAIN_ID/alertsGET /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_IDGET /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: ThenextCursorof the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
https://api.omgsecure.com/v1/domains/DOMAIN_ID/lookalikesGET /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: ThenextCursorof the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
https://api.omgsecure.com/v1/domains/DOMAIN_ID/reportsGET /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: ThenextCursorof the previous page of this same list.
curl -H "Authorization: Bearer $OMGSECURE_API_KEY" \
https://api.omgsecure.com/v1/domains/DOMAIN_ID/trendsGET /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/sendersResources
Domain
id, stringdomain, stringmonitoringEnabled, booleanlatestScore, integer, 0 to 100latestRiskLevel, one of low, medium, high, criticallastScannedAt, string (RFC 3339 date-time)parked, boolean: One of the free parked domains: sends and receives no mail.dmarcRuaStatus, one of pending, active, errordmarcRuaLastReceivedAt, string (RFC 3339 date-time)createdAt, string (RFC 3339 date-time)
Scan
id, stringdomainId, stringscannedAt, string (RFC 3339 date-time)overallScore, integerspfScore, integerdkimScore, integerdmarcScore, integerdnssecScore, integerriskLevel, one of low, medium, high, criticalrecommendations, list of string
RecordChange
id, stringdomainId, stringrecord, one of SPF, DKIM, DMARC, MX, DNSSEC, MTA-STS, TLS-RPT, BIMI, CAA, NS, MULTIPLE: The record that changed.MULTIPLEcounts the changes a day left unlisted (omitted), once the Domain reached its limit of rows for the day.kind, one of added, changed, removeditem, string: The DKIM selector, MX host or CAA record the change is to;delegationfor the name servers the parent zone delegates to;DSfor 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, stringtruncated, boolean: Whetherbeforeorafterwas 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:watchfor the five-minute check at the zone’s own name servers,sweepfor the hourly scan.omitted, integer
Alert
id, stringdomainId, stringdomain, stringseverity, one of info, warning, high, criticalcategory, one of drift, expiry, authentication, transport, compliance, reporting, reputationstatus, one of open, acknowledged, resolvedmessage, stringruleKey, string: The stable key of the rule that raised it, as webhooks carry it.source, stringdetectedAt, string (RFC 3339 date-time)resolvedAt, string (RFC 3339 date-time)snoozedUntil, string (RFC 3339 date-time)
Report
id, stringdomainId, stringreportType, one of dmarc, tlsrpt, dmarc_forensic, sndssource, stringreportedAt, string (RFC 3339 date-time)summary, object
Trend
day, string (RFC 3339 date-time)passRate, integerfailRate, integertlsFailureRate, integerspoofAttempts, integeralignedRate, integersourceReportType, one of dmarc, tlsrpt, dmarc_forensic, sndssenders, list of object
Lookalike
id, string: The lookalike id: the Domain id, a#, then the name.domainId, stringname, 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,embeddedortld-swap; null when the matcher does not say.keyword, string: The phishing keyword of acombo.state, objectsources, list of one of dns-watch, ct, nrd, phish-feed: Who found it: thedns-watch, certificate transparency (ct), newly registered domains (nrd) or aphish-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, booleanscore, 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:openwhile nobody has judged it, which is how every new name starts;oursornot-a-threatonce 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: adkimsignature, anspfdomain, a reverse-DNS name (ptr), the sendingdomainor theipalone.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 (forwardedis part of it).forwarded, integer: Offail, the messages a forwarder or mailing list explains.passRate, integer, 0 to 100: The share oftotalthat passed, in whole percent; null with no messages.
Fix
protocol, one of spf, dkim, dmarc, dnssecstatus, 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;stepsandentriesare empty andrecordis 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 asSet up DMARC on example.comorTurn on DNSSEC on example.com;Check DMARC on example.comfor anot-checkedrow.problem, string: What is wrong today. Built from the scan, so it can quote names from the Domain’s DNS; for anot-checkedrow, 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 anot-checkedrow, 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 (seeunknown), or the row isnot-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 whenrecordis set, and on anot-checkedrow.steps, list of stringentries, list of object: Records a step asks for, from the provider’s guide: whererecordis null, these are what to add.entriesStep, integer: The zero-based index instepsof the step that addsentries; null with none.notes, list of string: Things to watch for that the scan alone shows, such as at this sender. Where the list’sdnsHostis set, that DNS host’s traps are here too. Often empty.