---
title: "Create a content dashboard sign-in link"
method: POST
path: "/v1/spaces/{spaceId}/content/admin-link"
tags: ["Spaces"]
---

# Create a content dashboard sign-in link

`POST /v1/spaces/{spaceId}/content/admin-link`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/spaces/{spaceId}/content/admin-link`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-better-auth.session_token`
  - OAuth 2 (authorization code, authorization URL `https://api.spacefast.com/v1/auth/oauth2/authorize`, token URL `https://api.spacefast.com/v1/auth/oauth2/token`; client credentials, token URL `https://api.spacefast.com/v1/auth/oauth2/token`, scopes: `spaces:write`)

Returns a one-use link that signs a person in to the Space's WordPress content dashboard. The link opens a page with one button. The click signs the person in as the WordPress `role` in the result. The link expires 10 minutes after creation. An empty body lands on the Zero collections screen. `screen` selects a Zero screen. `path` selects a classic /wp-admin/ page. The link signs in the person behind the credential: the signed-in user, or the person who created a team API key. Other credentials get `content_admin_person_required`. Managed content must be available for the team; otherwise the call fails with `feature_unavailable`.

## Path parameters

- `spaceId` string, required

## Request body

- object
  - `screen` 'collections' | 'users'
  - `path` string

## 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
    - `url` string, uri, required
    - `expiresAt` string, date-time, required
    - `role` 'administrator' | 'editor', 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)
