{
  "info": {
    "name": "TruckerTech Nexus",
    "description": "Partner event delivery to TruckerTech Nexus, the remote connector protocol, and the canonical socket schemas a connector normalizes to. Every schema is generated from the code that enforces it. Generated from the OpenAPI document (3.1.0). Every variable starts empty: set baseUrl and the credentials your connection is issued.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Ingress",
      "description": "Signed event delivery from a Partner to TruckerTech Nexus.",
      "item": [
        {
          "name": "Deliver one signed Partner event",
          "request": {
            "method": "POST",
            "description": "A Partner delivers one event envelope for one connection. The body is read up to 262144 bytes and never parsed past it. The signature header covers the send time and the raw body; the delivery is accepted only inside the replay window on that send time, and an event id already received is answered as accepted, so a Partner may retry with a fresh send time. Every answer is `no-store`.",
            "header": [
              {
                "key": "x-tt-nexus-signature",
                "value": "{{x-tt-nexus-signature}}",
                "description": "`hmac-sha256;key-id=<key id>;t=<send time, ms since epoch, a safe integer>;value=<64 lowercase hex>`, where `value` is HMAC-SHA-256 over `<t>.` followed by the raw body. The key id names a credential version, never key material."
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "description": ""
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/nexus/events/:connection",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "nexus",
                "events",
                ":connection"
              ],
              "variable": [
                {
                  "key": "connection",
                  "value": "{{connection}}",
                  "description": "The connection (account binding) id the delivery is for."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"envelopeVersion\": 1,\n  \"partnerId\": \"<string>\",\n  \"connectionReference\": \"<string>\",\n  \"eventId\": \"<string>\",\n  \"eventType\": \"<string>\",\n  \"idempotencyKey\": \"<string>\",\n  \"sequenceNumber\": 0,\n  \"occurredAtMs\": 0,\n  \"payload\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Remote connector protocol",
      "description": "Calls from TruckerTech Nexus to a connector that runs on the Partner’s infrastructure.",
      "item": [
        {
          "name": "The key set TruckerTech signs remote connector calls with",
          "request": {
            "method": "GET",
            "description": "The public Ed25519 key set TruckerTech Nexus signs every `tt-nexus-remote/1` call to a remote connector with, in this environment. Its `issuer` is the platform identity your endpoint expects as the request `iss` and answers as `aud`. Verify every request against it and refresh it at least every minute, so a rotation reaches your endpoint. Public keys only; no credential is needed. Published where remote connectors normalize deliveries: the sandbox.",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/nexus/remote/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "nexus",
                "remote",
                "keys"
              ],
              "variable": []
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Integration API",
      "description": "The integration principal: who a credential is, and how a client exchanges its signed assertion for an access token. Every error is `{ \"error\": { \"code\", \"message\", \"hint\" } }`; `x-truckertech-errors` lists each code with its fixed message and hint.",
      "item": [
        {
          "name": "The integration principal of this credential",
          "request": {
            "method": "GET",
            "description": "Returns the client, its organization, the environment, the credential kind and the effective scopes.",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/whoami",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "whoami"
              ],
              "variable": []
            }
          },
          "response": []
        },
        {
          "name": "Your organization's certification requests",
          "request": {
            "method": "GET",
            "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).",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/certification-requests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "certification-requests"
              ],
              "variable": []
            }
          },
          "response": []
        },
        {
          "name": "Ask TruckerTech to certify an adapter version",
          "request": {
            "method": "POST",
            "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}`.",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "description": ""
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/certification-requests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "certification-requests"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"adapter_name\": \"<string>\",\n  \"adapter_version\": \"<string>\",\n  \"capability_class\": \"R\",\n  \"contact_name\": \"<string>\",\n  \"contact_email\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "One certification request and its status",
          "request": {
            "method": "GET",
            "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`.",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/certification-requests/:requestId",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "certification-requests",
                ":requestId"
              ],
              "variable": [
                {
                  "key": "requestId",
                  "value": "{{requestId}}",
                  "description": "The request id (`request_id`) or its reference (`CR-` and ten characters)."
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Your organization's production access requests",
          "request": {
            "method": "GET",
            "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`.",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/production-access-requests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "production-access-requests"
              ],
              "variable": []
            }
          },
          "response": []
        },
        {
          "name": "Ask for production access on an approved certification",
          "request": {
            "method": "POST",
            "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.",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "description": ""
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/production-access-requests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "production-access-requests"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"certification_request_id\": \"<string>\",\n  \"capability_class\": \"R\",\n  \"contact_name\": \"<string>\",\n  \"contact_email\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "One production access request and its status",
          "request": {
            "method": "GET",
            "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`.",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/production-access-requests/:requestId",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "production-access-requests",
                ":requestId"
              ],
              "variable": [
                {
                  "key": "requestId",
                  "value": "{{requestId}}",
                  "description": "The request id (`request_id`) or its reference (`PA-` and ten characters)."
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Your organization's sandbox connections",
          "request": {
            "method": "GET",
            "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).",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/sandbox/connections",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "sandbox",
                "connections"
              ],
              "variable": []
            }
          },
          "response": []
        },
        {
          "name": "Create a sandbox webhook connection and its signing secret",
          "request": {
            "method": "POST",
            "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.",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "description": ""
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/sandbox/connections",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "sandbox",
                "connections"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"adapter_id\": \"<string>\",\n  \"capability_code\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Revoke a sandbox connection",
          "request": {
            "method": "DELETE",
            "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.",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/sandbox/connections/:connectionId",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "sandbox",
                "connections",
                ":connectionId"
              ],
              "variable": [
                {
                  "key": "connectionId",
                  "value": "{{connectionId}}",
                  "description": "The sandbox connection id (`connection_id`)."
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Your organization's registered adapter versions",
          "request": {
            "method": "GET",
            "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).",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/sandbox/adapters",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "sandbox",
                "adapters"
              ],
              "variable": []
            }
          },
          "response": []
        },
        {
          "name": "Register your adapter manifest in the sandbox",
          "request": {
            "method": "POST",
            "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.",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "description": ""
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/sandbox/adapters",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "sandbox",
                "adapters"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"manifest\": {},\n  \"manifest_sha256\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Your organization's sandbox request log",
          "request": {
            "method": "GET",
            "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.",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/integration/sandbox/requests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "integration",
                "sandbox",
                "requests"
              ],
              "variable": []
            }
          },
          "response": []
        },
        {
          "name": "Client credentials with private_key_jwt",
          "request": {
            "method": "POST",
            "description": "Issues a ten-minute access token for the client the signed assertion names. No client secret exists; a request presenting one is refused.",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/x-www-form-urlencoded",
                "description": ""
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/oauth/token",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "oauth",
                "token"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"grant_type\": \"client_credentials\",\n  \"client_assertion_type\": \"urn:ietf:params:oauth:client-assertion-type:jwt-bearer\",\n  \"client_assertion\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "",
      "description": "The TruckerTech API host, api.truckertech.dev, used over https. A sandbox key from the developer console works against it."
    },
    {
      "key": "connection",
      "value": "",
      "description": "The connection (account binding) id the delivery is for."
    },
    {
      "key": "x-tt-nexus-signature",
      "value": "",
      "description": "`hmac-sha256;key-id=<key id>;t=<send time, ms since epoch, a safe integer>;value=<64 lowercase hex>`, where `value` is HMAC-SHA-256 over `<t>.` followed by the raw body. The key id names a credential version, never key material."
    },
    {
      "key": "requestId",
      "value": "",
      "description": "The request id (`request_id`) or its reference (`PA-` and ten characters)."
    },
    {
      "key": "connectionId",
      "value": "",
      "description": "The sandbox connection id (`connection_id`)."
    }
  ]
}
