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

# Redeem a consent

> Grantee reads the shared data with the opaque token only — no API key required.



## OpenAPI

````yaml /openapi.json get /v1/consents/{id}/data
openapi: 3.1.0
info:
  title: Swippee API
  version: 1.0.0
  description: >-
    Convert Nepali bank statement PDFs into structured financial data, derive
    lending products from a parse, and read Nepal's public-sector financial
    datasets — over one REST API.
servers:
  - url: https://api.swippee.com
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/consents/{id}/data:
    get:
      tags:
        - Consents
      summary: Redeem a consent
      description: >-
        Grantee reads the shared data with the opaque token only — no API key
        required.
      operationId: redeemConsent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: token
          in: query
          required: true
          schema:
            type: string
          example: swcon_...
      responses:
        '200':
          description: Shared data
          content:
            application/json:
              schema:
                type: object
                properties:
                  scopes:
                    type: array
                    items:
                      type: string
                  data:
                    type: object
        '403':
          description: Consent inactive or expired
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your API key from the dashboard, sent as `Authorization: Bearer
        swippee_sk_live_...`.

````