PageWeave Access API

The Access API from PageWeave — 7 operation(s) for access.

GitHub OpenAPI

Operations 12

GET /api/v1/websites/{website_id}/accesses List explicit website grants #
POST /api/v1/websites/{website_id}/accesses Grant website access directly #
PATCH /api/v1/websites/{website_id}/accesses/{id} Change a grant's role #
DELETE /api/v1/websites/{website_id}/accesses/{id} Revoke a grant #
GET /api/v1/websites/{website_id}/access_invitations List website access invitations #
POST /api/v1/websites/{website_id}/access_invitations Invite someone to the website #
DELETE /api/v1/websites/{website_id}/access_invitations/{id} Cancel a website invitation #
POST /api/v1/websites/{website_id}/access_invitations/{id}/resend Resend a website invitation #
GET /api/v1/websites/{website_id}/environments/{environment_id}/accesses List environment grants #
POST /api/v1/websites/{website_id}/environments/{environment_id}/accesses Grant a role on one environment #
PATCH /api/v1/websites/{website_id}/environments/{environment_id}/accesses/{id} Change an environment grant's role #
DELETE /api/v1/websites/{website_id}/environments/{environment_id}/accesses/{id} Revoke an environment grant #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pageweave-dev:pageweave-dev-access-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pageweave-dev-access-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PageWeave Access API
  version: 1.0.0
  summary: Programmatic control plane for PageWeave websites.
  description: 'Version 1 of the PageWeave HTTP API. Every endpoint under `/api/v1`

    authenticates with a bearer API key unless its operation declares an

    anonymous alternative — `security: []` or an optional requirement such as

    `[{bearerAuth: []}, {}]` for upload sessions.


    Errors use RFC 9457 Problem Details (`application/problem+json`). Rate

    limits follow draft-ietf-httpapi-ratelimit-headers-11 and are reported on

    every authenticated response through the `RateLimit-Policy` and

    `RateLimit` headers.


    The contract is additive within v1: operations and response fields may be

    added, never removed or changed incompatibly.'
  contact:
    name: PageWeave
    url: https://pageweave.dev/docs/api
  externalDocs:
    description: Guide, authentication, pagination, errors, and worked examples.
    url: https://pageweave.dev/docs/api/guide
servers:
- url: https://pageweave.dev
  description: Production
