{
    "openapi": "3.0.3",
    "info": {
        "title": "16Labs API Workbench REST API",
        "version": "1.0",
        "description": "Read your workspace's collections, environments, inbound endpoints and history, start collection runs from CI,\nand execute saved requests.\n\n**Authentication.** Create a token under Test Tokens with an `api:*` scope and send it as\n`Authorization: Bearer awk_…`. A token belongs to one workspace; every call is scoped to it, and ids from other\nworkspaces answer 404.\n\n**Scopes.** `api:read` for every GET; `api:run` to start runs and execute requests (and to poll runs).\n16Labs AEP Lab (`/adobe/*`): `adobe:read` for every GET; `adobe:run` to verify connections and start suite and\nloop-test runs (and to poll them). 16Labs Test Inboxes (`/inboxes`, `/messages`): `inbox:read` to list inboxes\nand read or wait for messages; `inbox:write` to create and delete inboxes; `inbox:send` to send from an inbox\n(replies to authenticated senders of mail it received, and mail to the organization's verified domains).\n\n**Waiting for an email in a test.** Create an inbox (`POST /inboxes`), use its `address` in the flow under test,\nthen call `GET /inboxes/{id}/messages/wait?subject_contains=Confirm&timeout=30`. It answers with the first matching\nmessage as soon as it arrives (its `links` hold every URL in the email), or `204` after the timeout. Pass\n`after=<id of the last message you handled>` to wait for the next one.\n\n**16Labs AEP Lab completion webhook.** When a workspace has a 16Labs AEP Lab webhook, every finished suite run and loop-test\nrun is POSTed to it as JSON: `{\"event\": \"adobe.suite_run.finished\" or \"adobe.loop_run.finished\", \"workspace\": {...},\n\"run\": {...}}`, where `run` has the same shape as `GET /adobe/suite-runs/{id}` or `GET /adobe/loop-test-runs/{id}`.\nThe request is signed with the workspace's HMAC credential from the vault. With the credential's defaults that is\n`X-Timestamp: <unix seconds>` and `X-Signature: hex(HMAC-SHA256(secret, \"<X-Timestamp>.<raw body>\"))`; the header\nnames, algorithm, encoding and string to sign follow the credential's settings. Recompute the HMAC over the raw\nbody with your copy of the secret, compare in constant time, and reject timestamps older than a few minutes.\n\n**Pagination.** List endpoints return `{\"data\": [...], \"next_cursor\": \"…\", \"limit\": 25}`, newest first.\nPass `cursor=<next_cursor>` for the next page; `limit` is 1–100.\n\n**Errors** use RFC 7807 `application/problem+json`. Requests are limited to 120 per minute per token\n(`X-RateLimit-*` headers; `429` with `Retry-After` when exceeded).\n"
    },
    "servers": [
        {
            "url": "/api/v1"
        }
    ],
    "security": [
        {
            "bearerAuth": []
        }
    ],
    "tags": [
        {
            "name": "Workspace"
        },
        {
            "name": "Collections"
        },
        {
            "name": "Environments"
        },
        {
            "name": "Inbound"
        },
        {
            "name": "History"
        },
        {
            "name": "Runs"
        },
        {
            "name": "16Labs AEP Lab"
        },
        {
            "name": "Test Inboxes"
        }
    ],
    "paths": {
        "/workspaces": {
            "get": {
                "tags": [
                    "Workspace"
                ],
                "summary": "The token's workspace",
                "operationId": "listWorkspaces",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/WorkspacePage"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/collections": {
            "get": {
                "tags": [
                    "Collections"
                ],
                "summary": "List collections",
                "operationId": "listCollections",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/cursor"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CollectionPage"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/collections/{id}": {
            "get": {
                "tags": [
                    "Collections"
                ],
                "summary": "Get a collection",
                "operationId": "getCollection",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Collection"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/collections/{id}/runs": {
            "post": {
                "tags": [
                    "Runs"
                ],
                "summary": "Start a collection run",
                "description": "Runs of up to 25 requests finish before the response (201). Larger runs are queued (202); poll the Location URL.",
                "operationId": "createRun",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RunRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Finished",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Run"
                                }
                            }
                        }
                    },
                    "202": {
                        "description": "Queued",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Run"
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "description": "The workspace is archived",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/Invalid"
                    }
                }
            }
        },
        "/runs/{id}": {
            "get": {
                "tags": [
                    "Runs"
                ],
                "summary": "Run status and results",
                "operationId": "getRun",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Run"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/requests": {
            "get": {
                "tags": [
                    "Collections"
                ],
                "summary": "List saved requests",
                "operationId": "listRequests",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/cursor"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "name": "collection",
                        "in": "query",
                        "description": "Only requests in this collection",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RequestPage"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/requests/{id}": {
            "get": {
                "tags": [
                    "Collections"
                ],
                "summary": "Get a saved request (with headers, body, tests)",
                "operationId": "getRequest",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SavedRequest"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/requests/{id}/execute": {
            "post": {
                "tags": [
                    "Runs"
                ],
                "summary": "Execute a saved request",
                "operationId": "executeRequest",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "environment_id": {
                                        "type": "string",
                                        "description": "Environment to resolve variables from"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The response",
                        "assertion": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ExecutionResult"
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "description": "The workspace is archived",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/Invalid"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooMany"
                    }
                }
            }
        },
        "/environments": {
            "get": {
                "tags": [
                    "Environments"
                ],
                "summary": "List environments (secret values are never returned)",
                "operationId": "listEnvironments",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/cursor"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/EnvironmentPage"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/environments/{id}": {
            "get": {
                "tags": [
                    "Environments"
                ],
                "summary": "Get an environment",
                "operationId": "getEnvironment",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Environment"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/endpoints": {
            "get": {
                "tags": [
                    "Inbound"
                ],
                "summary": "List inbound endpoints",
                "operationId": "listEndpoints",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/cursor"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/EndpointPage"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/endpoints/{id}": {
            "get": {
                "tags": [
                    "Inbound"
                ],
                "summary": "Get an inbound endpoint",
                "operationId": "getEndpoint",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Endpoint"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/inbound-requests": {
            "get": {
                "tags": [
                    "Inbound"
                ],
                "summary": "List captured requests",
                "operationId": "listInboundRequests",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/cursor"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    },
                    {
                        "name": "endpoint",
                        "in": "query",
                        "description": "Only captures of this endpoint",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InboundRequestPage"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/inbound-requests/{id}": {
            "get": {
                "tags": [
                    "Inbound"
                ],
                "summary": "Get a captured request (headers and body)",
                "operationId": "getInboundRequest",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InboundRequest"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/executions": {
            "get": {
                "tags": [
                    "History"
                ],
                "summary": "List outbound executions (history)",
                "operationId": "listExecutions",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/cursor"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ExecutionPage"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/executions/{id}": {
            "get": {
                "tags": [
                    "History"
                ],
                "summary": "Get an execution (masked headers, body, test results)",
                "operationId": "getExecution",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Execution"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/adobe/connections": {
            "get": {
                "tags": [
                    "16Labs AEP Lab"
                ],
                "summary": "List Adobe connections (no secrets)",
                "operationId": "listAdobeConnections",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/cursor"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AdobeConnectionPage"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/adobe/connections/{id}": {
            "get": {
                "tags": [
                    "16Labs AEP Lab"
                ],
                "summary": "Get an Adobe connection with its verification state",
                "operationId": "getAdobeConnection",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AdobeConnection"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/adobe/connections/{id}/verify": {
            "post": {
                "tags": [
                    "16Labs AEP Lab"
                ],
                "summary": "Verify the connection's sandbox now (development and not default only)",
                "operationId": "verifyAdobeConnection",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The connection with its new verification state",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AdobeConnection"
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/adobe/suites": {
            "get": {
                "tags": [
                    "16Labs AEP Lab"
                ],
                "summary": "List AEP Lab suites",
                "operationId": "listAdobeSuites",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/cursor"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AdobeSuitePage"
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/adobe/suites/{id}": {
            "get": {
                "tags": [
                    "16Labs AEP Lab"
                ],
                "summary": "Get an AEP Lab suite",
                "operationId": "getAdobeSuite",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AdobeSuite"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/adobe/suites/{id}/runs": {
            "post": {
                "tags": [
                    "16Labs AEP Lab"
                ],
                "summary": "Start a suite run",
                "description": "Suite runs are always queued. Poll the Location URL until `finished` is true.",
                "operationId": "createAdobeSuiteRun",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "202": {
                        "description": "Queued",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AdobeSuiteRun"
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "description": "Refused: monthly limit, a run already in progress, nothing runnable, or an archived workspace",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/adobe/suite-runs/{id}": {
            "get": {
                "tags": [
                    "16Labs AEP Lab"
                ],
                "summary": "Get a suite run with its steps",
                "operationId": "getAdobeSuiteRun",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AdobeSuiteRun"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/adobe/loop-tests": {
            "get": {
                "tags": [
                    "16Labs AEP Lab"
                ],
                "summary": "List loop tests",
                "operationId": "listAdobeLoopTests",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/cursor"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AdobeLoopTestPage"
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/adobe/loop-tests/{id}/runs": {
            "post": {
                "tags": [
                    "16Labs AEP Lab"
                ],
                "summary": "Start a loop-test run",
                "description": "Sends the AJO event and returns the run, WAITING for the journey's custom action or, for an email loop test, for the email to the profile's test inbox (or already finished when the event was blocked or rejected). Poll the Location URL.",
                "operationId": "createAdobeLoopRun",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "202": {
                        "description": "Started",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AdobeLoopRun"
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "description": "Refused: monthly limit, missing configuration, or an archived workspace",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/adobe/loop-test-runs/{id}": {
            "get": {
                "tags": [
                    "16Labs AEP Lab"
                ],
                "summary": "Get a loop-test run",
                "operationId": "getAdobeLoopRun",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AdobeLoopRun"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/inboxes": {
            "get": {
                "tags": [
                    "Test Inboxes"
                ],
                "summary": "List test inboxes",
                "operationId": "listInboxes",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/cursor"
                    },
                    {
                        "$ref": "#/components/parameters/limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InboxPage"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            },
            "post": {
                "tags": [
                    "Test Inboxes"
                ],
                "summary": "Create a test inbox with a new random address",
                "operationId": "createInbox",
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "label": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "expires_in_days": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 365,
                                        "description": "Stop receiving mail after this many days"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Inbox"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "409": {
                        "description": "Refused: the plan's inbox limit, or an archived workspace",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/Invalid"
                    }
                }
            }
        },
        "/inboxes/{id}": {
            "get": {
                "tags": [
                    "Test Inboxes"
                ],
                "summary": "Get a test inbox",
                "operationId": "getInbox",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Inbox"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "delete": {
                "tags": [
                    "Test Inboxes"
                ],
                "summary": "Delete a test inbox and its messages (the address is never reused)",
                "operationId": "deleteInbox",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Deleted"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/inboxes/{id}/send": {
            "post": {
                "tags": [
                    "Test Inboxes"
                ],
                "summary": "Send from a test inbox (reply, or mail to a verified domain)",
                "description": "From is the inbox's address (a reply uses the exact address the original arrived at, with its +tag). Each recipient must be at one of the organization's verified sending domains, or, for a reply, an address whose domain the receiving server authenticated for the original (SPF or DKIM pass). At most 5 recipients; the organization's daily limit depends on the plan. The sent message is stored in the inbox with direction \"out\".",
                "operationId": "sendFromInbox",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "to",
                                    "text"
                                ],
                                "properties": {
                                    "to": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "format": "email"
                                        },
                                        "maxItems": 5
                                    },
                                    "cc": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "format": "email"
                                        }
                                    },
                                    "subject": {
                                        "type": "string",
                                        "maxLength": 255,
                                        "description": "Required unless replying (defaults to \"Re: <original subject>\")"
                                    },
                                    "text": {
                                        "type": "string",
                                        "maxLength": 50000,
                                        "description": "Plain-text body"
                                    },
                                    "reply_to_message_id": {
                                        "type": "string",
                                        "description": "A message this inbox received; sets In-Reply-To and References"
                                    },
                                    "quote": {
                                        "type": "boolean",
                                        "default": true,
                                        "description": "When replying, append the original quoted with \"> \""
                                    },
                                    "from_tag": {
                                        "type": "string",
                                        "description": "Send from <inbox>+<tag>@… (not used for replies)"
                                    },
                                    "from_name": {
                                        "type": "string",
                                        "maxLength": 64,
                                        "description": "Display name (free text; no addresses)"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Sent",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/InboxMessage"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "description": "The workspace is archived",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/Invalid"
                    },
                    "429": {
                        "description": "The organization's daily send limit, or the per-token limit of 10 a minute",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "502": {
                        "description": "The mail service rejected the message",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Sending isn't configured on this server",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/inboxes/{id}/messages": {
            "get": {
                "tags": [
                    "Test Inboxes"
                ],
                "summary": "List messages (received and sent), newest first",
                "operationId": "listInboxMessages",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    },
                    {
                        "$ref": "#/components/parameters/cursor"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 10,
                            "default": 10
                        }
                    },
                    {
                        "$ref": "#/components/parameters/since"
                    },
                    {
                        "$ref": "#/components/parameters/plusTag"
                    },
                    {
                        "$ref": "#/components/parameters/subjectContains"
                    },
                    {
                        "$ref": "#/components/parameters/fromContains"
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "in = received, out = sent from the inbox",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "in",
                                "out"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InboxMessagePage"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/inboxes/{id}/messages/wait": {
            "get": {
                "tags": [
                    "Test Inboxes"
                ],
                "summary": "Wait for a message (long poll)",
                "description": "Returns the oldest received message matching the filters as soon as one exists, or 204 when none arrived within `timeout` seconds. Messages sent from the inbox never match.",
                "operationId": "waitForInboxMessage",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    },
                    {
                        "name": "timeout",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 30,
                            "default": 20
                        }
                    },
                    {
                        "name": "after",
                        "in": "query",
                        "description": "Only messages received after this message (an id in the same inbox)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/since"
                    },
                    {
                        "$ref": "#/components/parameters/plusTag"
                    },
                    {
                        "$ref": "#/components/parameters/subjectContains"
                    },
                    {
                        "$ref": "#/components/parameters/fromContains"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "A matching message",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/InboxMessage"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "204": {
                        "description": "No matching message arrived before the timeout"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/messages/{id}": {
            "get": {
                "tags": [
                    "Test Inboxes"
                ],
                "summary": "Get a message, including its HTML body",
                "operationId": "getInboxMessage",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/InboxMessage"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/messages/{id}/raw": {
            "get": {
                "tags": [
                    "Test Inboxes"
                ],
                "summary": "Download the raw message source (.eml)",
                "operationId": "getInboxMessageRaw",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The message as received",
                        "content": {
                            "message/rfc822": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer",
                "bearerFormat": "awk_<prefix>_<secret>"
            }
        },
        "parameters": {
            "id": {
                "name": "id",
                "in": "path",
                "required": true,
                "description": "ULID",
                "schema": {
                    "type": "string",
                    "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
                }
            },
            "cursor": {
                "name": "cursor",
                "in": "query",
                "description": "next_cursor from the previous page",
                "schema": {
                    "type": "string"
                }
            },
            "limit": {
                "name": "limit",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100,
                    "default": 25
                }
            },
            "since": {
                "name": "since",
                "in": "query",
                "description": "Only messages received at or after this time (ISO 8601)",
                "schema": {
                    "type": "string",
                    "format": "date-time"
                }
            },
            "plusTag": {
                "name": "plus_tag",
                "in": "query",
                "description": "Only messages sent to address+tag",
                "schema": {
                    "type": "string"
                }
            },
            "subjectContains": {
                "name": "subject_contains",
                "in": "query",
                "description": "Case-insensitive substring of the subject",
                "schema": {
                    "type": "string"
                }
            },
            "fromContains": {
                "name": "from_contains",
                "in": "query",
                "description": "Case-insensitive substring of the From address or name",
                "schema": {
                    "type": "string"
                }
            }
        },
        "responses": {
            "BadRequest": {
                "description": "Malformed request",
                "content": {
                    "application/problem+json": {
                        "schema": {
                            "$ref": "#/components/schemas/Problem"
                        }
                    }
                }
            },
            "Unauthorized": {
                "description": "Missing or invalid token",
                "content": {
                    "application/problem+json": {
                        "schema": {
                            "$ref": "#/components/schemas/Problem"
                        }
                    }
                }
            },
            "Forbidden": {
                "description": "The token lacks the scope",
                "content": {
                    "application/problem+json": {
                        "schema": {
                            "$ref": "#/components/schemas/Problem"
                        }
                    }
                }
            },
            "NotFound": {
                "description": "Not found in this workspace",
                "content": {
                    "application/problem+json": {
                        "schema": {
                            "$ref": "#/components/schemas/Problem"
                        }
                    }
                }
            },
            "Invalid": {
                "description": "Validation failed",
                "content": {
                    "application/problem+json": {
                        "schema": {
                            "$ref": "#/components/schemas/ValidationProblem"
                        }
                    }
                }
            },
            "TooMany": {
                "description": "Rate limit or monthly quota reached",
                "content": {
                    "application/problem+json": {
                        "schema": {
                            "$ref": "#/components/schemas/Problem"
                        }
                    }
                }
            }
        },
        "schemas": {
            "Problem": {
                "type": "object",
                "required": [
                    "type",
                    "title",
                    "status"
                ],
                "properties": {
                    "type": {
                        "type": "string",
                        "example": "about:blank"
                    },
                    "title": {
                        "type": "string",
                        "example": "Not Found"
                    },
                    "status": {
                        "type": "integer",
                        "example": 404
                    },
                    "detail": {
                        "type": "string"
                    }
                }
            },
            "ValidationProblem": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Problem"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "errors": {
                                "type": "object",
                                "additionalProperties": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                ]
            },
            "Page": {
                "type": "object",
                "required": [
                    "data",
                    "next_cursor"
                ],
                "properties": {
                    "next_cursor": {
                        "type": "string",
                        "nullable": true
                    },
                    "limit": {
                        "type": "integer"
                    }
                }
            },
            "Workspace": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "archived": {
                        "type": "boolean"
                    },
                    "organization": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        }
                    }
                }
            },
            "WorkspacePage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/Workspace"
                                }
                            }
                        }
                    }
                ]
            },
            "Auth": {
                "type": "object",
                "properties": {
                    "mode": {
                        "type": "string",
                        "enum": [
                            "INHERIT",
                            "NONE",
                            "CREDENTIAL"
                        ]
                    },
                    "credential": {
                        "type": "string",
                        "nullable": true,
                        "description": "Credential name (never its secrets)"
                    }
                }
            },
            "Collection": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string",
                        "nullable": true
                    },
                    "auth": {
                        "$ref": "#/components/schemas/Auth"
                    }
                }
            },
            "CollectionPage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/Collection"
                                }
                            }
                        }
                    }
                ]
            },
            "RequestSummary": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "method": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "collection_id": {
                        "type": "string"
                    },
                    "folder_id": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "SavedRequest": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/RequestSummary"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "description": {
                                "type": "string",
                                "nullable": true
                            },
                            "params": {
                                "type": "array",
                                "items": {
                                    "type": "object"
                                }
                            },
                            "headers": {
                                "type": "array",
                                "items": {
                                    "type": "object"
                                }
                            },
                            "body_mode": {
                                "type": "string"
                            },
                            "body": {
                                "type": "string",
                                "nullable": true
                            },
                            "auth": {
                                "$ref": "#/components/schemas/Auth"
                            },
                            "assertions": {
                                "type": "array",
                                "items": {
                                    "type": "object"
                                }
                            },
                            "extractions": {
                                "type": "array",
                                "items": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                ]
            },
            "RequestPage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/RequestSummary"
                                }
                            }
                        }
                    }
                ]
            },
            "Environment": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "global": {
                        "type": "boolean"
                    },
                    "variables": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "key": {
                                    "type": "string"
                                },
                                "value": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "Always null for secret variables"
                                },
                                "secret": {
                                    "type": "boolean"
                                },
                                "enabled": {
                                    "type": "boolean"
                                }
                            }
                        }
                    }
                }
            },
            "EnvironmentPage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/Environment"
                                }
                            }
                        }
                    }
                ]
            },
            "Endpoint": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "nullable": true
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "auth_mode": {
                        "type": "string"
                    },
                    "allowed_methods": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "rate_limit_per_minute": {
                        "type": "integer",
                        "nullable": true
                    },
                    "retention_days": {
                        "type": "integer",
                        "nullable": true
                    }
                }
            },
            "EndpointPage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/Endpoint"
                                }
                            }
                        }
                    }
                ]
            },
            "InboundRequest": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "endpoint_id": {
                        "type": "string"
                    },
                    "received_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "method": {
                        "type": "string"
                    },
                    "path": {
                        "type": "string"
                    },
                    "response_status": {
                        "type": "integer",
                        "nullable": true
                    },
                    "auth": {
                        "type": "string",
                        "enum": [
                            "NONE",
                            "PASSED",
                            "FAILED"
                        ]
                    },
                    "client_ip": {
                        "type": "string",
                        "nullable": true
                    },
                    "size": {
                        "type": "integer"
                    },
                    "content_type": {
                        "type": "string",
                        "nullable": true
                    },
                    "query": {
                        "type": "object",
                        "description": "Detail only"
                    },
                    "headers": {
                        "type": "object",
                        "description": "Detail only; sensitive headers are masked"
                    },
                    "body": {
                        "type": "string",
                        "description": "Detail only"
                    },
                    "body_encoding": {
                        "type": "string",
                        "enum": [
                            "utf-8",
                            "base64"
                        ]
                    },
                    "truncated": {
                        "type": "boolean"
                    }
                }
            },
            "InboundRequestPage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/InboundRequest"
                                }
                            }
                        }
                    }
                ]
            },
            "Execution": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "source": {
                        "type": "string",
                        "enum": [
                            "builder",
                            "runner",
                            "monitor",
                            "relay",
                            "api"
                        ]
                    },
                    "method": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "status": {
                        "type": "integer",
                        "nullable": true
                    },
                    "duration_ms": {
                        "type": "integer"
                    },
                    "error": {
                        "type": "object",
                        "nullable": true,
                        "properties": {
                            "class": {
                                "type": "string"
                            },
                            "message": {
                                "type": "string"
                            }
                        }
                    },
                    "tests_passed": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "request_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "run_id": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "ExecutionPage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/Execution"
                                }
                            }
                        }
                    }
                ]
            },
            "ExecutionResult": {
                "type": "object",
                "properties": {
                    "executionId": {
                        "type": "string",
                        "nullable": true
                    },
                    "response": {
                        "type": "object",
                        "properties": {
                            "status": {
                                "type": "integer",
                                "nullable": true
                            },
                            "headers": {
                                "type": "object"
                            },
                            "body": {
                                "type": "string"
                            },
                            "body_encoding": {
                                "type": "string",
                                "enum": [
                                    "utf-8",
                                    "base64"
                                ]
                            },
                            "durationMs": {
                                "type": "integer"
                            }
                        }
                    },
                    "error": {
                        "type": "object",
                        "nullable": true
                    },
                    "assertions": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "extractions": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "passed": {
                        "type": "boolean"
                    }
                }
            },
            "RunRequest": {
                "type": "object",
                "properties": {
                    "environment_id": {
                        "type": "string"
                    },
                    "folder_id": {
                        "type": "string"
                    },
                    "iterations": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100,
                        "default": 1
                    },
                    "delay_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 60000,
                        "default": 0
                    },
                    "stop_on_failure": {
                        "type": "boolean",
                        "default": false
                    },
                    "persist_responses": {
                        "type": "boolean",
                        "default": true
                    },
                    "data": {
                        "type": "array",
                        "maxItems": 1000,
                        "items": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        },
                        "description": "One iteration per row"
                    }
                }
            },
            "Run": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "QUEUED",
                            "RUNNING",
                            "PASSED",
                            "FAILED",
                            "CANCELLED",
                            "BLOCKED"
                        ]
                    },
                    "finished": {
                        "type": "boolean"
                    },
                    "collection_id": {
                        "type": "string"
                    },
                    "environment_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "source": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "started_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "finished_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "totals": {
                        "type": "object",
                        "properties": {
                            "requests": {
                                "type": "integer"
                            },
                            "passed": {
                                "type": "integer"
                            },
                            "failed": {
                                "type": "integer"
                            },
                            "assertions": {
                                "type": "integer"
                            },
                            "failed_assertions": {
                                "type": "integer"
                            },
                            "duration_ms": {
                                "type": "integer"
                            }
                        }
                    },
                    "error": {
                        "type": "string",
                        "nullable": true
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Execution"
                        }
                    }
                }
            },
            "AdobeConnection": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "ims_org_id": {
                        "type": "string"
                    },
                    "sandbox": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "title": {
                                "type": "string",
                                "nullable": true
                            },
                            "type": {
                                "type": "string",
                                "nullable": true
                            },
                            "is_default": {
                                "type": "boolean",
                                "nullable": true
                            }
                        }
                    },
                    "verification": {
                        "type": "object",
                        "properties": {
                            "status": {
                                "type": "string",
                                "enum": [
                                    "UNVERIFIED",
                                    "VERIFIED_DEVELOPMENT",
                                    "REFUSED_PRODUCTION",
                                    "REFUSED_DEFAULT",
                                    "FAILED"
                                ]
                            },
                            "runnable": {
                                "type": "boolean"
                            },
                            "message": {
                                "type": "string",
                                "nullable": true
                            },
                            "verified_at": {
                                "type": "string",
                                "format": "date-time",
                                "nullable": true
                            }
                        }
                    },
                    "credential": {
                        "type": "object",
                        "description": "Name, type and masked hint only",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "type": {
                                "type": "string"
                            },
                            "masked_hint": {
                                "type": "string"
                            }
                        }
                    },
                    "platform_url": {
                        "type": "string"
                    },
                    "dataset_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "schema_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "event_dataset_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "event_schema_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "streaming_inlet_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "ajo_event_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "ajo_campaign_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "correlation_field_path": {
                        "type": "string",
                        "nullable": true
                    },
                    "last_used_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                }
            },
            "AdobeConnectionPage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/AdobeConnection"
                                }
                            }
                        }
                    }
                ]
            },
            "AdobeSuite": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "connection_id": {
                        "type": "string"
                    },
                    "profile_set": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "profiles": {
                                "type": "integer"
                            }
                        }
                    },
                    "recipes": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "profile_strategy": {
                        "type": "string",
                        "enum": [
                            "FIRST",
                            "ROUND_ROBIN",
                            "ALL"
                        ]
                    },
                    "stop_on_failure": {
                        "type": "boolean"
                    },
                    "poll_timeout_seconds": {
                        "type": "integer"
                    },
                    "collection_id": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "AdobeSuitePage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/AdobeSuite"
                                }
                            }
                        }
                    }
                ]
            },
            "AdobeSuiteRun": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "suite_id": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "QUEUED",
                            "RUNNING",
                            "PASSED",
                            "FAILED",
                            "CANCELLED",
                            "BLOCKED"
                        ]
                    },
                    "finished": {
                        "type": "boolean"
                    },
                    "source": {
                        "type": "string",
                        "enum": [
                            "adobe_suite",
                            "monitor",
                            "api"
                        ]
                    },
                    "collection_run_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "finished_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "totals": {
                        "type": "object",
                        "nullable": true,
                        "additionalProperties": {
                            "type": "integer"
                        },
                        "description": "Steps per status: PASSED, FAILED, BLOCKED, SKIPPED, PENDING, NOT_RUN"
                    },
                    "first_failure": {
                        "type": "string",
                        "nullable": true
                    },
                    "steps": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "recipe": {
                                    "type": "string"
                                },
                                "title": {
                                    "type": "string"
                                },
                                "iteration": {
                                    "type": "integer",
                                    "nullable": true
                                },
                                "profile_position": {
                                    "type": "integer",
                                    "nullable": true
                                },
                                "status": {
                                    "type": "string",
                                    "enum": [
                                        "PASSED",
                                        "FAILED",
                                        "BLOCKED",
                                        "SKIPPED",
                                        "PENDING",
                                        "NOT_RUN"
                                    ]
                                },
                                "message": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "attempts": {
                                    "type": "integer"
                                },
                                "status_code": {
                                    "type": "integer",
                                    "nullable": true
                                },
                                "duration_ms": {
                                    "type": "integer",
                                    "nullable": true
                                },
                                "block_code": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "ADOBE_NO_CONNECTION, ADOBE_HOST_NOT_ALLOWED, ADOBE_SANDBOX_REFUSED or BLOCKED_PII"
                                },
                                "execution_id": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "assertions": {
                                    "type": "array",
                                    "items": {
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "AdobeLoopTest": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "webhook",
                            "email"
                        ],
                        "description": "webhook = the journey calls an AJO receiver; email = the journey emails the profile (a 16Labs Test Inbox address)"
                    },
                    "connection_id": {
                        "type": "string"
                    },
                    "receiver_id": {
                        "type": "string",
                        "nullable": true,
                        "description": "Null for email loop tests"
                    },
                    "event_recipe": {
                        "type": "string"
                    },
                    "timeout_seconds": {
                        "type": "integer"
                    },
                    "email_expectations": {
                        "type": "object",
                        "nullable": true,
                        "description": "Email loop tests only. Every check present must hold.",
                        "properties": {
                            "subjectContains": {
                                "type": "string"
                            },
                            "subjectEquals": {
                                "type": "string"
                            },
                            "fromAddress": {
                                "type": "string"
                            },
                            "bodyContains": {
                                "type": "string"
                            },
                            "linkHost": {
                                "type": "string"
                            },
                            "linkPath": {
                                "type": "string",
                                "description": "Path prefix of a link (with linkHost, of a link to that host)"
                            },
                            "authPass": {
                                "type": "boolean",
                                "description": "SPF and DKIM pass and DMARC is not failing"
                            }
                        }
                    }
                }
            },
            "AdobeLoopTestPage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/AdobeLoopTest"
                                }
                            }
                        }
                    }
                ]
            },
            "AdobeLoopRun": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "loop_test_id": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "PENDING",
                            "WAITING",
                            "PASSED",
                            "FAILED",
                            "TIMED_OUT",
                            "BLOCKED"
                        ]
                    },
                    "finished": {
                        "type": "boolean"
                    },
                    "correlation_id": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string",
                        "nullable": true
                    },
                    "diff": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "check": {
                                    "type": "string"
                                },
                                "expected": {
                                    "type": "string"
                                },
                                "actual": {
                                    "type": "string"
                                },
                                "ok": {
                                    "type": "boolean"
                                }
                            }
                        }
                    },
                    "sent_execution_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "matched_inbound_request_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "correlation_email": {
                        "type": "string",
                        "nullable": true,
                        "description": "Email loop tests: the profile address the email must arrive at"
                    },
                    "matched_inbox_message_id": {
                        "type": "string",
                        "nullable": true,
                        "description": "Email loop tests: the received email (GET /inboxes/{id}/messages/{messageId})"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "sent_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "deadline_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "matched_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "finished_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    }
                }
            },
            "Inbox": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "address": {
                        "type": "string",
                        "example": "rr-testy-mctestface-k3m9q2xa@inbox.16labs.ca"
                    },
                    "label": {
                        "type": "string",
                        "nullable": true
                    },
                    "receiving": {
                        "type": "boolean",
                        "description": "Whether mail sent to the address is accepted right now"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "message_count": {
                        "type": "integer"
                    },
                    "last_message_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                }
            },
            "InboxPage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/Inbox"
                                }
                            }
                        }
                    }
                ]
            },
            "MailAddress": {
                "type": "object",
                "properties": {
                    "address": {
                        "type": "string",
                        "nullable": true
                    },
                    "name": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "InboxMessage": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "inbox_id": {
                        "type": "string"
                    },
                    "direction": {
                        "type": "string",
                        "enum": [
                            "in",
                            "out"
                        ],
                        "description": "in = received; out = sent from the inbox (recipient and from are then the inbox address)"
                    },
                    "received_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "sent_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "recipient": {
                        "type": "string",
                        "description": "The address the message was delivered to, including any +tag"
                    },
                    "plus_tag": {
                        "type": "string",
                        "nullable": true
                    },
                    "from": {
                        "$ref": "#/components/schemas/MailAddress"
                    },
                    "envelope_from": {
                        "type": "string",
                        "nullable": true
                    },
                    "to": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MailAddress"
                        }
                    },
                    "cc": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MailAddress"
                        }
                    },
                    "subject": {
                        "type": "string",
                        "nullable": true
                    },
                    "message_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "in_reply_to": {
                        "type": "string",
                        "nullable": true
                    },
                    "size": {
                        "type": "integer"
                    },
                    "truncated": {
                        "type": "boolean",
                        "description": "Part of the message was over the stored size limit"
                    },
                    "auth": {
                        "type": "object",
                        "properties": {
                            "spf": {
                                "type": "string",
                                "nullable": true
                            },
                            "dkim": {
                                "type": "string",
                                "nullable": true
                            },
                            "dmarc": {
                                "type": "string",
                                "nullable": true
                            }
                        }
                    },
                    "links": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "href": {
                                    "type": "string"
                                },
                                "text": {
                                    "type": "string"
                                },
                                "host": {
                                    "type": "string",
                                    "nullable": true
                                }
                            }
                        }
                    },
                    "text": {
                        "type": "string",
                        "nullable": true
                    },
                    "has_html": {
                        "type": "boolean"
                    },
                    "html": {
                        "type": "string",
                        "nullable": true,
                        "description": "Only on GET /messages/{id} and the wait endpoint"
                    },
                    "attachments": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "position": {
                                    "type": "integer"
                                },
                                "filename": {
                                    "type": "string"
                                },
                                "content_type": {
                                    "type": "string"
                                },
                                "size": {
                                    "type": "integer"
                                },
                                "inline": {
                                    "type": "boolean"
                                },
                                "stored": {
                                    "type": "boolean"
                                }
                            }
                        }
                    },
                    "raw_url": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "InboxMessagePage": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Page"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "data": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/InboxMessage"
                                }
                            }
                        }
                    }
                ]
            }
        }
    }
}
