IP Allowlist

Manage your workspace's IP allowlist and export its decision log through the API.

🚧

Enterprise beta

This is a Beta feature available only to enrolled Enterprise workspaces, and only to workspace admins. Contact Dovetail support to request access.

The IP allowlist restricts which networks can reach a Dovetail workspace. When it is enforced, a request from an IP address outside the allowed ranges is refused, whether it comes from the web app, the API, or the MCP server.

Every request Dovetail evaluates is written to a decision log, which you can export as CSV. Use it to review traffic before you enforce, and to keep an audit trail afterward.

This guide covers the API. For setup in the web app, see IP allowlist in the help center.

Concepts

Modes

The mode applies to the whole workspace. API keys with their own list follow the workspace mode.

ModeLabel in SettingsBehavior
disabledDisabledNothing is evaluated or recorded. Every IP address is allowed. This is the default.
report_onlyReport onlyEvery request is evaluated and recorded. Nothing is blocked. A request that would have been blocked is recorded as allowed, with reason denied_ip_not_in_list.
enforcingEnforcingRequests from outside the allowed ranges are refused, and every decision is recorded.

The web app requires a workspace to pass through Report only before Enforcing. The API accepts any mode change.

Lists

A list is a set of CIDR ranges, each with an optional label.

  • User list (All users). Every workspace has one. It governs signed-in users, API and MCP access through OAuth, and every personal API key without a list of its own.
  • API key lists. A personal API key can have its own list, for example a CI key that should only work from your build runners. Requests made with that key are checked against its own list instead of the user list.

A new user list contains 0.0.0.0/0 and ::/0, labeled Allow all (default). Enforcing blocks nobody until you replace them.

Changes to the mode or a list take effect in up to one minute.

Coverage

Covered: signed-in browser sessions (including real-time connections), the web app's API, and the public API (v1 and v2), including MCP traffic.

Not covered, and not recorded in the decision log:

  • Dovetail support sessions. When Dovetail support opens your workspace to help you, that access is exempt from your allowlist.
  • Third-party OAuth integrations such as Zapier, SCIM provisioning tokens, and inbound webhooks.
  • Public web links.
  • File attachments, media, and export downloads. These are served from time-limited signed URLs, which are only issued to requests that passed the allowlist check. Anyone holding such a URL can use it until it expires.

Authentication and scopes

Every route requires a workspace admin on an enrolled workspace. Authenticate with a personal API key (an API token), created by a workspace admin, in the Authorization header. See Authorization for creating a key.

Authorization: Bearer <DOVETAIL_API_TOKEN>

When you create the key, choose the permissions each task needs:

TaskPermissionScope
Read the mode, lists, keys, and your IPIP allowlist — Readip_allowlist:read
Change the mode, replace entries, give a key its own listIP allowlist — Writeip_allowlist:write
Return a key to the user listIP allowlist — Deleteip_allowlist:delete
Request and poll decision-log exportsAudit logs — Readaudit_logs:read

Each route checks one scope. A key that only exports the decision log needs audit_logs:read and nothing else. Keys with Full access, including keys created before access levels existed, pass every scope check, so prefer a key scoped to what it needs. See Scopes for how scopes are checked.

Base URL

https://dovetail.com/api/v2/ip-allowlist

The base URL is the same for every region. The token identifies the workspace, so you don't need the workspace's subdomain.

IDs are 22-character Base62 strings, and path parameters also accept the hyphenated UUID form. Timestamps are ISO 8601 in UTC.

Managing the allowlist

Endpoints

MethodPathScopeDescription
GET/v2/ip-allowlist/my-ipip_allowlist:readYour IP address as the allowlist sees it
GET/v2/ip-allowlistip_allowlist:readThe mode and the user list
GET/v2/ip-allowlist/lists/:list_idip_allowlist:readOne list, with its metadata
PUT/v2/ip-allowlist/lists/:list_id/entriesip_allowlist:writeReplace a list's entries
PUT/v2/ip-allowlist/modeip_allowlist:writeSet the mode
GET/v2/ip-allowlist/keysip_allowlist:readEvery API key and the list governing it
PUT/v2/ip-allowlist/keys/:key_id/listip_allowlist:writeGive a key its own list
DELETE/v2/ip-allowlist/keys/:key_id/listip_allowlist:deleteReturn a key to the user list

Calls that change nothing succeed and say so in outcome:

