---
raw: true
search:
  tags:
    - Access
    - POST
seo:
  description: >-
    Creates an Argon2id password proof and its single… Reference for the POST
    /v1/spaces/{spaceId}/password-credentials endpoint in the Spacefast Partner
    API.
sidebar:
  label: Create password access
  badge: POST
title: Create password access
type: openapi-operation
---
Creates an Argon2id password proof and its single canonical scoped grant atomically.

`POST /v1/spaces/{spaceId}/password-credentials`

**Request body** (`application/json`, required)

- `name` (string, required)
- `resources` (object, required)
- `capabilities` (string[], required)
- `constraints` (object)
- `target` (object, required)
- `password` (string, required)

Request body example:

```json
{
  "name": "string",
  "resources": {
    "include": [
      "string"
    ],
    "exclude": []
  },
  "capabilities": [
    "page.view"
  ],
  "constraints": {},
  "target": {
    "kind": "live"
  },
  "password": "stringstringstr"
}
```

**Responses**

- `201` — Response for status 201
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 201:

```json
{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "grant": {
      "grant": {
        "name": "string",
        "audience": {
          "kind": "public"
        },
        "resources": {
          "include": [
            "string"
          ],
          "exclude": []
        },
        "capabilities": [
          "page.view"
        ],
        "constraints": {},
        "target": {
          "kind": "live"
        },
        "id": "string",
        "source": {
          "kind": "config",
          "reference": "string"
        }
      },
      "generation": 1,
      "status": "scheduled",
      "sourceExplanation": {
        "editable": true,
        "label": "string",
        "detail": "string"
      },
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    },
    "rotatedAt": "2019-08-24T14:15:22Z",
    "lastUsedAt": "2019-08-24T14:15:22Z",
    "revokedAt": "2019-08-24T14:15:22Z"
  }
}
```
