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

# List access requests

> Returns all data-access grant requests submitted by the API key's company in a single (non-paginated) list. Phase 1 does not implement cursor pagination; the full list is always returned with `has_more: false` and `next_cursor: null`. Filter by `status` to narrow results. Requires a valid API key (no specific scope).




## OpenAPI

````yaml /openapi.yaml get /v1/access-requests
openapi: 3.1.0
info:
  title: Vein Public API
  version: 1.0.0
  description: >
    Phase 1 of the Vein public API. Read-only access to verified portfolio
    company data with full source attribution. See PHASE_1_DESIGN.md.
servers:
  - url: https://api.vein.finance
    description: >-
      Production (key selects live vs test via vein_sk_live_/vein_sk_test_
      prefix)
security:
  - bearerAuth: []
paths:
  /v1/access-requests:
    get:
      summary: List access requests
      description: >
        Returns all data-access grant requests submitted by the API key's
        company in a single (non-paginated) list. Phase 1 does not implement
        cursor pagination; the full list is always returned with `has_more:
        false` and `next_cursor: null`. Filter by `status` to narrow results.
        Requires a valid API key (no specific scope).
      operationId: listAccessRequests
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - pending
              - approved
              - declined
              - expired
              - revoked
          description: Filter by request status.
      responses:
        '200':
          description: A list of access requests.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ListEnvelope'
                  - type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/AccessRequest'
        '401':
          $ref: '#/components/responses/AuthError'
        '429':
          $ref: '#/components/responses/RateLimit'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    ListEnvelope:
      type: object
      required:
        - object
        - data
        - has_more
        - url
      properties:
        object:
          type: string
          enum:
            - list
        data:
          type: array
          items: {}
        next_cursor:
          type:
            - string
            - 'null'
        has_more:
          type: boolean
        url:
          type: string
    AccessRequest:
      type: object
      required:
        - id
        - object
        - company_id
        - requested_scopes
        - approved_scopes
        - status
        - created_at
      description: >-
        A data-access grant request submitted by an investor to a portfolio
        company.
      properties:
        id:
          type: string
          example: ar_01jxyz
        object:
          type: string
          enum:
            - access_request
        company_id:
          type: string
          example: startup_acme
          description: The portfolio company this request targets.
        requested_scopes:
          type: array
          items:
            type: string
          example:
            - metrics:read
        approved_scopes:
          type: array
          items:
            type: string
          example:
            - metrics:read
          description: Scopes the company approved; empty until status is approved.
        status:
          type: string
          enum:
            - pending
            - approved
            - declined
            - expired
            - revoked
          example: pending
        purpose:
          type:
            - string
            - 'null'
          description: >-
            Optional human-readable explanation of why access is being
            requested.
        expires_at:
          type: string
          format: date-time
          description: When the grant expires.
        created_at:
          type: string
          format: date-time
    ErrorEnvelope:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - documentation_url
          properties:
            type:
              type: string
              enum:
                - authentication_error
                - permission_error
                - invalid_request_error
                - not_found_error
                - rate_limit_error
                - idempotency_error
                - api_error
            code:
              type: string
              example: invalid_api_key
            message:
              type: string
            request_id:
              type: string
            documentation_url:
              type: string
              format: uri
  responses:
    AuthError:
      description: Authentication failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimit:
      description: >
        Too many requests. The public API is rate limited per API key. Every
        response (not just 429s) carries the RateLimit-* headers below; on a 429
        the Retry-After header gives the seconds to wait before retrying.
      headers:
        RateLimit-Limit:
          description: Requests allowed per window for this key.
          schema:
            type: integer
            example: 120
        RateLimit-Remaining:
          description: Requests remaining in the current window.
          schema:
            type: integer
            example: 0
        RateLimit-Reset:
          description: Seconds until the current window resets.
          schema:
            type: integer
            example: 42
        Retry-After:
          description: Seconds to wait before retrying (present on 429 only).
          schema:
            type: integer
            example: 42
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    ServerError:
      description: An unexpected server-side error occurred.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: vein_sk
      description: 'Authorization: Bearer vein_sk_live_... or vein_sk_test_...'

````