Routeoutcome values
Replace entriesupdated, unchanged
Set modeupdated, unchanged
Give a key its own listcreated, already_has_dedicated_list (the existing list is returned untouched)
Return a key to the user listreverted, already_on_user_list

Finding your IP address

Your address as Dovetail sees it can differ from what your machine reports, for example behind a proxy or VPN. Called from a server or CI runner, this returns that machine's egress address.

GET https://dovetail.com/api/v2/ip-allowlist/my-ip
Authorization: Bearer <DOVETAIL_API_TOKEN>
{ "ip": "203.0.113.7", "ip_family": "v4" }

If the address can't be determined, the response is still 200, with ip set to null and a reason of no_source or unparseable. This route is limited to 30 requests per minute per user.

Replacing a list's entries

Get the user list's ID from the allowlist:

GET https://dovetail.com/api/v2/ip-allowlist
Authorization: Bearer <DOVETAIL_API_TOKEN>
{
  "mode": "disabled",
  "user_list": {
    "id": "5Kd3NBUAdUnhyzenEwVLu9",
    "team_id": "1pQ7vYz0rS2tU3vW4xY5zA",
    "entries": [
      { "cidr": "0.0.0.0/0", "label": "Allow all (default)" },
      { "cidr": "::/0", "label": "Allow all (default)" }
    ]
  }
}

Then replace the whole entry set in one call. Send the complete list every time.

PUT https://dovetail.com/api/v2/ip-allowlist/lists/<LIST_ID>/entries
Authorization: Bearer <DOVETAIL_API_TOKEN>
Content-Type: application/json

{
  "entries": [
    { "cidr": "203.0.113.0/24", "label": "Sydney office" },
    { "cidr": "198.51.100.10/32", "label": "VPN" },
    { "cidr": "2001:db8:1234::/48", "label": "Sydney office IPv6" }
  ]
}

The response contains the saved list, the outcome, and caller_coverage:

caller_coverageMeaning
coveredYour current IP address is inside the new list.
not_coveredYour address is outside the list. You sent force_exclude_caller_ip.
unverifiedDovetail couldn't determine your address, so it couldn't check.

For an API key's list, caller_coverage is always covered, because lockout protection only checks the user list.

Notes:

  • CIDRs are stored in canonical form. For example, 10.0.0.1/8 is stored as 10.0.0.0/8. Blank labels are dropped.
  • Include IPv6 ranges if your networks use IPv6. Without one, requests from IPv6-only networks are blocked once you enforce.
  • Saving an empty list blocks everyone that list governs, so the request must include "force_empty": true.

Lockout protection

If a new user list doesn't cover the address you're calling from, the save is rejected with 400 and nothing changes:

{
  "errors": [
    {
      "code": "InvalidOperation",
      "title": "…",
      "reason": "caller_not_covered",
      "caller_ip": "203.0.113.7"
    }
  ]
}

To save a list that excludes you on purpose, send "force_exclude_caller_ip": true. Only do this if another admin on an allowed network can still get in. An empty user list needs both force_empty and force_exclude_caller_ip, unless Dovetail can't determine your address.

Lockout protection doesn't apply to API key lists, because your own session is governed by the user list. Editing a key's list can still cut off that key.

Setting the mode

PUT https://dovetail.com/api/v2/ip-allowlist/mode
Authorization: Bearer <DOVETAIL_API_TOKEN>
Content-Type: application/json

{
  "mode": "report_only"
}

The response contains the outcome, the mode, and the user_list.

🚧

Changing the mode has no lockout check

Before you set enforcing, call GET /v2/ip-allowlist/my-ip and confirm your address is in the user list. If it isn't, your next request is refused.

Giving an API key its own list

List every API key in the workspace and the list governing each. Secrets are never returned.

GET https://dovetail.com/api/v2/ip-allowlist/keys
Authorization: Bearer <DOVETAIL_API_TOKEN>

Each key has id, name, owner_user_id, created_at, valid_until (null means the key never expires), and ip_allowlist, which holds the governing list's id and kind.

Give a key its own list. name is optional, up to 200 characters, and a blank name counts as no name.

PUT https://dovetail.com/api/v2/ip-allowlist/keys/<KEY_ID>/list
Authorization: Bearer <DOVETAIL_API_TOKEN>
Content-Type: application/json

{
  "name": "CI runners"
}

The new list starts as a copy of the user list's entries. After that the two lists are independent. Replace its entries with PUT /v2/ip-allowlist/lists/:list_id/entries, using the list.id from the response.

