> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.velocity.shop/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve team



## OpenAPI

````yaml /openapi.yaml get /alignments/{id}/
openapi: 3.0.3
info:
  title: Velocity Merchant API
  version: 1.0.0
servers:
  - url: https://api.velocity.shop
security: []
paths:
  /alignments/{id}/:
    get:
      tags:
        - Teams
      summary: Retrieve team
      operationId: alignments_retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Alignment'
          description: ''
      security:
        - merchantApiToken: []
components:
  schemas:
    Alignment:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        edit_session_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            The ID of the team's open edit session, or null when the team has no
            unpublished changes.
        edit_session:
          allOf:
            - $ref: '#/components/schemas/AlignmentEditSession'
          nullable: true
          description: >-
            An open editing session for a team. Edits are staged on a draft copy
            of the team and do not affect commission until the session is
            published.
        is_production:
          type: boolean
          description: >-
            Whether this is a live team, rather than an edit session's draft
            copy.
        rep_count:
          type: integer
        promoted_at:
          type: string
          format: date-time
          nullable: true
        rep_levels:
          type: array
          items:
            $ref: '#/components/schemas/RepLevel'
          description: Ordered from the top of the hierarchy down.
        categories:
          type: array
          items:
            $ref: '#/components/schemas/ThinCategory'
      required:
        - categories
        - id
        - is_production
        - name
        - rep_count
        - rep_levels
    AlignmentEditSession:
      type: object
      properties:
        id:
          type: string
          format: uuid
        production_alignment_id:
          type: string
          format: uuid
          description: The published team this session edits.
        staging_alignment_id:
          type: string
          format: uuid
          description: >-
            The draft copy of the team holding the unpublished changes. It can
            be read with the retrieve and hierarchy endpoints.
        modified:
          type: string
          format: date-time
          description: When the unpublished changes were last modified.
        expires_at:
          type: string
          format: date-time
          description: When the edit session expires.
      required:
        - expires_at
        - id
        - modified
        - production_alignment_id
        - staging_alignment_id
    RepLevel:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
      required:
        - id
        - name
    ThinCategory:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
      required:
        - id
        - name
  securitySchemes:
    merchantApiToken:
      type: http
      scheme: bearer

````