{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "TruckerTech integration API",
    "version": "2.1.0",
    "summary": "Who a credential is, the developer requests, the sandbox, and the token endpoint.",
    "description": "Read who your credential is (GET /v1/whoami). Ask TruckerTech to certify an adapter version (POST /v1/certification-requests) and for production access on an approved certification (POST /v1/production-access-requests), and follow their status with the matching GET routes. Create a sandbox webhook connection and its signing secret, shown once (POST /v1/sandbox/connections), list them and revoke one (GET /v1/sandbox/connections, DELETE /v1/sandbox/connections/{connectionId}). Read your sandbox request log, newest first, and follow new calls (GET /v1/sandbox/requests). Every error is `{ \"error\": { \"code\", \"message\", \"hint\" } }`; `x-truckertech-errors` on the tag lists each code with its fixed message and hint. Authenticate with an API key as a bearer token, or with client credentials at POST /oauth/token. Generated from the code that enforces it; the same operations are in the connectors document."
  },
  "servers": [
    {
      "url": "https://api.truckertech.dev",
      "description": "The integration API host"
    }
  ],
  "tags": [
    {
      "name": "Integration API",
      "description": "The integration principal, the developer requests and the sandbox.",
      "x-truckertech-errors": [
        {
          "code": "unauthorized",
          "message": "No credential was presented.",
          "hint": "Send Authorization: Bearer <key>. Read the key from the TRUCKERTECH_API_KEY environment variable."
        },
        {
          "code": "invalid_request",
          "message": "The request breaks the rules of this operation.",
          "hint": "Check the path, query and body against the OpenAPI document; unknown fields are refused."
        },
        {
          "code": "invalid_credential",
          "message": "The credential is unknown, revoked or expired.",
          "hint": "Create a new key in the developer console and set TRUCKERTECH_API_KEY."
        },
        {
          "code": "credential_environment_mismatch",
          "message": "The credential belongs to another environment.",
          "hint": "Use a sandbox key against the sandbox and a live key against live."
        },
        {
          "code": "credential_not_permitted",
          "message": "This credential may not perform this operation.",
          "hint": "Developer requests are filed with a sandbox key; a live API key never writes."
        },
        {
          "code": "forbidden_origin",
          "message": "Browser requests are refused.",
          "hint": "Call the API from your server or a CLI, never from a web page."
        },
        {
          "code": "suspended",
          "message": "This integration is suspended.",
          "hint": "Contact TruckerTech support."
        },
        {
          "code": "owner_inactive",
          "message": "The organization that owns this integration is not active.",
          "hint": "Contact TruckerTech support."
        },
        {
          "code": "insufficient_scope",
          "message": "The credential does not carry the scope this operation needs.",
          "hint": "Issue a key with the scope named in the OpenAPI document for this operation."
        },
        {
          "code": "not_found",
          "message": "Nothing with that id is visible to your organization.",
          "hint": "Check the id; resources of another organization are answered as unknown."
        },
        {
          "code": "rate_limited",
          "message": "Too many requests.",
          "hint": "Wait for the number of seconds in the Retry-After header, then retry."
        },
        {
          "code": "unavailable",
          "message": "The service is unavailable.",
          "hint": "Retry later with backoff."
        },
        {
          "code": "method_not_allowed",
          "message": "This method is not allowed on this path.",
          "hint": "Use a method listed in the Allow header."
        },
        {
          "code": "requester_not_permitted",
          "message": "The Person who issued this key may not file requests for the organization.",
          "hint": "A key issued by someone holding connections.manage in the organization is required; ask them to issue a new key."
        },
        {
          "code": "request_duplicate",
          "message": "An open request for the same thing already exists.",
          "hint": "Follow the open request with GET; file again once it is approved or declined."
        },
        {
          "code": "open_request_limit",
          "message": "The organization already has ten open requests.",
          "hint": "Wait until TruckerTech decides an open request."
        },
        {
          "code": "not_certified",
          "message": "The certification request is not approved.",
          "hint": "Ask for production access after the certification request status is approved."
        },
        {
          "code": "adapter_invalid",
          "message": "The adapter name, version or manifest digest is malformed.",
          "hint": "Use a lower-case package name, a semantic version (1.0.0) and an optional sha256:<64 hex> digest."
        },
        {
          "code": "capability_class_invalid",
          "message": "The capability class is unknown or above the certified one.",
          "hint": "Use R, E, W or F; for production access, no higher than the certified class."
        },
        {
          "code": "contact_invalid",
          "message": "The contact name or email is malformed.",
          "hint": "Give a name of 1 to 120 characters and a valid email address."
        },
        {
          "code": "notes_invalid",
          "message": "The notes are too long.",
          "hint": "Keep notes to 2000 characters."
        },
        {
          "code": "secret_refused",
          "message": "The text looks like a key, token, secret or TruckerTech identifier.",
          "hint": "Remove any key, token or secret from the contact and notes; never send credentials in a request body."
        },
        {
          "code": "sandbox_only",
          "message": "Sandbox connections and adapter registrations are made with sandbox credentials, in the sandbox only.",
          "hint": "Use a sandbox key in TRUCKERTECH_API_KEY against the sandbox."
        },
        {
          "code": "adapter_unavailable",
          "message": "No reference adapter, and no activated remote adapter of yours, declares events for that capability in the sandbox.",
          "hint": "Use a reference adapter id (e.g. reference.visibility with visibility.shipment_eta) or your own nexus_remote adapter after TruckerTech activates it; an https adapter, or one not yet activated, does not back a connection."
        },
        {
          "code": "sandbox_connection_limit",
          "message": "The organization already has ten active sandbox connections.",
          "hint": "Revoke a sandbox connection you no longer use, then create the new one."
        },
        {
          "code": "manifest_refused",
          "message": "The manifest does not meet the connector contract for a sandbox registration.",
          "hint": "Check the manifest against the connector contract first. It must be an ecosystem_partner manifest that declares the sandbox environment (and nothing beyond local and sandbox), on registered sockets, with no command operation."
        },
        {
          "code": "manifest_digest_mismatch",
          "message": "manifest_sha256 is not the SHA-256 of this manifest.",
          "hint": "Hash the exact manifest you send as canonical JSON (object keys sorted, no whitespace) with SHA-256, lower-case hex."
        },
        {
          "code": "adapter_id_unavailable",
          "message": "Another organization or TruckerTech registered this adapter id.",
          "hint": "Choose an adapter id of your own, e.g. your company name and the system, and register again."
        },
        {
          "code": "adapter_version_conflict",
          "message": "This adapter version is already registered with a different manifest.",
          "hint": "A registered version never changes: raise the version in the manifest and register the new one."
        },
        {
          "code": "sandbox_adapter_limit",
          "message": "The organization already has twenty registered adapter versions.",
          "hint": "Ask TruckerTech to retire versions you no longer use."
        },
        {
          "code": "key_set_refused",
          "message": "key_set is required for a nexus_remote manifest, refused for any other, and must be a valid tt-nexus-remote/1 key set.",
          "hint": "Send key_set only with a nexus_remote manifest: protocol tt-nexus-remote/1, issuer your adapter id, 1 to 8 Ed25519 public keys (base64url, 32 bytes) with unique kids, status active, retiring or revoked. Public keys only."
        },
        {
          "code": "conformance_run_limit",
          "message": "The organization has had 30 hosted conformance runs in the last 24 hours; this request would need more.",
          "hint": "Wait for the number of seconds in the Retry-After header, then file the request again; fix failed checks before you ask again."
        },
        {
          "code": "conformance_runs_exceed_limit",
          "message": "This adapter version declares more than 30 capability profiles: certifying it needs more hosted conformance runs (one per profile) than an organization may have in 24 hours.",
          "hint": "Waiting does not help: declare at most 30 capability profiles in one version, or ask TruckerTech to certify it."
        }
      ]
    }
  ],
  "paths": {
    "/v1/whoami": {
      "get": {
        "operationId": "integrationWhoami",
        "summary": "The integration principal of this credential",
        "description": "Returns the client, its organization, the environment, the credential kind and the effective scopes.",
        "tags": [
          "Integration API"
        ],
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.Whoami"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "credential_not_permitted, suspended, owner_inactive, forbidden_origin, insufficient_scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "read"
      }
    },
    "/v1/certification-requests": {
      "get": {
        "operationId": "integrationListCertificationRequests",
        "summary": "Your organization's certification requests",
        "description": "Lists the certification requests of your organization in request id order, with their status (`submitted`, `in_review`, `approved`, `declined`) and the decision note. Page with `limit` (1 to 100, default 25) and `after` (the `next_after` of the previous page).",
        "tags": [
          "Integration API"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Requests per page, 1 to 100; 25 when absent.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "The `next_after` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            }
          }
        ],
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.DeveloperRequestList"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "credential_not_permitted, suspended, owner_inactive, forbidden_origin, insufficient_scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "read"
      },
      "post": {
        "operationId": "integrationRequestCertification",
        "summary": "Ask TruckerTech to certify an adapter version",
        "description": "Records a request that TruckerTech certify one adapter version for a capability class (R reads, E reads and events, W writes, F financial writes), and, right after the answer, queues the version for the automated certifier (one run per capability profile; the request moves to `in_review`) and notifies the TruckerTech team. A request certifies nothing by itself: the certifier runs the conformance kit after the answer when it is on; a run that passes certifies the version, a run that fails on your adapter's own answers declines the request, and a run that cannot proceed (or a W or F class) leaves it for TruckerTech review. A version the certifier cannot take yet (not registered, for example) is recorded `submitted` for TruckerTech. Sandbox credentials only. The Person who issued the key must hold connections.manage in your organization. At most ten open requests per organization, one open request per adapter version and class, and 30 hosted conformance runs per organization in any rolling 24 hours (`conformance_run_limit`, 429 with `Retry-After`: the wait until enough runs leave the window); a version that declares more than 30 capability profiles is refused `conformance_runs_exceed_limit` (422). Contact and notes never carry a key, token or secret: such text is refused (`secret_refused`). Answers `201` with the request as filed. Sending the same filing again (the same key issuer, adapter version, class and manifest digest) while its request is open answers `200` with that request, so a retry after a timeout is safe; a retry's contact or notes are not stored when they differ, and the TruckerTech team is not notified again. A request still `submitted` with no run 15 minutes after it was filed is queued by the certifier's next sweep, or its `decision_note` says why it is not queued yet. Follow its status and `conformance` with `GET /v1/certification-requests/{requestId}`.",
        "tags": [
          "Integration API"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Integration.CertificationRequestBody"
              }
            }
          }
        },
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "200": {
            "description": "Already filed: the same filing (the same key issuer, adapter_name, adapter_version, capability_class and manifest_digest) was sent again while its request is open. The open request is answered as it was filed: a contact_name, contact_email or notes that differ from the first filing are not stored, and the TruckerTech team is not notified again.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.DeveloperRequest"
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "Recorded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.DeveloperRequest"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request, adapter_invalid, capability_class_invalid, contact_invalid, notes_invalid, secret_refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "credential_not_permitted (a live key, or not a sandbox credential), requester_not_permitted, suspended, owner_inactive, forbidden_origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "404": {
            "description": "not_found (production access: a certification request of another organization)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "409": {
            "description": "request_duplicate, open_request_limit, not_certified",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After; conformance_run_limit (certification requests: 30 hosted conformance runs per organization in any rolling 24 hours), with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "write"
      }
    },
    "/v1/certification-requests/{requestId}": {
      "get": {
        "operationId": "integrationGetCertificationRequest",
        "summary": "One certification request and its status",
        "description": "Returns one certification request of your organization, by request id or by reference (`CR-` and ten characters), as `items` of one, with its status, decision note and `conformance`: for the latest run of each capability socket and class, the run's status, its stable `code` and `reason`, and every check that ran (`id`, `dimension`, `outcome` of `pass`, `fail`, `not_applicable` or `faulted`) with a fixed `reason` for each failed one. Fix the failed checks, then request again. Another organization's request is answered exactly as one that does not exist: 404 `not_found`.",
        "tags": [
          "Integration API"
        ],
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "description": "The request id (`request_id`) or its reference (`CR-` and ten characters).",
            "schema": {
              "type": "string",
              "pattern": "^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|CR-[0-9A-F]{10})$"
            }
          }
        ],
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.DeveloperRequestItem"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "credential_not_permitted, suspended, owner_inactive, forbidden_origin, insufficient_scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "read"
      }
    },
    "/v1/production-access-requests": {
      "get": {
        "operationId": "integrationListProductionAccessRequests",
        "summary": "Your organization's production access requests",
        "description": "Lists the production access requests of your organization in request id order, with the certification each rests on and its status. Page with `limit` (1 to 100, default 25) and `after`.",
        "tags": [
          "Integration API"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Requests per page, 1 to 100; 25 when absent.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "The `next_after` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            }
          }
        ],
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.DeveloperRequestList"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "credential_not_permitted, suspended, owner_inactive, forbidden_origin, insufficient_scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "read"
      },
      "post": {
        "operationId": "integrationRequestProductionAccess",
        "summary": "Ask for production access on an approved certification",
        "description": "Records a request for production access on a certification request TruckerTech approved, for a capability class no higher than the certified one, and notifies the TruckerTech team. It issues no key and changes no class: the TruckerTech team reviews the request and issues live keys by hand. Sandbox credentials only; the Person who issued the key must hold connections.manage. A certification that is not yet approved is refused (`not_certified`). Answers `201` with the request.",
        "tags": [
          "Integration API"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Integration.ProductionAccessRequestBody"
              }
            }
          }
        },
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "201": {
            "description": "Recorded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.DeveloperRequest"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request, adapter_invalid, capability_class_invalid, contact_invalid, notes_invalid, secret_refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "credential_not_permitted (a live key, or not a sandbox credential), requester_not_permitted, suspended, owner_inactive, forbidden_origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "404": {
            "description": "not_found (production access: a certification request of another organization)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "409": {
            "description": "request_duplicate, open_request_limit, not_certified",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After; conformance_run_limit (certification requests: 30 hosted conformance runs per organization in any rolling 24 hours), with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "write"
      }
    },
    "/v1/production-access-requests/{requestId}": {
      "get": {
        "operationId": "integrationGetProductionAccessRequest",
        "summary": "One production access request and its status",
        "description": "Returns one production access request of your organization, by request id or by reference (`PA-` and ten characters), as `items` of one. Another organization's request is answered exactly as one that does not exist: 404 `not_found`.",
        "tags": [
          "Integration API"
        ],
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "description": "The request id (`request_id`) or its reference (`PA-` and ten characters).",
            "schema": {
              "type": "string",
              "pattern": "^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|PA-[0-9A-F]{10})$"
            }
          }
        ],
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.DeveloperRequestItem"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "credential_not_permitted, suspended, owner_inactive, forbidden_origin, insufficient_scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "read"
      }
    },
    "/v1/sandbox/connections": {
      "get": {
        "operationId": "integrationListSandboxConnections",
        "summary": "Your organization's sandbox connections",
        "description": "Lists the sandbox webhook connections of your organization in connection id order, active and revoked, with their key id, adapter and capability. Never a signing secret. Page with `limit` (1 to 100, default 25) and `after` (the `next_after` of the previous page).",
        "tags": [
          "Integration API"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Requests per page, 1 to 100; 25 when absent.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "The `next_after` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            }
          }
        ],
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.SandboxConnectionList"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "credential_not_permitted, suspended, owner_inactive, forbidden_origin, insufficient_scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "read"
      },
      "post": {
        "operationId": "integrationCreateSandboxConnection",
        "summary": "Create a sandbox webhook connection and its signing secret",
        "description": "Creates a webhook connection of your sandbox practice organization for one adapter (`adapter_id`: a reference adapter, e.g. `reference.visibility`, or your own `nexus_remote` adapter once TruckerTech has activated it, whose endpoint then normalizes each delivery) and capability (`capability_code`, e.g. `visibility.shipment_eta`), and a server-minted HMAC signing secret. Answers `201` with the connection and `signing_secret`, which is shown in this answer only and can never be read again: store it, and sign each delivery to `POST /api/nexus/events/{connection_id}` with key id `key_id`. In the envelope, `partnerId` is `partner_id` and `connectionReference` is `connection_id`. Sandbox credentials only (`sandbox_only` otherwise); the Person who issued the key must hold connections.manage. At most ten active sandbox connections per organization.",
        "tags": [
          "Integration API"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Integration.SandboxConnectionBody"
              }
            }
          }
        },
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "201": {
            "description": "Recorded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.SandboxConnectionIssued"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "sandbox_only (not a sandbox credential), credential_not_permitted (a live API key), requester_not_permitted, suspended, owner_inactive, forbidden_origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "409": {
            "description": "adapter_unavailable, sandbox_connection_limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "write"
      }
    },
    "/v1/sandbox/connections/{connectionId}": {
      "delete": {
        "operationId": "integrationRevokeSandboxConnection",
        "summary": "Revoke a sandbox connection",
        "description": "Revokes one sandbox connection of your organization: its signing secret is destroyed and every later delivery is refused. Revoking a revoked connection answers it again. Another organization's connection is answered exactly as one that does not exist: 404 `not_found`. Sandbox credentials only.",
        "tags": [
          "Integration API"
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "description": "The sandbox connection id (`connection_id`).",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            }
          }
        ],
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.SandboxConnection"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "sandbox_only (not a sandbox credential), credential_not_permitted (a live API key), requester_not_permitted, suspended, owner_inactive, forbidden_origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "404": {
            "description": "not_found (revoke: a connection of another organization)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "409": {
            "description": "adapter_unavailable, sandbox_connection_limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "write"
      }
    },
    "/v1/sandbox/adapters": {
      "get": {
        "operationId": "integrationListSandboxAdapters",
        "summary": "Your organization's registered adapter versions",
        "description": "Lists the adapter versions your organization registered in the sandbox, in registration order: adapter id, version, package, the manifest digest, the status (`registered` until TruckerTech activates it, then `active`), environments and sockets. Page with `limit` (1 to 100, default 25) and `after` (the `next_after` of the previous page).",
        "tags": [
          "Integration API"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Requests per page, 1 to 100; 25 when absent.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "The `next_after` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            }
          }
        ],
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.SandboxAdapterList"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "credential_not_permitted, suspended, owner_inactive, forbidden_origin, insufficient_scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "read"
      },
      "post": {
        "operationId": "integrationRegisterSandboxAdapter",
        "summary": "Register your adapter manifest in the sandbox",
        "description": "Registers one adapter version from its manifest (`manifest`, the object your adapter package exports) and the manifest digest you computed (`manifest_sha256`: SHA-256, lower-case hex, of the manifest as canonical JSON: object keys sorted, no whitespace). The server recomputes the digest and refuses a body whose digest differs (`manifest_digest_mismatch`), then checks the manifest against the connector contract (`manifest_refused` otherwise): an Ecosystem Partner manifest declared for the `sandbox` environment, on registered sockets, with no command operation. Its transport is `https` (registered only) or `nexus_remote` (tt-nexus-remote/1: your own endpoint, which normalizes every delivery to a sandbox connection on the adapter once TruckerTech activates it); a `nexus_remote` manifest also sends `key_set`, the public key set your endpoint signs its answers with, and any other manifest omits it (`key_set_refused` otherwise). The platform signs its requests to your endpoint with the key set published at `GET /api/nexus/remote/keys`. Answers `201` with the version in status `registered`; registering the same manifest again answers `200` with the same version. A changed manifest is a new version: the same version with another manifest is refused (`adapter_version_conflict`). An adapter id belongs to the organization that registered it first (`adapter_id_unavailable`). TruckerTech activates a registered version after review; you cannot activate it yourself. Sandbox credentials only (`sandbox_only` otherwise); the Person who issued the key must hold connections.manage. At most twenty registered versions per organization.",
        "tags": [
          "Integration API"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Integration.SandboxAdapterBody"
              }
            }
          }
        },
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "200": {
            "description": "Already recorded: the same body was sent again",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.SandboxAdapter"
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "Recorded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.SandboxAdapter"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "sandbox_only (not a sandbox credential or not the sandbox), credential_not_permitted (a live API key), requester_not_permitted, suspended, owner_inactive, forbidden_origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "409": {
            "description": "adapter_id_unavailable, adapter_version_conflict, sandbox_adapter_limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "422": {
            "description": "manifest_refused, manifest_digest_mismatch, key_set_refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "write"
      }
    },
    "/v1/sandbox/requests": {
      "get": {
        "operationId": "integrationListSandboxRequests",
        "summary": "Your organization's sandbox request log",
        "description": "Lists the calls your sandbox credentials made to this API in the last 7 days (the newest 500), newest first: the request id the API answered in `X-Request-Id`, the time, the method, the path (an id that is not a UUID or a request reference shows as `{id}`), the status, the error code, and whether an API key or an access token made the call. The same list as the request log in the Developer Console: never a request or answer body, a query string, a header or a key. Page back with `limit` (1 to 100, default 25) and `before` (the `next_before` of the previous page). To follow new calls, send `since` with the `next_since` of your last answer: you get the calls made after it that are more than 3 seconds old, the `limit` oldest of them, shown newest first, with `more` true while newer ones remain. New calls appear in the tail a few seconds after they happen; a page read without `since` shows every call at once. A `before` or `since` that is not a request id of your own log, or has left it, is answered 400 `invalid_request`: start again without one. Reading this log is not itself recorded in it. Sandbox credentials only (`sandbox_only` otherwise); the Person who issued the key must hold connections.manage. Read only: this route changes nothing, and an API key cannot manage keys.",
        "tags": [
          "Integration API"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Calls per page, 1 to 100; 25 when absent.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "description": "The `next_before` of the previous page: the calls made before that request. Not with `since`.",
            "schema": {
              "type": "string",
              "pattern": "^req-[0-9a-f]{24}$"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "The `next_since` of your last answer: the calls made after that request, to follow the log. Not with `before`.",
            "schema": {
              "type": "string",
              "pattern": "^req-[0-9a-f]{24}$"
            }
          }
        ],
        "security": [
          {
            "integrationApiKey": []
          },
          {
            "integrationClientCredentials": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration.SandboxRequestList"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request (including a before or since that is not a request id of your own log)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized, invalid_credential, credential_environment_mismatch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "403": {
            "description": "sandbox_only (not a sandbox credential), requester_not_permitted (the key issuer does not hold connections.manage), credential_not_permitted, suspended, owner_inactive, forbidden_origin, insufficient_scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          },
          "503": {
            "description": "unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.Error"
                }
              }
            }
          }
        },
        "x-truckertech-scope": null,
        "x-truckertech-class": "read"
      }
    },
    "/oauth/token": {
      "post": {
        "operationId": "issueIntegrationAccessToken",
        "summary": "Client credentials with private_key_jwt",
        "description": "Issues a ten-minute access token for the client the signed assertion names. No client secret exists; a request presenting one is refused.",
        "tags": [
          "Integration API"
        ],
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "grant_type",
                  "client_assertion_type",
                  "client_assertion"
                ],
                "properties": {
                  "grant_type": {
                    "const": "client_credentials"
                  },
                  "client_assertion_type": {
                    "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                  },
                  "client_assertion": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "client_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "scope": {
                    "type": "string",
                    "description": "Space-separated: career.postings:read, career.postings:write"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The access token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration.TokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "RFC 6749 5.2: invalid_request, invalid_scope, unsupported_grant_type"
          },
          "401": {
            "description": "invalid_client: any failed client authentication, one answer"
          },
          "429": {
            "description": "rate_limited, with Retry-After"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Integration.CertificationRequestBody": {
        "type": "object",
        "properties": {
          "adapter_name": {
            "type": "string",
            "description": "The adapter package name, lower case: letters, digits and . _ / @ -, up to 120."
          },
          "adapter_version": {
            "type": "string",
            "description": "A semantic version, e.g. 1.0.0 or 1.0.0-rc.1."
          },
          "manifest_digest": {
            "description": "Optional: the manifest digest, sha256: and 64 hexadecimal characters.",
            "type": [
              "string",
              "null"
            ]
          },
          "capability_class": {
            "type": "string",
            "enum": [
              "R",
              "E",
              "W",
              "F"
            ]
          },
          "contact_name": {
            "type": "string",
            "description": "Who TruckerTech contacts about the request, up to 120."
          },
          "contact_email": {
            "type": "string",
            "description": "Their email address."
          },
          "notes": {
            "description": "Optional, up to 2000 characters. Never a key, token or secret.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "adapter_name",
          "adapter_version",
          "capability_class",
          "contact_name",
          "contact_email"
        ],
        "additionalProperties": false
      },
      "Integration.DeveloperRequest": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
            "description": "A TruckerTech id (a UUID)."
          },
          "reference": {
            "type": "string",
            "pattern": "^(CR|PA)-[0-9A-F]{10}$",
            "description": "CR- (certification) or PA- (production access) and ten characters."
          },
          "kind": {
            "type": "string",
            "enum": [
              "certification",
              "production_access"
            ]
          },
          "certification_request_id": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                "description": "A TruckerTech id (a UUID)."
              },
              {
                "type": "null"
              }
            ]
          },
          "certification_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "adapter_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "adapter_version": {
            "type": [
              "string",
              "null"
            ]
          },
          "manifest_digest": {
            "type": [
              "string",
              "null"
            ]
          },
          "capability_class": {
            "type": "string",
            "enum": [
              "R",
              "E",
              "W",
              "F"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "submitted",
              "in_review",
              "approved",
              "declined"
            ]
          },
          "status_changed_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "An ISO 8601 timestamp."
              },
              {
                "type": "null"
              }
            ]
          },
          "decision_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "conformance": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "runs": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "socket_code": {
                          "type": "string",
                          "maxLength": 120
                        },
                        "capability_class": {
                          "type": "string",
                          "enum": [
                            "R",
                            "E",
                            "W",
                            "F"
                          ]
                        },
                        "attempt": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9007199254740991
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "running",
                            "passed",
                            "failed"
                          ]
                        },
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^certifier_[a-z_]{3,60}$"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The stable code a run that did not pass ended with, e.g. certifier_check_failed."
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 300
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The fixed sentence for `code`."
                        },
                        "endpoint_refusal": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "remote_endpoint_address_refused",
                                "remote_endpoint_url_refused",
                                "remote_endpoint_redirect_refused",
                                "remote_endpoint_response_too_large",
                                "remote_endpoint_timeout"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "What to fix when your endpoint was refused before it could be checked (certifier_remote_endpoint_refused only): its host did not resolve to a public address (one code for both), the URL broke the transport rules, it redirected, it answered too much, or it did not answer in time. Never the address or the resolver’s answer."
                        },
                        "missing_dimensions": {
                          "maxItems": 16,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[a-z_]{3,60}$"
                          },
                          "description": "The dimensions the class requires that no check passed (certifier_dimension_missing)."
                        },
                        "checks": {
                          "maxItems": 65,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9._:-]{0,127}$",
                                "description": "The check, e.g. authorization.grants-within-request."
                              },
                              "dimension": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[a-z_]{3,60}$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "The certification dimension it proves; null for the remote describe check."
                              },
                              "outcome": {
                                "type": "string",
                                "enum": [
                                  "pass",
                                  "fail",
                                  "not_applicable",
                                  "faulted"
                                ]
                              },
                              "reason": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 300
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "What the check expects, for a failed or faulted check; null otherwise."
                              }
                            },
                            "required": [
                              "id",
                              "dimension",
                              "outcome",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "queued_at": {
                          "type": "string",
                          "description": "An ISO 8601 timestamp."
                        },
                        "completed_at": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "An ISO 8601 timestamp."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "socket_code",
                        "capability_class",
                        "attempt",
                        "status",
                        "code",
                        "reason",
                        "endpoint_refusal",
                        "missing_dimensions",
                        "checks",
                        "queued_at",
                        "completed_at"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "runs"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The checks the automated certifier ran and which failed, with a reason for each failure; null until a run is queued, and for production access."
          },
          "passed_checks": {
            "anyOf": [
              {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9][a-z0-9._:-]{0,127}$"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The ids of the conformance checks that passed (and failed in no run); null until a run of the request completed."
          },
          "failed_checks": {
            "anyOf": [
              {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "check": {
                      "type": "string",
                      "pattern": "^[a-z0-9][a-z0-9._:-]{0,127}$"
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 300
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "check",
                    "reason"
                  ],
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "Each conformance check that failed on your adapter's own answers, once, with what it expects; null until a run of the request completed. A check your endpoint did not answer during is not judged and is in neither list."
          },
          "created_at": {
            "type": "string",
            "description": "An ISO 8601 timestamp."
          }
        },
        "required": [
          "request_id",
          "reference",
          "kind",
          "certification_request_id",
          "certification_reference",
          "adapter_name",
          "adapter_version",
          "manifest_digest",
          "capability_class",
          "status",
          "status_changed_at",
          "decision_note",
          "conformance",
          "passed_checks",
          "failed_checks",
          "created_at"
        ],
        "additionalProperties": false
      },
      "Integration.DeveloperRequestItem": {
        "type": "object",
        "properties": {
          "items": {
            "minItems": 1,
            "maxItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "request_id": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                  "description": "A TruckerTech id (a UUID)."
                },
                "reference": {
                  "type": "string",
                  "pattern": "^(CR|PA)-[0-9A-F]{10}$",
                  "description": "CR- (certification) or PA- (production access) and ten characters."
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "certification",
                    "production_access"
                  ]
                },
                "certification_request_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                      "description": "A TruckerTech id (a UUID)."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "certification_reference": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "adapter_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "adapter_version": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "manifest_digest": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "capability_class": {
                  "type": "string",
                  "enum": [
                    "R",
                    "E",
                    "W",
                    "F"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "submitted",
                    "in_review",
                    "approved",
                    "declined"
                  ]
                },
                "status_changed_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "An ISO 8601 timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "decision_note": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "conformance": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "runs": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "socket_code": {
                                "type": "string",
                                "maxLength": 120
                              },
                              "capability_class": {
                                "type": "string",
                                "enum": [
                                  "R",
                                  "E",
                                  "W",
                                  "F"
                                ]
                              },
                              "attempt": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 9007199254740991
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "pending",
                                  "running",
                                  "passed",
                                  "failed"
                                ]
                              },
                              "code": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^certifier_[a-z_]{3,60}$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "The stable code a run that did not pass ended with, e.g. certifier_check_failed."
                              },
                              "reason": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 300
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "The fixed sentence for `code`."
                              },
                              "endpoint_refusal": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "remote_endpoint_address_refused",
                                      "remote_endpoint_url_refused",
                                      "remote_endpoint_redirect_refused",
                                      "remote_endpoint_response_too_large",
                                      "remote_endpoint_timeout"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "What to fix when your endpoint was refused before it could be checked (certifier_remote_endpoint_refused only): its host did not resolve to a public address (one code for both), the URL broke the transport rules, it redirected, it answered too much, or it did not answer in time. Never the address or the resolver’s answer."
                              },
                              "missing_dimensions": {
                                "maxItems": 16,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[a-z_]{3,60}$"
                                },
                                "description": "The dimensions the class requires that no check passed (certifier_dimension_missing)."
                              },
                              "checks": {
                                "maxItems": 65,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9][a-z0-9._:-]{0,127}$",
                                      "description": "The check, e.g. authorization.grants-within-request."
                                    },
                                    "dimension": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "pattern": "^[a-z_]{3,60}$"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "The certification dimension it proves; null for the remote describe check."
                                    },
                                    "outcome": {
                                      "type": "string",
                                      "enum": [
                                        "pass",
                                        "fail",
                                        "not_applicable",
                                        "faulted"
                                      ]
                                    },
                                    "reason": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 300
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "What the check expects, for a failed or faulted check; null otherwise."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "dimension",
                                    "outcome",
                                    "reason"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "queued_at": {
                                "type": "string",
                                "description": "An ISO 8601 timestamp."
                              },
                              "completed_at": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "description": "An ISO 8601 timestamp."
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "socket_code",
                              "capability_class",
                              "attempt",
                              "status",
                              "code",
                              "reason",
                              "endpoint_refusal",
                              "missing_dimensions",
                              "checks",
                              "queued_at",
                              "completed_at"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "runs"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The checks the automated certifier ran and which failed, with a reason for each failure; null until a run is queued, and for production access."
                },
                "passed_checks": {
                  "anyOf": [
                    {
                      "maxItems": 200,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9._:-]{0,127}$"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The ids of the conformance checks that passed (and failed in no run); null until a run of the request completed."
                },
                "failed_checks": {
                  "anyOf": [
                    {
                      "maxItems": 200,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "check": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9._:-]{0,127}$"
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 300
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "check",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Each conformance check that failed on your adapter's own answers, once, with what it expects; null until a run of the request completed. A check your endpoint did not answer during is not judged and is in neither list."
                },
                "created_at": {
                  "type": "string",
                  "description": "An ISO 8601 timestamp."
                }
              },
              "required": [
                "request_id",
                "reference",
                "kind",
                "certification_request_id",
                "certification_reference",
                "adapter_name",
                "adapter_version",
                "manifest_digest",
                "capability_class",
                "status",
                "status_changed_at",
                "decision_note",
                "conformance",
                "passed_checks",
                "failed_checks",
                "created_at"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "Integration.DeveloperRequestList": {
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "request_id": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                  "description": "A TruckerTech id (a UUID)."
                },
                "reference": {
                  "type": "string",
                  "pattern": "^(CR|PA)-[0-9A-F]{10}$",
                  "description": "CR- (certification) or PA- (production access) and ten characters."
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "certification",
                    "production_access"
                  ]
                },
                "certification_request_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                      "description": "A TruckerTech id (a UUID)."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "certification_reference": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "adapter_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "adapter_version": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "manifest_digest": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "capability_class": {
                  "type": "string",
                  "enum": [
                    "R",
                    "E",
                    "W",
                    "F"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "submitted",
                    "in_review",
                    "approved",
                    "declined"
                  ]
                },
                "status_changed_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "An ISO 8601 timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "decision_note": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "conformance": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "runs": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "socket_code": {
                                "type": "string",
                                "maxLength": 120
                              },
                              "capability_class": {
                                "type": "string",
                                "enum": [
                                  "R",
                                  "E",
                                  "W",
                                  "F"
                                ]
                              },
                              "attempt": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 9007199254740991
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "pending",
                                  "running",
                                  "passed",
                                  "failed"
                                ]
                              },
                              "code": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^certifier_[a-z_]{3,60}$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "The stable code a run that did not pass ended with, e.g. certifier_check_failed."
                              },
                              "reason": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 300
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "The fixed sentence for `code`."
                              },
                              "endpoint_refusal": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "remote_endpoint_address_refused",
                                      "remote_endpoint_url_refused",
                                      "remote_endpoint_redirect_refused",
                                      "remote_endpoint_response_too_large",
                                      "remote_endpoint_timeout"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "What to fix when your endpoint was refused before it could be checked (certifier_remote_endpoint_refused only): its host did not resolve to a public address (one code for both), the URL broke the transport rules, it redirected, it answered too much, or it did not answer in time. Never the address or the resolver’s answer."
                              },
                              "missing_dimensions": {
                                "maxItems": 16,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[a-z_]{3,60}$"
                                },
                                "description": "The dimensions the class requires that no check passed (certifier_dimension_missing)."
                              },
                              "checks": {
                                "maxItems": 65,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9][a-z0-9._:-]{0,127}$",
                                      "description": "The check, e.g. authorization.grants-within-request."
                                    },
                                    "dimension": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "pattern": "^[a-z_]{3,60}$"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "The certification dimension it proves; null for the remote describe check."
                                    },
                                    "outcome": {
                                      "type": "string",
                                      "enum": [
                                        "pass",
                                        "fail",
                                        "not_applicable",
                                        "faulted"
                                      ]
                                    },
                                    "reason": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 300
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "What the check expects, for a failed or faulted check; null otherwise."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "dimension",
                                    "outcome",
                                    "reason"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "queued_at": {
                                "type": "string",
                                "description": "An ISO 8601 timestamp."
                              },
                              "completed_at": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "description": "An ISO 8601 timestamp."
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "socket_code",
                              "capability_class",
                              "attempt",
                              "status",
                              "code",
                              "reason",
                              "endpoint_refusal",
                              "missing_dimensions",
                              "checks",
                              "queued_at",
                              "completed_at"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "runs"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The checks the automated certifier ran and which failed, with a reason for each failure; null until a run is queued, and for production access."
                },
                "passed_checks": {
                  "anyOf": [
                    {
                      "maxItems": 200,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9._:-]{0,127}$"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The ids of the conformance checks that passed (and failed in no run); null until a run of the request completed."
                },
                "failed_checks": {
                  "anyOf": [
                    {
                      "maxItems": 200,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "check": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9._:-]{0,127}$"
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 300
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "check",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Each conformance check that failed on your adapter's own answers, once, with what it expects; null until a run of the request completed. A check your endpoint did not answer during is not judged and is in neither list."
                },
                "created_at": {
                  "type": "string",
                  "description": "An ISO 8601 timestamp."
                }
              },
              "required": [
                "request_id",
                "reference",
                "kind",
                "certification_request_id",
                "certification_reference",
                "adapter_name",
                "adapter_version",
                "manifest_digest",
                "capability_class",
                "status",
                "status_changed_at",
                "decision_note",
                "conformance",
                "passed_checks",
                "failed_checks",
                "created_at"
              ],
              "additionalProperties": false
            }
          },
          "next_after": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                "description": "A TruckerTech id (a UUID)."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "next_after"
        ],
        "additionalProperties": false
      },
      "Integration.Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "unauthorized",
                  "invalid_request",
                  "invalid_credential",
                  "credential_environment_mismatch",
                  "credential_not_permitted",
                  "forbidden_origin",
                  "suspended",
                  "owner_inactive",
                  "insufficient_scope",
                  "not_found",
                  "rate_limited",
                  "unavailable",
                  "method_not_allowed",
                  "requester_not_permitted",
                  "request_duplicate",
                  "open_request_limit",
                  "not_certified",
                  "adapter_invalid",
                  "capability_class_invalid",
                  "contact_invalid",
                  "notes_invalid",
                  "secret_refused",
                  "sandbox_only",
                  "adapter_unavailable",
                  "sandbox_connection_limit",
                  "manifest_refused",
                  "manifest_digest_mismatch",
                  "adapter_id_unavailable",
                  "adapter_version_conflict",
                  "sandbox_adapter_limit",
                  "key_set_refused",
                  "conformance_run_limit",
                  "conformance_runs_exceed_limit"
                ]
              },
              "message": {
                "type": "string"
              },
              "hint": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message",
              "hint"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "Integration.ProductionAccessRequestBody": {
        "type": "object",
        "properties": {
          "certification_request_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
            "description": "The `request_id` of a certification request TruckerTech approved."
          },
          "capability_class": {
            "type": "string",
            "enum": [
              "R",
              "E",
              "W",
              "F"
            ]
          },
          "contact_name": {
            "type": "string"
          },
          "contact_email": {
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "certification_request_id",
          "capability_class",
          "contact_name",
          "contact_email"
        ],
        "additionalProperties": false
      },
      "Integration.RemoteKeySet": {
        "type": "object",
        "properties": {
          "protocol": {
            "type": "string",
            "const": "tt-nexus-remote/1"
          },
          "issuer": {
            "type": "string",
            "maxLength": 96,
            "description": "Your adapter id: the identity your endpoint signs as."
          },
          "keys": {
            "minItems": 1,
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kid": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
                  "description": "The key id your endpoint signs under; unique in the set, compared case-insensitively."
                },
                "alg": {
                  "type": "string",
                  "const": "Ed25519"
                },
                "publicKey": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{43}$",
                  "description": "The 32-byte Ed25519 public key, base64url without padding."
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "retiring",
                    "revoked"
                  ],
                  "description": "active and retiring keys verify; a revoked key never does."
                },
                "notBeforeMs": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Valid from, ms since the Unix epoch."
                },
                "notAfterMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Valid until, ms since the Unix epoch; null for open-ended."
                }
              },
              "required": [
                "kid",
                "alg",
                "publicKey",
                "status",
                "notBeforeMs",
                "notAfterMs"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "protocol",
          "issuer",
          "keys"
        ],
        "additionalProperties": false
      },
      "Integration.SandboxAdapter": {
        "type": "object",
        "properties": {
          "adapter_id": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "package_name": {
            "type": "string"
          },
          "manifest_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "SHA-256 of the manifest canonical JSON, 64 lower-case hexadecimal characters."
          },
          "status": {
            "type": "string",
            "enum": [
              "registered",
              "active",
              "suspended",
              "retired"
            ],
            "description": "registered until TruckerTech activates the version after review."
          },
          "environments": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "socket_codes": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "socketCode@schemaVersion, e.g. visibility.shipment_eta@1."
          },
          "transport_kind": {
            "type": "string",
            "enum": [
              "https",
              "nexus_remote"
            ],
            "description": "nexus_remote: your endpoint normalizes deliveries over tt-nexus-remote/1; https: registered only."
          },
          "key_set": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "protocol": {
                    "type": "string",
                    "const": "tt-nexus-remote/1"
                  },
                  "issuer": {
                    "type": "string",
                    "maxLength": 96,
                    "description": "Your adapter id: the identity your endpoint signs as."
                  },
                  "keys": {
                    "minItems": 1,
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kid": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
                          "description": "The key id your endpoint signs under; unique in the set, compared case-insensitively."
                        },
                        "alg": {
                          "type": "string",
                          "const": "Ed25519"
                        },
                        "publicKey": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9_-]{43}$",
                          "description": "The 32-byte Ed25519 public key, base64url without padding."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "retiring",
                            "revoked"
                          ],
                          "description": "active and retiring keys verify; a revoked key never does."
                        },
                        "notBeforeMs": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991,
                          "description": "Valid from, ms since the Unix epoch."
                        },
                        "notAfterMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Valid until, ms since the Unix epoch; null for open-ended."
                        }
                      },
                      "required": [
                        "kid",
                        "alg",
                        "publicKey",
                        "status",
                        "notBeforeMs",
                        "notAfterMs"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "protocol",
                  "issuer",
                  "keys"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The public key set registered with a nexus_remote version; null for https."
          },
          "registered_at": {
            "type": "string",
            "description": "An ISO 8601 timestamp."
          },
          "status_changed_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "An ISO 8601 timestamp."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "adapter_id",
          "version",
          "package_name",
          "manifest_sha256",
          "status",
          "environments",
          "socket_codes",
          "transport_kind",
          "key_set",
          "registered_at",
          "status_changed_at"
        ],
        "additionalProperties": false
      },
      "Integration.SandboxAdapterBody": {
        "type": "object",
        "properties": {
          "manifest": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "The adapter manifest: the object your adapter package exports as its manifest."
          },
          "manifest_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "SHA-256 of the manifest canonical JSON, 64 lower-case hexadecimal characters."
          },
          "key_set": {
            "description": "Required for a nexus_remote manifest and refused for any other: the public key set your endpoint signs its answers with. issuer is your adapter id.",
            "type": "object",
            "properties": {
              "protocol": {
                "type": "string",
                "const": "tt-nexus-remote/1"
              },
              "issuer": {
                "type": "string",
                "maxLength": 96,
                "description": "Your adapter id: the identity your endpoint signs as."
              },
              "keys": {
                "minItems": 1,
                "maxItems": 8,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kid": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
                      "description": "The key id your endpoint signs under; unique in the set, compared case-insensitively."
                    },
                    "alg": {
                      "type": "string",
                      "const": "Ed25519"
                    },
                    "publicKey": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{43}$",
                      "description": "The 32-byte Ed25519 public key, base64url without padding."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "retiring",
                        "revoked"
                      ],
                      "description": "active and retiring keys verify; a revoked key never does."
                    },
                    "notBeforeMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "Valid from, ms since the Unix epoch."
                    },
                    "notAfterMs": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Valid until, ms since the Unix epoch; null for open-ended."
                    }
                  },
                  "required": [
                    "kid",
                    "alg",
                    "publicKey",
                    "status",
                    "notBeforeMs",
                    "notAfterMs"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "protocol",
              "issuer",
              "keys"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "manifest",
          "manifest_sha256"
        ],
        "additionalProperties": false
      },
      "Integration.SandboxAdapterList": {
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "adapter_id": {
                  "type": "string"
                },
                "version": {
                  "type": "string"
                },
                "package_name": {
                  "type": "string"
                },
                "manifest_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "description": "SHA-256 of the manifest canonical JSON, 64 lower-case hexadecimal characters."
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "registered",
                    "active",
                    "suspended",
                    "retired"
                  ],
                  "description": "registered until TruckerTech activates the version after review."
                },
                "environments": {
                  "maxItems": 5,
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "socket_codes": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "socketCode@schemaVersion, e.g. visibility.shipment_eta@1."
                },
                "transport_kind": {
                  "type": "string",
                  "enum": [
                    "https",
                    "nexus_remote"
                  ],
                  "description": "nexus_remote: your endpoint normalizes deliveries over tt-nexus-remote/1; https: registered only."
                },
                "key_set": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "protocol": {
                          "type": "string",
                          "const": "tt-nexus-remote/1"
                        },
                        "issuer": {
                          "type": "string",
                          "maxLength": 96,
                          "description": "Your adapter id: the identity your endpoint signs as."
                        },
                        "keys": {
                          "minItems": 1,
                          "maxItems": 8,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "kid": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
                                "description": "The key id your endpoint signs under; unique in the set, compared case-insensitively."
                              },
                              "alg": {
                                "type": "string",
                                "const": "Ed25519"
                              },
                              "publicKey": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9_-]{43}$",
                                "description": "The 32-byte Ed25519 public key, base64url without padding."
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "active",
                                  "retiring",
                                  "revoked"
                                ],
                                "description": "active and retiring keys verify; a revoked key never does."
                              },
                              "notBeforeMs": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991,
                                "description": "Valid from, ms since the Unix epoch."
                              },
                              "notAfterMs": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Valid until, ms since the Unix epoch; null for open-ended."
                              }
                            },
                            "required": [
                              "kid",
                              "alg",
                              "publicKey",
                              "status",
                              "notBeforeMs",
                              "notAfterMs"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "protocol",
                        "issuer",
                        "keys"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The public key set registered with a nexus_remote version; null for https."
                },
                "registered_at": {
                  "type": "string",
                  "description": "An ISO 8601 timestamp."
                },
                "status_changed_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "An ISO 8601 timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "adapter_id",
                "version",
                "package_name",
                "manifest_sha256",
                "status",
                "environments",
                "socket_codes",
                "transport_kind",
                "key_set",
                "registered_at",
                "status_changed_at"
              ],
              "additionalProperties": false
            }
          },
          "next_after": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                "description": "A TruckerTech id (a UUID)."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "next_after"
        ],
        "additionalProperties": false
      },
      "Integration.SandboxConnection": {
        "type": "object",
        "properties": {
          "connection_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
            "description": "The connection: POST /api/nexus/events/{connection_id}, and the envelope connectionReference."
          },
          "partner_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
            "description": "The envelope partnerId: your organization."
          },
          "key_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
            "description": "The key id of the x-tt-nexus-signature header."
          },
          "adapter_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "adapter_version": {
            "type": [
              "string",
              "null"
            ]
          },
          "capability_code": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "revoked"
            ]
          },
          "created_at": {
            "type": "string",
            "description": "An ISO 8601 timestamp."
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "An ISO 8601 timestamp."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "connection_id",
          "partner_id",
          "key_id",
          "adapter_id",
          "adapter_version",
          "capability_code",
          "status",
          "created_at",
          "revoked_at"
        ],
        "additionalProperties": false
      },
      "Integration.SandboxConnectionBody": {
        "type": "object",
        "properties": {
          "adapter_id": {
            "type": "string",
            "maxLength": 96,
            "description": "A reference adapter registered in the sandbox, e.g. reference.visibility, or your own activated nexus_remote adapter."
          },
          "capability_code": {
            "type": "string",
            "maxLength": 128,
            "description": "A capability the adapter declares events for, e.g. visibility.shipment_eta."
          }
        },
        "required": [
          "adapter_id",
          "capability_code"
        ],
        "additionalProperties": false
      },
      "Integration.SandboxConnectionIssued": {
        "type": "object",
        "properties": {
          "connection_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
            "description": "The connection: POST /api/nexus/events/{connection_id}, and the envelope connectionReference."
          },
          "partner_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
            "description": "The envelope partnerId: your organization."
          },
          "key_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
            "description": "The key id of the x-tt-nexus-signature header."
          },
          "adapter_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "adapter_version": {
            "type": [
              "string",
              "null"
            ]
          },
          "capability_code": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "revoked"
            ]
          },
          "created_at": {
            "type": "string",
            "description": "An ISO 8601 timestamp."
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "An ISO 8601 timestamp."
              },
              {
                "type": "null"
              }
            ]
          },
          "signing_secret": {
            "type": "string",
            "pattern": "^[a-z]{2}_[a-z]{3}_[a-z]{5}_[0-9a-f]{64}$",
            "description": "The HMAC-SHA-256 key, as its UTF-8 bytes. Shown once; never readable again."
          }
        },
        "required": [
          "connection_id",
          "partner_id",
          "key_id",
          "adapter_id",
          "adapter_version",
          "capability_code",
          "status",
          "created_at",
          "revoked_at",
          "signing_secret"
        ],
        "additionalProperties": false
      },
      "Integration.SandboxConnectionList": {
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "connection_id": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                  "description": "The connection: POST /api/nexus/events/{connection_id}, and the envelope connectionReference."
                },
                "partner_id": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                  "description": "The envelope partnerId: your organization."
                },
                "key_id": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                  "description": "The key id of the x-tt-nexus-signature header."
                },
                "adapter_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "adapter_version": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "capability_code": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "revoked"
                  ]
                },
                "created_at": {
                  "type": "string",
                  "description": "An ISO 8601 timestamp."
                },
                "revoked_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "An ISO 8601 timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "connection_id",
                "partner_id",
                "key_id",
                "adapter_id",
                "adapter_version",
                "capability_code",
                "status",
                "created_at",
                "revoked_at"
              ],
              "additionalProperties": false
            }
          },
          "next_after": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                "description": "A TruckerTech id (a UUID)."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "next_after"
        ],
        "additionalProperties": false
      },
      "Integration.SandboxRequest": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "pattern": "^req-[0-9a-f]{24}$",
            "description": "A request id, as the API answered it in `X-Request-Id`."
          },
          "occurred_at": {
            "type": "string",
            "minLength": 10,
            "maxLength": 40,
            "description": "An ISO 8601 timestamp."
          },
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE"
            ]
          },
          "path": {
            "type": "string",
            "pattern": "^\\/v1(\\/[A-Za-z0-9{}-]{1,64}){0,4}$",
            "description": "The path as called, without a query; an id that is not a UUID or a reference is `{id}`."
          },
          "status": {
            "type": "integer",
            "minimum": 100,
            "maximum": 599
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_]{0,63}$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The API error code of a call that failed; null when it succeeded."
          },
          "credential_kind": {
            "type": "string",
            "enum": [
              "api_key",
              "access_token"
            ]
          }
        },
        "required": [
          "request_id",
          "occurred_at",
          "method",
          "path",
          "status",
          "error_code",
          "credential_kind"
        ],
        "additionalProperties": false
      },
      "Integration.SandboxRequestList": {
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "request_id": {
                  "type": "string",
                  "pattern": "^req-[0-9a-f]{24}$",
                  "description": "A request id, as the API answered it in `X-Request-Id`."
                },
                "occurred_at": {
                  "type": "string",
                  "minLength": 10,
                  "maxLength": 40,
                  "description": "An ISO 8601 timestamp."
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET",
                    "POST",
                    "PUT",
                    "PATCH",
                    "DELETE"
                  ]
                },
                "path": {
                  "type": "string",
                  "pattern": "^\\/v1(\\/[A-Za-z0-9{}-]{1,64}){0,4}$",
                  "description": "The path as called, without a query; an id that is not a UUID or a reference is `{id}`."
                },
                "status": {
                  "type": "integer",
                  "minimum": 100,
                  "maximum": 599
                },
                "error_code": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The API error code of a call that failed; null when it succeeded."
                },
                "credential_kind": {
                  "type": "string",
                  "enum": [
                    "api_key",
                    "access_token"
                  ]
                }
              },
              "required": [
                "request_id",
                "occurred_at",
                "method",
                "path",
                "status",
                "error_code",
                "credential_kind"
              ],
              "additionalProperties": false
            }
          },
          "next_before": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^req-[0-9a-f]{24}$",
                "description": "A request id, as the API answered it in `X-Request-Id`."
              },
              {
                "type": "null"
              }
            ]
          },
          "next_since": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^req-[0-9a-f]{24}$",
                "description": "A request id, as the API answered it in `X-Request-Id`."
              },
              {
                "type": "null"
              }
            ]
          },
          "more": {
            "type": "boolean"
          }
        },
        "required": [
          "items",
          "next_before",
          "next_since",
          "more"
        ],
        "additionalProperties": false
      },
      "Integration.TokenResponse": {
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string",
            "description": "tt_<live|sbx>_at_…; ten minutes."
          },
          "token_type": {
            "type": "string",
            "const": "Bearer"
          },
          "expires_in": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "scope": {
            "type": "string"
          }
        },
        "required": [
          "access_token",
          "token_type",
          "expires_in",
          "scope"
        ],
        "additionalProperties": false
      },
      "Integration.Whoami": {
        "type": "object",
        "properties": {
          "principal": {
            "type": "string",
            "const": "integration"
          },
          "client_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
            "description": "A TruckerTech id (a UUID)."
          },
          "client_name": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
            "description": "A TruckerTech id (a UUID)."
          },
          "organization_name": {
            "type": "string"
          },
          "environment": {
            "type": "string",
            "enum": [
              "live",
              "sbx"
            ]
          },
          "credential": {
            "type": "string",
            "enum": [
              "api_key",
              "access_token"
            ]
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "career.postings:read",
                "career.postings:write",
                "ops.cores:read"
              ]
            }
          }
        },
        "required": [
          "principal",
          "client_id",
          "client_name",
          "organization_id",
          "organization_name",
          "environment",
          "credential",
          "scopes"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "integrationApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API key, a sandbox key in the sandbox or a live key in live, issued once to your organization. A live API key reads only: writes in live need an access token from client credentials."
      },
      "integrationClientCredentials": {
        "type": "oauth2",
        "description": "Client credentials (RFC 6749 4.4) with private_key_jwt client authentication (RFC 7523): POST /oauth/token with `grant_type=client_credentials`, `client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer` and a `client_assertion` signed with your registered key (EdDSA or ES256): `iss` and `sub` are your client id, `aud` is the token endpoint, a unique `jti`, and at most 300 seconds to `exp`. The access token (`tt_<env>_at_…`) lasts ten minutes; sign a new assertion for the next.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/oauth/token",
            "scopes": {
              "career.postings:read": "Read class. No operation uses it yet.",
              "career.postings:write": "Write class (live writes need client credentials). No operation uses it yet."
            }
          }
        }
      }
    }
  }
}