To return the key to the user list, call DELETE /v2/ip-allowlist/keys/:key_id/list. This deletes the key's own list.

A key's list only applies to requests authenticated with that key. OAuth-based API and MCP access always uses the user list.

List object

FieldDescription
idThe list ID.
team_idThe workspace ID.
kindUSER for the user list, API_KEY for a key's own list.
nameThe list's name, or null when unnamed. The user list is always unnamed.
entriesArray of { "cidr", "label" }. label is omitted when blank.
created_by, updated_byUser IDs, or null when the system made the change.
created_at, updated_atTimestamps.

Request bodies

  • PUT /lists/:list_id/entries: { "entries": [{ "cidr": string, "label"?: string }], "force_empty"?: boolean, "force_exclude_caller_ip"?: boolean }
  • PUT /mode: { "mode": "disabled" | "report_only" | "enforcing" }
  • PUT /keys/:key_id/list: { "name"?: string }

Export the decision log

An export is asynchronous. You request it, poll until it's READY, then download the CSV from a short-lived link. Both routes need the audit_logs:read scope.

MethodPathDescription
POST/v2/ip-allowlist/exportsRequest an export
GET/v2/ip-allowlist/exports/:export_idPoll an export

Requesting an export

FieldRequiredDescription
sinceYesRange start, inclusive. ISO 8601 with a UTC offset, such as 2026-11-01T00:00:00Z or 2026-11-01T11:00:00+11:00.
untilNoRange end, exclusive, in the same format. Defaults to now.
kindNoallow, deny, or config. Exports only that kind. Omit it to export everything.
POST https://dovetail.com/api/v2/ip-allowlist/exports
Authorization: Bearer <DOVETAIL_API_TOKEN>
Content-Type: application/json

{
  "since": "2026-11-01T00:00:00Z",
  "until": "2026-11-08T00:00:00Z"
}

The response is 202:

{
  "export_id": "7tB2nQ9xK4mP1sV8cR3wZe",
  "since": "2026-11-01T00:00:00.000Z",
  "until": "2026-11-08T00:00:00.000Z"
}

since, until, and kind (only when you sent one) are the range the export actually covers. They come back unchanged on every poll.

The range rules are checked in this order:

  1. since must be before until. Otherwise the response is 400 with the title since must be before until.
  2. The range can be at most 31 days. Otherwise the response is 400 with the title range exceeds 31 days.
  3. Records take about 25 minutes to reach the log, so Dovetail only exports up to a completeness watermark, complete_up_to, about 25 minutes before now.
    • If since is at or after the watermark, the response is 422, with complete_up_to in the error. Retry with an earlier since.
    • If until, or now when until is omitted, is after the watermark, the export is cut off at the watermark. The response's until is the cut-off point.
  4. One export runs at a time per workspace. If one is still running, the response is 409 with that export's export_id. It may have been requested by another admin for a different range. Poll it, or wait for it to finish and request again.
{
  "errors": [
    {
      "code": "InvalidOperation",
      "title": "An export is already in flight for this workspace",
      "export_id": "7tB2nQ9xK4mP1sV8cR3wZe"
    }
  ]
}
{
  "errors": [
    {
      "code": "UnprocessableContent",
      "title": "The requested range starts beyond the completeness watermark",
      "message": "Retry with a since earlier than complete_up_to",
      "complete_up_to": "2026-11-11T02:23:00.000Z"
    }
  ]
}

Polling an export

GET https://dovetail.com/api/v2/ip-allowlist/exports/<EXPORT_ID>
Authorization: Bearer <DOVETAIL_API_TOKEN>
{
  "status": "READY",
  "since": "2026-11-01T00:00:00.000Z",
  "until": "2026-11-08T00:00:00.000Z",
  "download_url": "https://…",
  "complete_up_to": "2026-11-11T02:23:00.000Z"
}

Every response includes since, until, kind when the export was filtered, and complete_up_to. The other fields depend on status:

statusOther fieldsMeaning
REQUESTEDNoneStill running. Poll again.
READYdownload_urlDone. Download the CSV from download_url.
FAILEDfailure_reasonFailed. Request a new export.
failure_reasonMeaning
submission_failedThe export couldn't be started. Retry.
submission_lostThe export didn't start within 5 minutes. Retry.
timed_outThe export took longer than 15 minutes. Narrow the range and retry.
execution_failedThe export failed, including when it was canceled for scanning too much data. Narrow the range and retry.

