# Make a document in Praecise Spaces Docs

`POST /workspace/docs` · Rivier · content

Make a document in Praecise Spaces Docs: a title, and its first text as Markdown if there is some.

- Scope: content:write
- Mcp: rivier_docs_create
- Graphql: Mutation.contentDocsCreate
- Sdk: content.docs.create
- Cli: content docs create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "text": {
      "type": "string",
      "maxLength": 1000000
    }
  },
  "required": [
    "title"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/workspace/docs' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "title": "string"
}'
```
