---
updatedAt: 2026-08-10T12:21:58.000Z
agentTools:
  projectIndex: https://monta-partner-api.readme.io/llms.txt
---

# Get a nested team by nested team relation id

Required scope: `team-members:read` </br>Organization authorization: `supported`

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Monta API",
    "description": "\n             see https://docs.partner-api.monta.com\n             ",
    "contact": {
      "name": "Monta API Support",
      "url": "https://www.monta.com/uk/contact",
      "email": "partner-api@monta.com"
    },
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://partner-api.monta.com",
      "description": "Production"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "Nested teams"
    }
  ],
  "paths": {
    "/api/v1/nested-teams/{relationId}": {
      "get": {
        "tags": [
          "Nested teams"
        ],
        "summary": "Get a nested team by nested team relation id",
        "description": "Required scope: `team-members:read` </br>Organization authorization: `supported`",
        "operationId": "getNestedTeam",
        "parameters": [
          {
            "name": "relationId",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 0,
              "exclusiveMinimum": true,
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Nested team relation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NestedTeam"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "status": "BAD_REQUEST",
                    "message": "Invalid request",
                    "errorCode": "BAD_REQUEST"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Consumer with provided credentials was not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "status": "UNAUTHORIZED",
                    "message": "Consumer with given `clientId` and `clientSecret` not found",
                    "errorCode": "CONSUMER_NOT_FOUND"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Operator doesn't have access to resource",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "status": "FORBIDDEN",
                    "message": "Operator doesn't have access to resource",
                    "errorCode": "ACCESS_FORBIDDEN"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Entity with the provided id was not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "status": "NOT_FOUND",
                    "message": "Requested entity/entity provided in body was not found",
                    "readableMessage": "user friendly message",
                    "errorCode": "RESOURCE_NOT_FOUND",
                    "context": "context"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAccessToken": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "NestedTeam": {
        "required": [
          "access",
          "createdAt",
          "parentTeam",
          "state",
          "userRole"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Id of the nested team relation",
            "format": "int64",
            "example": 1
          },
          "parentTeam": {
            "description": "Parent team, the one who sends the invite",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicTeam"
              }
            ]
          },
          "nestedTeam": {
            "description": "Parent team, the one who receives the invite",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicTeam"
              }
            ]
          },
          "priceGroup": {
            "description": "Price group applied to the nested team",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PriceGroup"
              }
            ]
          },
          "invitedByUser": {
            "description": "User who requested the invitation",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicUser_1"
              }
            ]
          },
          "userRole": {
            "type": "string",
            "description": "The role assigned to the nested team",
            "example": "user",
            "enum": [
              "user"
            ]
          },
          "access": {
            "description": "Access to parent team CPs / sites: to all or selected charge points and/or sites",
            "example": "all",
            "allOf": [
              {
                "$ref": "#/components/schemas/TeamMemberAccess"
              }
            ]
          },
          "state": {
            "description": "State of the nested team invitation",
            "example": "accepted",
            "allOf": [
              {
                "$ref": "#/components/schemas/TeamMemberState"
              }
            ]
          },
          "selectedChargePointIds": {
            "type": "array",
            "description": "Selected charge points nested team has access to",
            "nullable": true,
            "example": [
              41,
              72,
              93
            ],
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "note": {
            "type": "string",
            "description": "Internal note for this nested team",
            "nullable": true,
            "example": "Internal note placeholder"
          },
          "createdAt": {
            "type": "string",
            "description": "Datetime of the creation of nested team invite",
            "format": "date-time",
            "example": "2022-07-27T18:11:41Z"
          },
          "updatedAt": {
            "type": "string",
            "description": "Datetime of the update of nested team invite",
            "format": "date-time",
            "nullable": true,
            "example": "2022-07-28T18:11:41Z"
          },
          "invitedAt": {
            "type": "string",
            "description": "Datetime nested team was invited",
            "format": "date-time",
            "nullable": true,
            "example": "2022-07-28T18:11:41Z"
          }
        }
      },
      "PriceGroup": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Id of the price group",
            "format": "int64",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Name of the price group",
            "example": "Standard Pricing"
          }
        }
      },
      "PublicTeam": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Id of the public team",
            "format": "int64",
            "example": 1
          },
          "publicName": {
            "type": "string",
            "description": "Public name of the team",
            "nullable": true,
            "example": "Example Team"
          },
          "memberCount": {
            "type": "integer",
            "description": "Number of members in the team",
            "format": "int64",
            "nullable": true,
            "example": 10
          }
        }
      },
      "PublicUser_1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Id of the user",
            "format": "int64",
            "example": 1
          },
          "firstName": {
            "type": "string",
            "description": "First name of the user",
            "nullable": true,
            "example": "John"
          },
          "lastName": {
            "type": "string",
            "description": "Last name of the user",
            "nullable": true,
            "example": "Doe"
          },
          "displayName": {
            "type": "string",
            "description": "Display name of the user",
            "nullable": true,
            "example": "johndoe123"
          }
        }
      },
      "TeamMemberAccess": {
        "type": "string",
        "enum": [
          "all",
          "selected"
        ]
      },
      "TeamMemberState": {
        "type": "string",
        "enum": [
          "requested",
          "invited",
          "accepted",
          "rejected_at",
          "blocked",
          "expired"
        ],
        "x-enum-varnames": [
          "REQUESTED",
          "INVITED",
          "ACCEPTED",
          "REJECTED",
          "BLOCKED",
          "EXPIRED"
        ]
      }
    },
    "securitySchemes": {
      "BearerAccessToken": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-stability-level": "stable"
}
```