Notes:

  • Progress is checked when you poll, so keep polling until the export settles.
  • download_url is valid for up to 15 minutes, and a new one is issued on every poll. Download it with a plain GET and don't send your Authorization header. Anyone holding the URL can download the file, so treat it as a secret.
  • The result is kept for 7 days after the export was requested. After that, polling returns 410 Gone.
  • complete_up_to is the watermark at the time you poll, so it moves forward on every poll. It shows how fresh the log is, not what this export covers. Use until for that.
  • Export IDs are workspace-scoped. Another workspace's export ID returns 404.

Covering longer periods

The decision log is retained for one year, and each export covers at most 31 days. For a longer period, or for continuous collection into a SIEM, chain exports: use each export's until as the next export's since. Because since is inclusive and until is exclusive, consecutive exports neither overlap nor leave gaps.

Don't chain from complete_up_to. It has usually moved past your export's until, so starting there skips records. If you re-export overlapping windows, de-duplicate on event_id.

Reviewing a Report only period

  • reason is denied_ip_not_in_list. In Report only these rows have kind set to allow. They are the requests enforcing would refuse. Check src_ip, user_id, subject_kind and subject_id (which API key), and route_class, then add the legitimate ones to the right list.
  • reason is denied_ip_unavailable. Dovetail couldn't determine the client IP. These would be blocked under enforcing. If you see many, contact Dovetail support.
  • reason is fail_closed_error. Dovetail couldn't read your allowlist settings. These are always denied, even in Report only. Include the event_id if you report them.
  • kind is config. Each row is an allowlist change made during the period.

Filter on reason, not on kind=deny. Nothing is denied in Report only, so a kind=deny export won't show would-be blocks.

CSV reference

The file has one header row, then one row per record. Rows come in no particular order, so sort by ts if you need them in order. Duplicate deliveries are removed within an export, and event_id is unique per record, so use it as the key when merging files.

IDs in the CSV (team_id, subject_id, user_id, list_id, and the UUID inside configured_by) are hyphenated UUIDs, not the Base62 form the API uses.

Columns

Columns that don't apply to a row are empty.

#ColumnPresent onDescription
1vAllRecord schema version. Currently 1.
2event_idAllUnique record ID. For a blocked request, it equals the decisionId returned to the client.
3tsAllWhen the decision or change happened, in ISO 8601 UTC with milliseconds.
4kindAllallow (the request went through), deny (the request was refused), or config (an allowlist change).
5team_idAllYour workspace ID.
6subject_kindDecisionsteam (checked against the user list) or api_key (the request used a personal API key).
7subject_idDecisionsThe workspace ID for team, the API key ID for api_key.
8request_idDecisionsRequest correlation ID.
9methodDecisionsHTTP method.
10route_classDecisionsgraphql or rest (the web app), ws (real-time connections), or public_api (the public API and MCP).
11route_templateDecisions, optionalRoute pattern or GraphQL operation name. Never a full URL with IDs.
12user_agentDecisions, optionalClient user agent. May be truncated.
13user_idDecisionsThe accountable user: the signed-in user, or the owner of the API key.
14reasonDecisionsWhy the decision was made. See Decision reasons.
15modeDecisions (except fail_closed_error), configThe workspace mode at the time: report_only or enforcing on decisions, and the mode after the change on config rows, which can be disabled.
16matched_cidrallowed_matched_cidr onlyThe list entry that matched.
17src_ipDecisions, when knownThe client IP that was evaluated.
18errorfail_closed_error onlyError class. Currently always unexpected_infra.
19entriesConfigThe affected list's complete entries after the change. See The entries column.
20configured_byConfigWho made the change: user:<uuid> for an admin, system for automatic setup, or support for Dovetail support.
21changeConfigentries_updated, mode_changed, key_list_assigned, or key_list_reverted.
22list_idConfig, except mode_changedThe list the change applied to. For key_list_reverted, this is the user list now governing the key.

Decision reasons

reasonkindMeaning
allowed_matched_cidrallowThe client IP matched the entry in matched_cidr.
allowed_not_configuredallowNo list exists yet for this subject, so the request was allowed. Rare.
denied_ip_not_in_listallow in report_only, deny in enforcingThe client IP matched no entry. In Report only, this row means the request would have been blocked.
denied_ip_unavailableallow in report_only, deny in enforcingDovetail couldn't determine the client IP. src_ip is empty.
fail_closed_errorAlways denyDovetail couldn't read your allowlist settings, so the request was refused. mode is empty and error is set.

