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

# Identify the calling key

> Returns the workspace the key belongs to and the scopes it was granted. Use it to verify a key and to discover its permissions.



## OpenAPI

````yaml /openapi.json get /v1/me
openapi: 3.0.0
info:
  title: wondeya Developer API
  description: >-
    The public REST API for building on wondeya: agents, projects, pages,
    knowledge, assets, brand, theme, usage, retrieval and chat, authenticated by
    a workspace API key (`Authorization: Bearer wdy_live_…`).
  version: 0.1.0
  contact:
    name: wondeya
    url: https://wondeya.com
    email: team@wondeya.com
  license:
    name: Proprietary
    url: https://wondeya.com/terms
servers:
  - url: https://api.wondeya.com
    description: Production
  - url: http://localhost:8080
    description: Development
security: []
tags:
  - name: Identity
  - name: Agents
  - name: Projects
  - name: Pages
  - name: Knowledge
  - name: Assets
  - name: Brand
  - name: Usage
  - name: Chat
paths:
  /v1/me:
    get:
      tags:
        - Identity
      summary: Identify the calling key
      description: >-
        Returns the workspace the key belongs to and the scopes it was granted.
        Use it to verify a key and to discover its permissions.
      operationId: PublicIdentityController_me_v1
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicIdentityDto'
        '401':
          description: >-
            `wondeya.api_key.invalid`: the key is missing, malformed, unknown,
            revoked or expired. The same answer for all, on purpose, because
            distinguishing them would be an oracle.
      security:
        - api-key: []
components:
  schemas:
    PublicIdentityDto:
      type: object
      properties:
        workspaceId:
          type: string
          description: The workspace this key belongs to.
          example: wondeya-b431
        scopes:
          description: The scopes granted to this key.
          example:
            - pages:read
            - knowledge:write
          type: array
          items:
            type: string
      required:
        - workspaceId
        - scopes
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: >-
        A workspace API key: wdy_live_… / wdy_test_…. Created at POST
        /workspaces/{tenantId}/keys and shown exactly once.

````