client_id / client_secret pair and
exchanges it for a short-lived access token whenever it needs one.
Each credential is bound to one gateway and carries an explicit set of scopes. A
credential issued for gateway A cannot read or change anything in gateway B, even when both
belong to the same team.
Machine credentials are issued by the NeuralTrust platform (SaaS and Hybrid). Self-hosted
open-source TrustGate has no credential store — mint admin JWTs yourself as described in
Server security.
Create a credential
In the console, open Settings → Agent Gateway → Credentials, click New credential, name it after the system that will use it, and pick the scopes it needs. The client secret is displayed once. Copy it into your secret manager before closing the dialog — it is stored only as a hash and cannot be shown again. If you lose it, rotate the credential to get a new one.Scopes
Creating and deleting gateways stays a console-only operation. Grant the narrowest set that
makes your automation work.
Exchange the credential for a token
The token endpoint implements the OAuth2client_credentials grant. Credentials go in an
HTTP Basic header, or as form fields if your client cannot set one.
invalid_client error, so the endpoint
cannot be used to discover which client IDs exist.
Call the Admin API
401) rather
than minting one per request.
TrustGate rejects the request with 403 when the gateway_id in the path is not the
gateway the credential is bound to, or when the operation needs a scope the credential does
not hold. Reading a gateway that belongs to another tenant returns 404, so the response
never reveals whether it exists.