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

# Ler espaço

> Um espaço: projeto, ambiente, região e endereço.



## OpenAPI

````yaml openapi/pt/control.json GET /v1/spaces/{space_id}
openapi: 3.1.0
info:
  title: API de controle da Niadra
  version: '1'
  description: >-
    Tenants, projetos, fontes, chaves, pessoas, configuração e uso. Nunca recebe
    conteúdo de cliente.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/spaces/{space_id}:
    get:
      summary: Ler espaço
      description: >-
        Um espaço: projeto, ambiente, região, slug e a célula que o atende. O
        endereço do espaço é `https://<slug>.<region>.api.niadra.com`.


        **Autenticação.** Token de pessoa emitido pelo controle (`Authorization:
        Bearer <JWT>`), com o papel que a operação pede.
      operationId: get_space_v1_spaces__space_id__get
      parameters:
        - in: path
          name: space_id
          required: true
          schema:
            format: uuid
            title: Space Id
            type: string
          example: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpaceOut'
              example:
                space_id: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23
                project_id: 0192f0a0-2c3d-7e4f-9a50-6b7c8d9e0f12
                environment: production
                slug: acme-prod
                region: us-east-1
                cell_id: cell-1
          description: O espaço.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      security:
        - personToken: []
components:
  schemas:
    SpaceOut:
      additionalProperties: false
      properties:
        cell_id:
          title: Cell Id
          type: string
        environment:
          $ref: '#/components/schemas/Environment'
        project_id:
          format: uuid
          title: Project Id
          type: string
        region:
          title: Region
          type: string
        slug:
          title: Slug
          type: string
        space_id:
          format: uuid
          title: Space Id
          type: string
      required:
        - space_id
        - project_id
        - environment
        - slug
        - region
        - cell_id
      title: SpaceOut
      type: object
    Problem:
      additionalProperties: false
      description: >-
        Detalhes do problema no formato da RFC 9457; `code` vem do catálogo de
        erros versionado.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    Environment:
      enum:
        - sandbox
        - production
      title: Environment
      type: string
  securitySchemes:
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````