On config rows, reason is empty. For mode_changed, entries holds the user list's entries at the moment of the change.

The entries column

entries uses bracket notation, not JSON. Values aren't quoted or escaped, and an entry without a label shows label=null:

[{cidr=203.0.113.0/24, label=Sydney office}, {cidr=2001:db8::/32, label=null}]

Errors

Every error body has the shape { "errors": [ { "code", "title", "message"?, … } ] }.

StatuscodeWhen
400InvalidOperation, reason: invalid_cidrOne or more CIDRs don't parse. offenders lists them as you sent them.
400InvalidOperation, reason: caller_not_coveredThe new user list wouldn't cover you. caller_ip shows your address.
400InvalidOperation, reason: empty_requires_forceAn empty list was sent without force_empty: true.
400InvalidOperation, reason: entries_too_largeThe list is too large. Includes actual_bytes and limit_bytes.
400InvalidOperation, reason: name_too_longA key list's name is over the limit. Includes actual_chars and limit_chars.
400InvalidOperationAn export range is invalid. See Requesting an export.
400ValidationErrorMalformed body or ID. Includes message and path.
401UnauthorizedThe token is missing, invalid, revoked, or expired.
403Forbidden, title Insufficient scopeThe token lacks the route's scope.
403Forbidden, title Workspace admin access requiredThe token's owner isn't a workspace admin, or the workspace isn't enrolled in the beta. Both return the same response.
403IpNotAllowlistedThe request came from outside the allowlist while it is enforcing. Includes decisionId.
404NotFoundThe list, key, or export doesn't exist in this workspace.
409InvalidOperationAn export is already running. Includes export_id.
410GoneThe export result is more than 7 days old.
422UnprocessableContentThe export's since is at or after the watermark. Includes complete_up_to.
429TooManyRequestsRate limited. See the Retry-After header and Rate Limits.
500InternalErrorUnexpected error. Retry later.

Blocked requests

Once the allowlist is enforcing, a blocked request gets 403:

{
  "errors": [
    {
      "code": "IpNotAllowlisted",
      "title": "Access from your current network is restricted by this workspace's IP allowlist. Contact your workspace administrator.",
      "decisionId": "<EVENT_ID>"
    }
  ]
}

decisionId is the event_id of the matching decision-log row. Quote it when you contact support.

The allowlist and export routes are protected by the allowlist too, so you can only manage the allowlist or export the log from an allowed network.

Other 403 responses

The public API can also return 403 with the title Not available on your current plan, when public API access isn't enabled for the workspace, or Access blocked by your administrator, when the workspace's external tool access setting blocks API or MCP access.

Troubleshooting

The export is empty or missing recent activity

  • No decisions are recorded in disabled mode.
  • The last 25 minutes or so are never included. The export's until shows exactly where it ends.
  • Records older than one year have been deleted.
  • kind=deny excludes Report only would-be blocks, because those have kind=allow. Filter on reason instead.

An export failed

Narrow the range, for example by splitting 31 days into weeks, or add a kind filter, then request again.

The download link returns an error

The link is valid for up to 15 minutes. Poll the export again to get a new download_url, and download it without an Authorization header.

A CI job stopped working after enforcing

  • Check whether the job uses an API key with its own list. That list doesn't follow the user list.
  • Find the request in the decision log by subject_id (the key ID) and src_ip, then add the runner's egress range to the key's list.

Locked out

If a workspace admin can still reach Dovetail from an allowed network, they can fix the list or set the mode back to disabled from that network. Otherwise, contact Dovetail support. To avoid this, confirm your own address is covered before you enforce, and keep at least two admins on different allowed networks.

Limits

LimitValue
ListsOne user list per workspace, plus at most one list per API key
ModeOne per workspace
List sizeUnder 20,000 bytes when stored, roughly several hundred entries depending on label length
API key list name200 characters
Change propagationUp to one minute
Decision-log retentionOne year
Export range31 days per export
Export freshnessRecords up to about 25 minutes before now (complete_up_to)
Concurrent exportsOne per workspace
Export processing timeFails as timed_out after 15 minutes
Download URLValid for up to 15 minutes. A new one is issued on every poll.
Export resultKept for 7 days after the request, then 410 Gone
GET /v2/ip-allowlist/my-ip30 requests per minute per user
Public API200 requests per minute per workspace, shared with other public API calls

Did this page help you?