Skip to Content
Xeonr Developer Docs
API SpecificationPRIVATEService Accounts

Get Service Account MCP Connection

POST
/xeonr.auth.private.v1.ServiceAccountService/GetServiceAccountMcpConnection

Returns the MCP gateway connection record of a service account and what it gives the account now.

Required scopes: auth:service-accounts:read (organisation-wide) or auth:apps:read:own (service accounts of applications owned by a team you belong to; never the auth application or an organisation-owned one)

Authorization

BearerAuth
AuthorizationBearer <token>

JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

serviceAccount?string

urn:xeonr:auth:uid:service_account:

Length1 <= length
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.ServiceAccountService/GetServiceAccountMcpConnection" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "version": "string",
  "record": {
    "teams": [
      "string"
    ],
    "allTeams": true,
    "products": {
      "property1": {
        "toolsets": [
          "string"
        ],
        "teams": [
          "string"
        ],
        "resources": [
          {
            "type": "string",
            "identifier": "string",
            "actions": [
              "string"
            ]
          }
        ]
      },
      "property2": {
        "toolsets": [
          "string"
        ],
        "teams": [
          "string"
        ],
        "resources": [
          {
            "type": "string",
            "identifier": "string",
            "actions": [
              "string"
            ]
          }
        ]
      }
    },
    "allProducts": true,
    "allToolsets": true,
    "defaultToolsets": [
      "string"
    ]
  },
  "updatedBy": "string",
  "updatedAt": "2023-01-15T01:30:15.01Z",
  "connection": {
    "grantId": "string",
    "version": "string",
    "subject": "string",
    "clientId": "string",
    "clientName": "string",
    "configured": true,
    "products": [
      {
        "key": "string",
        "name": "string",
        "audience": "string",
        "toolsets": [
          "string"
        ],
        "scopes": [
          "string"
        ],
        "teams": [
          {
            "urn": "string",
            "slug": "string",
            "name": "string"
          }
        ],
        "description": "string",
        "toolsetTeams": [
          {
            "toolset": "string",
            "teams": [
              "string"
            ]
          }
        ],
        "resources": [
          {
            "type": "string",
            "identifier": "string",
            "actions": [
              "string"
            ]
          }
        ]
      }
    ],
    "unavailable": [
      {
        "product": "string",
        "toolset": "string",
        "reason": "string",
        "scopes": [
          "string"
        ],
        "team": "string"
      }
    ],
    "subjectKind": "string"
  }
}