---
title: "Approve an access request"
method: POST
path: "/v1/spaces/{spaceId}/access-requests/{requestId}/approve"
tags: ["Access"]
---

# Approve an access request

`POST /v1/spaces/{spaceId}/access-requests/{requestId}/approve`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/spaces/{spaceId}/access-requests/{requestId}/approve`
- Auth: HTTP bearer

Approves a pending request and adds the requester to the space's people with a live-site grant. A `commenter` role needs the Space's comments surface set to `everywhere`; under `previews` (the default) approve as `viewer`, or get 422 `comments_target_unavailable`.

## Path parameters

- `spaceId` string, required
- `requestId` string, required

## Request body

- object
  - `scope` string
  - `role` 'viewer' | 'commenter' | 'editor' | 'manager'

## Response `200`

Response for status 200

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object, required
    - `id` string, required
    - `spaceId` string, required
    - `displayName` string, nullable, required
    - `email` string, email, required
    - `scope` string, required
    - `requestedRole` 'viewer' | 'commenter' | 'editor' | 'manager', required
    - `message` string, nullable, required
    - `status` 'verification_pending' | 'pending' | 'approved' | 'denied' | 'canceled' | 'expired', required
    - `emailVerifiedAt` string, date-time, nullable, required
    - `resolvedBy` string, nullable, required
    - `resolvedAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

[API](https://skmtc.dev/spacefast/apis/spacefast-api.md) · [All operations](https://skmtc.dev/spacefast/apis/spacefast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spacefast/apis/spacefast-api/revisions/bd165bc7c983?raw)
