> ## 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.

# Quem sou

> O espaço, a fonte e os escopos da chave que chama, para conferir uma chave antes de ligar um agente a ela.



## OpenAPI

````yaml openapi/pt/cell.json GET /v1/sources/me
openapi: 3.1.0
info:
  title: API de dados da Niadra
  version: '1'
  description: >-
    Escrita, contexto, histórico, objetos, identidade, privacidade e governança
    de um espaço. Cada espaço tem um endereço estável, com o espaço e a região
    no nome.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: O espaço, que vem na chave de fonte.
      region:
        default: us-east-2
        description: A região do espaço, que também vem na chave.
security: []
paths:
  /v1/sources/me:
    get:
      tags:
        - sources
      summary: Quem sou
      description: >-
        Qualquer chave, sejam quais forem os escopos: o espaço, a fonte e o que
        a chave pode fazer. Sem dado de cliente.


        **Autenticação.** Qualquer chave de fonte, sejam quais forem os escopos:
        `Authorization: Bearer nia_sk_...`.
      operationId: whoami_v1_sources_me_get
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeyIdentity'
          description: Resposta de sucesso.
      security: []
components:
  schemas:
    KeyIdentity:
      additionalProperties: false
      description: >-
        `GET /v1/sources/me`: como esta chave se autentica, para conferir uma
        chave antes de ligar um agente a ela.
      properties:
        agent_memory:
          description: Se o espaço tem as notas dos próprios agentes ligadas.
          title: Agent Memory
          type: boolean
        audience:
          $ref: '#/components/schemas/Audience'
        environment:
          $ref: '#/components/schemas/Environment'
        key_id:
          title: Key Id
          type: string
        purposes:
          description: Em ordem.
          items:
            type: string
          title: Purposes
          type: array
        region:
          title: Region
          type: string
        scopes:
          description: Em ordem.
          items:
            type: string
          title: Scopes
          type: array
        source_id:
          format: uuid
          title: Source Id
          type: string
        source_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Name
        space_id:
          format: uuid
          title: Space Id
          type: string
        tenant_id:
          format: uuid
          title: Tenant Id
          type: string
        vendor:
          anyOf:
            - type: string
            - type: 'null'
          title: Vendor
        verification_ceiling:
          $ref: '#/components/schemas/Verification'
      required:
        - space_id
        - tenant_id
        - region
        - environment
        - source_id
        - key_id
        - scopes
        - audience
        - verification_ceiling
        - purposes
        - agent_memory
      title: KeyIdentity
      type: object
    Audience:
      enum:
        - customer_agent
        - internal_agent
        - human
        - reviewer
        - analyst
        - trigger_target
        - export
      title: Audience
      type: string
    Environment:
      enum:
        - sandbox
        - production
      title: Environment
      type: string
    Verification:
      description: >-
        Nível de verificação da sessão. V0 autodeclarado, V1 plausível pelo
        canal, V2 atestado pelo canal, V3 desafiado (OTP ou login), V4 conferido
        com um sistema de registro ou por um atendente. `no_customer` vale para
        tarefas sem cliente presente e só é aceito de fontes de agente interno.
      enum:
        - V0
        - V1
        - V2
        - V3
        - V4
        - no_customer
      title: Verification
      type: string

````