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

# Get public share metadata

> Returns the share's metadata (expiry, view count, whether a password is required) without consuming a view. Public endpoint, no authentication required.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/share/{token}/meta
openapi: 3.0.3
info:
  title: Enkryptify API
  version: 1.0.0
  description: >-
    REST API for Enkryptify. Manage secrets, projects, teams and workspaces.
    Authenticate with an `ek_live_` API token via the `Authorization: Bearer`
    header. See https://docs.enkryptify.com/api-reference/introduction.
servers:
  - url: http://localhost:8080
    description: Production
security: []
tags:
  - name: auth
    description: Token exchange and authentication for API access.
  - name: workspace
    description: Workspaces group your projects, teams and members.
  - name: project
    description: Projects organize secrets per application or service.
  - name: team
    description: Teams scope which members can access which projects.
  - name: secret
    description: Read, create, update and delete secret values.
  - name: secret-share
    description: Create and consume time-bound encrypted secret shares.
  - name: tokens
    description: Manage API tokens for programmatic access.
  - name: sync
    description: Manage integrations that sync secrets to external systems.
  - name: me
    description: Inspect the authenticated user, sessions and preferences.
  - name: oidc
    description: Workspace-scoped OpenID Connect identity federation.
paths:
  /v1/share/{token}/meta:
    get:
      tags:
        - secret-share
      summary: Get public share metadata
      description: >-
        Returns the share's metadata (expiry, view count, whether a password is
        required) without consuming a view. Public endpoint, no authentication
        required.
      operationId: getPublicShareMeta
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^[a-f0-9]+$
          in: path
          name: token
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  requiresPassword:
                    type: boolean
                  expiresAt:
                    type: string
                  viewsUsed:
                    type: number
                  maxViews:
                    nullable: true
                    type: number
                  secretCount:
                    type: number
                  environmentName:
                    type: string
                  projectName:
                    type: string
                  status:
                    type: string
                    enum:
                      - active
                      - expired
                      - revoked
                      - exhausted
                required:
                  - requiresPassword
                  - expiresAt
                  - viewsUsed
                  - maxViews
                  - secretCount
                  - environmentName
                  - projectName
                  - status
                additionalProperties: false
      security: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl -X GET 'http://localhost:8080/v1/share/share_example/meta' \
              -H 'Authorization: Bearer ek_live_xxxxx'
        - lang: javascript
          label: TypeScript
          source: >-
            const response = await
            fetch('http://localhost:8080/v1/share/share_example/meta', {
              method: 'GET',
              headers: {
                Authorization: 'Bearer ek_live_xxxxx',
              },
            });


            const data = await response.json();
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'http://localhost:8080/v1/share/share_example/meta',
                headers={
                    'Authorization': 'Bearer ek_live_xxxxx',
                },
            )

            data = response.json()

````