tags:
- name: Access
paths:
  /api/v1/websites/{website_id}/accesses:
    parameters:
    - name: website_id
      in: path
      required: true
      description: Website UUID or subdomain.
      schema:
        type: string
    get:
      operationId: listWebsiteAccesses
      summary: List explicit website grants
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: website.access.read
      x-required-scope: website
      x-required-credential: read
      parameters:
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: A page of grants
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteAccessesCollection'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
    post:
      operationId: createWebsiteAccess
      summary: Grant website access directly
      description: 'Targets an existing user by id or email. Unlike an email invitation, a

        direct grant may override a workspace member''s implicit role on this

        website. Self-grants are refused.'
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: website.access.manage
      x-required-scope: website
      x-required-credential: write
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebsiteAccessCreateRequest'
      responses:
        '201':
          description: The created grant
          headers:
            Location:
              $ref: '#/components/headers/Location'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteAccess'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /api/v1/websites/{website_id}/accesses/{id}:
    parameters:
    - name: website_id
      in: path
      required: true
      description: Website UUID or subdomain.
      schema:
        type: string
    - name: id
      in: path
      required: true
      description: Access grant identifier.
      schema:
        type: string
        format: uuid
    patch:
      operationId: updateWebsiteAccess
      summary: Change a grant's role
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: website.access.manage
      x-required-scope: website
      x-required-credential: write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebsiteAccessUpdateRequest'
      responses:
        '200':
          description: The updated grant
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteAccess'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
    delete:
      operationId: deleteWebsiteAccess
      summary: Revoke a grant
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: website.access.manage
      x-required-scope: website
      x-required-credential: write
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /api/v1/websites/{website_id}/access_invitations:
    parameters:
    - name: website_id
      in: path
      required: true
      description: Website UUID or subdomain.
      schema:
        type: string
    get:
      operationId: listAccessInvitations
      summary: List website access invitations
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: website.access.read
      x-required-scope: website
      x-required-credential: read
      parameters:
      - name: status
        in: query
        required: false
        description: Invitation state (default `pending`).
        schema:
          type: string
          enum:
          - pending
          - expired
          - undelivered
          - revoked
          - responded
          - all
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: A page of invitations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessInvitationsCollection'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
    post:
      operationId: createAccessInvitation
      summary: Invite someone to the website
      description: Sends an email. Users who already have access cannot be invited (no silent demotion). A live invitation for the email answers `409` — cancel it before changing the role. An undelivered invitation is re-sent (`200`); an expired one is superseded by a new invitation (`201`).
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: website.access.manage
      x-required-scope: website
      x-required-credential: write
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessInvitationCreateRequest'
      responses:
        '200':
          description: The existing invitation was re-sent (the previous delivery never left)
          headers:
            Location:
              $ref: '#/components/headers/Location'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessInvitation'
        '201':
          description: The created invitation
          headers:
            Location:
              $ref: '#/components/headers/Location'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessInvitation'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /api/v1/websites/{website_id}/access_invitations/{id}:
    parameters:
    - name: website_id
      in: path
      required: true
      description: Website UUID or subdomain.
      schema:
        type: string
    - name: id
      in: path
      required: true
      description: Invitation identifier.
      schema:
        type: string
        format: uuid
    delete:
      operationId: deleteAccessInvitation
      summary: Cancel a website invitation
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: website.access.manage
      x-required-scope: website
      x-required-credential: write
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /api/v1/websites/{website_id}/access_invitations/{id}/resend:
    parameters:
    - name: website_id
      in: path
      required: true
      description: Website UUID or subdomain.
      schema:
        type: string
    - name: id
      in: path
      required: true
      description: Invitation identifier.
      schema:
        type: string
        format: uuid
    post:
      operationId: resendAccessInvitation
      summary: Resend a website invitation
      description: Revalidates the grant before emailing; resets the seven-day window. Answers `409` when the invitation is revoked or answered between load and send.
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: website.access.manage
      x-required-scope: website
      x-required-credential: write
      responses:
        '200':
          description: The re-sent invitation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessInvitation'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /api/v1/websites/{website_id}/environments/{environment_id}/accesses:
    parameters:
    - name: website_id
      in: path
      required: true
      description: Website UUID or subdomain.
      schema:
        type: string
    - name: environment_id
      in: path
      required: true
      description: Environment UUID or name.
      schema:
        type: string
    get:
      operationId: listEnvironmentAccesses
      summary: List environment grants
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: environment.access.read
      x-required-scope: environment
      x-required-credential: read
      parameters:
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: A page of environment grants
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentAccessesCollection'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
    post:
      operationId: createEnvironmentAccess
      summary: Grant a role on one environment
      description: The role must be website-scoped, and the user must already reach the website.
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: environment.access.manage
      x-required-scope: environment
      x-required-credential: write
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnvironmentAccessCreateRequest'
      responses:
        '201':
          description: The created grant
          headers:
            Location:
              $ref: '#/components/headers/Location'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentAccess'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /api/v1/websites/{website_id}/environments/{environment_id}/accesses/{id}:
    parameters:
    - name: website_id
      in: path
      required: true
      description: Website UUID or subdomain.
      schema:
        type: string
    - name: environment_id
      in: path
      required: true
      description: Environment UUID or name.
      schema:
        type: string
    - name: id
      in: path
      required: true
      description: Environment access identifier.
      schema:
        type: string
        format: uuid
    patch:
      operationId: updateEnvironmentAccess
      summary: Change an environment grant's role
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: environment.access.manage
      x-required-scope: environment
      x-required-credential: write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnvironmentAccessUpdateRequest'
      responses:
        '200':
          description: The updated grant
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentAccess'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
    delete:
      operationId: deleteEnvironmentAccess
      summary: Revoke an environment grant
      tags:
      - Access
      security:
      - bearerAuth: []
      x-required-permission: environment.access.manage
      x-required-scope: environment
      x-required-credential: write
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  headers:
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
    ETag:
      description: Strong validator for the current representation.
      schema:
        type: string
    Location:
      description: Canonical URL of the created or affected resource.
      schema:
        type: string
        format: uri
    WWWAuthenticate:
      description: 'Bearer challenge (RFC 9110 §11.6.1, RFC 6750 §3).

        Carries `error="invalid_token"` when a credential was presented but

        could not be resolved. `/api/v1` uses the `api` realm; OAuth

        protected-resource metadata (RFC 9728) is advertised by MCP only.

        '
      schema:
        type: string
        example: Bearer realm="api", error="invalid_token"
    RateLimitPolicy:
      description: 'The applicable quota policy (draft-ietf-httpapi-ratelimit-headers-11).

        '
      schema:
        type: string
        example: '"write";q=120;w=60'
    RateLimit:
      description: 'The remaining quota and seconds until the window resets

        (draft-ietf-httpapi-ratelimit-headers-11).

        '
      schema:
        type: string
        example: '"write";r=119;t=42'
  responses:
    Conflict:
      description: The request conflicts with the current state (replayed key, in-progress operation)
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    UnsupportedMediaType:
      description: Request bodies must use application/json
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    TooManyRequests:
      description: A rate limit was exceeded
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimitPolicy'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Unauthorized:
      description: Missing, invalid, expired, or revoked credential
      headers:
        WWW-Authenticate:
          $ref: '#/components/headers/WWWAuthenticate'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Unprocessable:
      description: The payload could not be processed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    BadRequest:
      description: The request is malformed or carries unknown query parameters
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Forbidden:
      description: The session, credential, or role does not permit the action
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    NotFound:
      description: The resource does not exist or is not visible to this caller
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    NoContent:
      description: The action succeeded and has no body
  schemas:
    WebsiteAccess:
      type: object
      additionalProperties: false
      required:
      - id
      - role
      - user
      - grantor
      - created_at
      - updated_at
      properties:
        id:
          type: string
          format: uuid
        role:
          type: string
        user:
          $ref: '#/components/schemas/UserSummary'
        grantor:
          $ref: '#/components/schemas/UserSummary'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    EnvironmentAccessUpdateRequest:
      type: object
      additionalProperties: false
      required:
      - role
      properties:
        role:
          type: string
    WebsiteAccessUpdateRequest:
      type: object
      additionalProperties: false
      required:
      - role
      properties:
        role:
          type: string
    AccessInvitationsCollection:
      type: object
      additionalProperties: false
      required:
      - data
      - pagination
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/AccessInvitation'
        pagination:
          $ref: '#/components/schemas/Pagination'
    Problem:
      type: object
      example:
        type: https://pageweave.dev/errors/forbidden
        title: Forbidden
        status: 403
        detail: The API key lacks the page.create permission for this website.
        instance: /api/v1/websites/019f9c2a-6a1b-7a3d-8f2e-4b6c8d0e1f23/pages
        request_id: 019fc8e5-8f6a-9b7c-8d85-4f6a7b8c9d0e
        required_permission: page.create
        required_permission_scope: website
        required_credential_scope: write
      required:
      - type
      - title
      - status
      - instance
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
        request_id:
          type:
          - string
          - 'null'
        errors:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
            - field
            - detail
            properties:
              field:
                type: string
              detail:
                type: string
              code:
                type: string
        upgrade_url:
          type: string
        required_permission:
          type:
          - string
          - 'null'
          description: Declared endpoint permission; null for account-level endpoints with no resource permission.
        required_permission_scope:
          type:
          - string
          - 'null'
          description: Scope the permission resolves in (workspace, website, environment); null when there is no resource permission.
        required_credential_scope:
          type:
          - string
          - 'null'
          description: The read/write scope the presented bearer credential lacks; present on credential-ceiling 403s.
        retry_after_seconds:
          type: integer
          minimum: 1
          description: Seconds until the quota resets (RFC 9457 extension member, on too-many-requests only). Authoritative over retry_at when clocks differ.
        retry_at:
          type: string
          format: date-time
          description: UTC "not before" timestamp — when the quota window ends (RFC 9457 extension member, on too-many-requests only).
        suggested_path:
          type: string
          description: First free path for a restore whose original path is taken, when one can be suggested (RFC 9457 extension member; nothing is renamed automatically).
        template_pages:
          type: array
          description: Live template pages that reference a table whose deletion was refused (RFC 9457 extension member).
          items:
            type: object
            additionalProperties: false
            required:
            - id
            - path
            properties:
              id:
                type: string
                format: uuid
              path:
                type: string
        conflicts:
          type: array
          description: Release items edited by someone else after the caller's last edit (RFC 9457 extension member).
          items:
            type: object
            additionalProperties: false
            required:
            - type
            - identifier
            - mine_version
            - latest_version
            - latest_author
            properties:
              type:
                type: string
              identifier:
                type: string
              mine_version:
                type: integer
              latest_version:
                type: integer
              latest_author:
                type:
                - string
                - 'null'
        matches:
          type: array
          description: Candidate short ids for an ambiguous feedback reference (RFC 9457 extension member).
          items:
            type: string
        items:
          type: array
          description: Identifiers that made a release selection invalid (RFC 9457 extension member).
          items:
            type: string
        nameservers:
          type: array
          description: Live parent NS answer that still delegates a zone to PageWeave, sent with a refused zone deletion (RFC 9457 extension member).
          items:
            type: string
        existing_id:
          type: string
          format: uuid
          description: Identifier of the existing resource that caused a conflict, such as a pending invitation (RFC 9457 extension member).
    WebsiteAccessCreateRequest:
      type: object
      additionalProperties: false
      required:
      - role
      anyOf:
      - required:
        - email
      - required:
        - user_id
      properties:
        role:
          type: string
        email:
          type: string
        user_id:
          type: string
          format: uuid
    UserSummary:
      type: object
      additionalProperties: false
      required:
      - id
      - name
      - email
      properties:
        id:
          type: string
          format: uuid
        name:
          type:
          - string
          - 'null'
        email:
          type: string
    EnvironmentAccessCreateRequest:
      type: object
      additionalProperties: false
      required:
      - role
      anyOf:
      - required:
        - email
      - required:
        - user_id
      properties:
        role:
          type: string
        email:
          type: string
        user_id:
          type: string
          format: uuid
    AccessInvitationCreateRequest:
      type: object
      additionalProperties: false
      required:
      - email
      - role
      properties:
        email:
          type: string
        role:
          type: string
    EnvironmentAccess:
      type: object
      additionalProperties: false
      required:
      - id
      - role
      - environment_id
      - user
      - grantor
      - created_at
      - updated_at
      properties:
        id:
          type: string
          format: uuid
        role:
          type: string
        environment_id:
          type: string
          format: uuid
        user:
          $ref: '#/components/schemas/UserSummary'
        grantor:
          $ref: '#/components/schemas/UserSummary'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    WebsiteAccessesCollection:
      type: object
      additionalProperties: false
      required:
      - data
      - pagination
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/WebsiteAccess'
        pagination:
          $ref: '#/components/schemas/Pagination'
    EnvironmentAccessesCollection:
      type: object
      additionalProperties: false
      required:
      - data
      - pagination
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/EnvironmentAccess'
        pagination:
          $ref: '#/components/schemas/Pagination'
    Pagination:
      type: object
      additionalProperties: false
      required:
      - limit
      - has_more
      - next_cursor
      properties:
        limit:
          type: integer
          minimum: 0
        has_more:
          type: boolean
        next_cursor:
          type:
          - string
          - 'null'
    AccessInvitation:
      type: object
      additionalProperties: false
      required:
      - id
      - email
      - role
      - response
      - status
      - expires_at
      - sent_at
      - revoked_at
      - created_at
      - grantor
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
        role:
          type: string
        response:
          type:
          - string
          - 'null'
          enum:
          - accepted
          - denied
          - null
        status:
          type: string
          enum:
          - pending
          - expired
          - undelivered
          - revoked
          - responded
        sent_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When the transport accepted the invitation email; null while undelivered.
        revoked_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When the invitation was cancelled or superseded; null while open.
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
          description: Seven days after the last successful send; null while undelivered.
        created_at:
          type: string
          format: date-time
        grantor:
          $ref: '#/components/schemas/UserSummary'
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: 'Replay-safe key for POST, including bodyless action POSTs such as

        revert (1-255 printable ASCII characters,

        draft-ietf-httpapi-idempotency-key-header-08). A replay returns the

        stored response with `Idempotent-Replayed: true`.


        Responses up to 64 KB are stored and replayed in full. Larger responses

        keep only status and headers; their replay is bodyless and carries

        `Idempotent-Replay-Body-Omitted: true` (follow `Location`). Each user

        may hold 10,000 unexpired records across credentials; a new key past

        the cap returns 429 with `Retry-After`, while an existing key still

        replays.

        '
      schema:
        type: string
        minLength: 1
        maxLength: 255
    Limit:
      name: limit
      in: query
      required: false
      description: Page size (1-100, default 25).
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
    Cursor:
      name: cursor
      in: query
      required: false
      description: Opaque keyset cursor from the previous page's `pagination.next_cursor`.
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key created in Settings → API keys. Send

        `Authorization: Bearer pagew_...`. A key''s scopes (`read`, `write`) are

        a ceiling: a read-only key cannot write even when its owner''s role

        allows it.

        '