> ## Documentation Index
> Fetch the complete documentation index at: https://developers.qomon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a team

> Returns the team with the given ID.



## OpenAPI

````yaml /src/autogen/users-openapi3.0.yaml get /teams/{id}
openapi: 3.1.0
info:
  description: >-
    This OpenAPI 3.1 specification describes the public API of the Qomon
    platform. It is generated from the code and serves both as documentation for
    API consumers and as a contract for future development.
  title: Qomon API Reference
  version: 0.0.1
servers:
  - description: Production
    url: https://incoming.qomon.app
security:
  - bearerAuth: []
tags:
  - description: List and manage users in the current space.
    name: Users
  - description: Create, read, update and delete teams.
    name: Teams
  - description: List roles available in the current space.
    name: Roles
  - description: Invite users by email and manage their invitations.
    name: Invitations
  - description: Send global messages to teams.
    name: Notifications
paths:
  /teams/{id}:
    get:
      tags:
        - Teams
      summary: Retrieve a team
      description: Returns the team with the given ID.
      operationId: get-team
      parameters:
        - description: Team ID.
          in: path
          name: id
          required: true
          schema:
            description: Team ID.
            examples:
              - 1
            format: int64
            minimum: 0
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusEnvelopeTeamDataWrapper'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
components:
  schemas:
    StatusEnvelopeTeamDataWrapper:
      additionalProperties: true
      properties:
        data:
          $ref: '#/components/schemas/TeamDataWrapper'
        status:
          description: Operation result.
          examples:
            - success
          type: string
      required:
        - status
        - data
      type: object
    ErrorModel:
      additionalProperties: true
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    TeamDataWrapper:
      additionalProperties: true
      properties:
        team:
          $ref: '#/components/schemas/Team'
      required:
        - team
      type: object
    ErrorDetail:
      additionalProperties: true
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    Team:
      additionalProperties: true
      properties:
        address:
          $ref: '#/components/schemas/Address'
        created_at:
          format: date-time
          type: string
        description:
          description: Free-form description.
          type: string
        hide_users:
          description: When true, the team's users list is hidden to non-members.
          type: boolean
        id:
          description: Team ID.
          examples:
            - 101
          format: int64
          minimum: 0
          type: integer
        leaders:
          items:
            $ref: '#/components/schemas/User'
          type:
            - array
            - 'null'
        name:
          description: Team display name.
          examples:
            - Team Number1
          type: string
        private:
          description: When true, the team is only visible to its members.
          type: boolean
        updated_at:
          format: date-time
          type: string
        users:
          items:
            $ref: '#/components/schemas/User'
          type:
            - array
            - 'null'
      required:
        - id
        - name
      type: object
    Address:
      additionalProperties: true
      properties:
        addition:
          description: Additional address info.
          type: string
        building:
          description: Building name or identifier.
          type: string
        building_type:
          description: Type of building.
          enum:
            - house
            - apartment
            - office
            - other
          type: string
        city:
          description: City name.
          examples:
            - Paris
          type: string
        country:
          description: Country.
          examples:
            - France
          type: string
        county:
          description: County or department.
          type: string
        door:
          description: Door or apartment identifier.
          type: string
        floor:
          description: Floor number.
          type: string
        housenumber:
          description: Street number.
          examples:
            - '12'
          type: string
        id:
          description: Unique identifier of the address.
          examples:
            - 7
          format: int64
          minimum: 0
          readOnly: true
          type: integer
        infos:
          description: Additional address information.
          type: string
        latitude:
          description: WGS-84 latitude.
          examples:
            - '48.8606'
          readOnly: true
          type: string
        location:
          description: Geocoded location string.
          examples:
            - 48.8606,2.3376
          readOnly: true
          type: string
        longitude:
          description: WGS-84 longitude.
          examples:
            - '2.3376'
          readOnly: true
          type: string
        pollingstation:
          type: string
        postalcode:
          description: Postal / ZIP code.
          examples:
            - '75001'
          type: string
        score:
          description: Address geocoding accuracy score 0-1
          format: int64
          readOnly: true
          type: integer
        state:
          description: State or region.
          type: string
        street:
          description: Street name.
          examples:
            - Rue de Rivoli
          type: string
      type: object
    User:
      additionalProperties: true
      properties:
        CreatedAt:
          description: Timestamp when the user was created.
          format: date-time
          readOnly: true
          type: string
        UpdatedAt:
          description: Timestamp when the user was last updated.
          format: date-time
          readOnly: true
          type: string
        address:
          description: Street address.
          examples:
            - 1 rue de la paix
          type: string
        avatar:
          description: Avatar URL.
          examples:
            - https://example.com/avatar.png
          format: uri
          type: string
        birthdate:
          description: Birthdate.
          format: date-time
          type: string
        city:
          description: City.
          examples:
            - Paris
          type: string
        contacts:
          description: Contacts (fiches) linked to this user account.
          items:
            $ref: '#/components/schemas/ContactRef'
          type:
            - array
            - 'null'
        created:
          description: Legacy creation timestamp returned by the upstream service.
          format: date-time
          readOnly: true
          type: string
        firstname:
          description: First name.
          examples:
            - John
          type: string
        group_id:
          description: IDs of groups the user belongs to.
          items:
            format: int64
            type: integer
          type:
            - array
            - 'null'
        id:
          description: Unique identifier of the user.
          examples:
            - 101
          format: int64
          readOnly: true
          type: integer
        locale:
          description: Locale language.
          examples:
            - en
          type: string
        location:
          description: Geographic position as lat,lon string.
          examples:
            - 1.826483,-1.549486
          type: string
        mail:
          description: Email address.
          examples:
            - john.doe@example.com
          format: email
          type: string
        phone:
          description: Phone number.
          examples:
            - '0123456789'
          type: string
        postal:
          description: Postal code.
          examples:
            - '75000'
          type: string
        role_data:
          $ref: '#/components/schemas/Role'
          description: User role.
        status:
          description: >-
            User status. Comma-separated list of strings. Values:
            'available_week_morning,available_week_night,available_holidays,available_weekend,not_set'.
          examples:
            - available_week_morning,available_weekend
          type: string
        surname:
          description: Last name.
          examples:
            - Doe
          type: string
        two_factor_enable:
          description: Indicates if two-factor authentication is enabled.
          type: boolean
        two_factor_method:
          description: Two-factor authentication method.
          enum:
            - email
            - totp
          type: string
      type: object
    ContactRef:
      additionalProperties: true
      properties:
        id:
          description: Unique identifier of the contact.
          examples:
            - 42
          format: int64
          minimum: 0
          type: integer
      required:
        - id
      type: object
    Role:
      additionalProperties: true
      properties:
        color:
          description: Role colour as a hex string.
          examples:
            - '#DF0D73'
          type: string
        id:
          description: Role ID.
          format: int64
          minimum: 0
          type: integer
        mobile:
          description: Whether the role has mobile access.
          type: boolean
        name:
          description: Role name.
          type: string
        order:
          description: Display order for roles in role management view.
          format: int64
          minimum: 0
          type: integer
        type:
          description: Role type.
          enum:
            - superadmin
            - admin
            - manager
            - user
            - custom
          type: string
        web:
          description: Whether the role has web access.
          type: boolean
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: opaque
      description: >-
        OAuth2 access token. Pass the token in the Authorization header as
        `Bearer <token>`. The token is looked up in Redis to resolve the caller
        identity.
      scheme: bearer
      type: http

````