Docs

List tenant endpoints

List the endpoints currently visible to your application in one tenant, including route information for endpoints owned by your application.

Returns the current list of endpoints visible to your application in one already-known tenant, together with capability information. For endpoints owned by your application, the response also includes route-derived can_send_to and can_receive_from maps describing which other endpoints they can exchange which message types with.

Use this operation to inspect or refresh endpoint information for a single tenant, for example when you cannot or do not want to persist the data carried by ENDPOINTS_LIST_CHANGED, or when your frontend does not have access to that data. It is not intended as the primary application-startup or global re-sync operation; for that, use GET /tenants, which returns all currently authorized tenants together with their related endpoints.

GET
/tenants/{tenantId}/endpoints

Authorization

AuthorizationBearer <token>

Agrirouter OAuth2 authentication for QA environment.

In: header

Path Parameters

tenantId*string

The farmer's tenant ID in relation to which this operation is performed.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.agrirouter.com/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/endpoints"
{
  "endpoints": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "external_id": "string",
      "name": "string",
      "endpoint_type": "cloud_software",
      "application_id": "48ac72d0-a829-4896-a067-dcb1c2b0f30c",
      "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
      "owned_by_your_application": true,
      "capabilities": {
        "can_send": [
          "string"
        ],
        "can_receive": [
          "string"
        ]
      },
      "routed_endpoints": {
        "can_send_to": {
          "property1": [
            "iso:11783:-10:taskdata:zip"
          ],
          "property2": [
            "iso:11783:-10:taskdata:zip"
          ]
        },
        "can_receive_from": {
          "property1": [
            "iso:11783:-10:taskdata:zip"
          ],
          "property2": [
            "iso:11783:-10:taskdata:zip"
          ]
        }
      }
    }
  ]
}