# Create a share link for a post, or for a client's posts awaiting approval

> For AI agents: the index of these docs is at https://indrava.forumulate.com/docs/llms.txt (every page it lists has a Markdown version like this one).

## Create a share link for a post, or for a client's posts awaiting approval

**`POST http://localhost:4000/api/v1/posts/review-links`** — Create a share link for a post, or for a client's posts awaiting approval

The answer's `url` shows the post as it will look, to someone without an account, who can also comment. The URL is returned once. A link made with a key cannot approve.

### Request body (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `postId` | string | no |  |
| `clientId` | string | no |  |
| `label` | string | no |  |
| `email` | string | no |  |
| `message` | string | no |  |
| `expiresInDays` | integer | no | Default: `14`. |
| `kind` | string | no | One of: `review` \| `calendar` \| `preview`. Default: `review`. |
| `periodDays` | integer | no | Default: `30`. |
| `showDrafts` | boolean | no | Default: `false`. |
| `verifyReviewer` | boolean | no | Default: `false`. |
| `redirectToLive` | boolean | no | Default: `false`. |

```json
{
  "postId": "string",
  "clientId": "string",
  "label": "string",
  "email": "string",
  "message": "string",
  "expiresInDays": 14,
  "kind": "review",
  "periodDays": 30,
  "showDrafts": false,
  "verifyReviewer": false,
  "redirectToLive": false
}
```

### Responses

**200** — OK

#### Option 1

#### Option 2

```json
{}
```

### Code samples

**cURL**

```curl
curl -X POST "http://localhost:4000/api/v1/posts/review-links" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"postId":"string","clientId":"string","label":"string","email":"string","message":"string","expiresInDays":14,"kind":"review","periodDays":30,"showDrafts":false,"verifyReviewer":false,"redirectToLive":false}'
```

**TypeScript**

```typescript
const res = await fetch('http://localhost:4000/api/v1/posts/review-links', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer $API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"postId":"string","clientId":"string","label":"string","email":"string","message":"string","expiresInDays":14,"kind":"review","periodDays":30,"showDrafts":false,"verifyReviewer":false,"redirectToLive":false}),
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "POST",
    "http://localhost:4000/api/v1/posts/review-links",
    headers={
    "Authorization": "Bearer $API_KEY",
    "Content-Type": "application/json",
    },
    json={"postId": "string", "clientId": "string", "label": "string", "email": "string", "message": "string", "expiresInDays": 14, "kind": "review", "periodDays": 30, "showDrafts": False, "verifyReviewer": False, "redirectToLive": False},
)
data = res.json()
```

**Go**

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"strings"
)

func main() {
	req, _ := http.NewRequest("POST", "http://localhost:4000/api/v1/posts/review-links", strings.NewReader(`{"postId":"string","clientId":"string","label":"string","email":"string","message":"string","expiresInDays":14,"kind":"review","periodDays":30,"showDrafts":false,"verifyReviewer":false,"redirectToLive":false}`))
	req.Header.Set("Authorization", "Bearer $API_KEY")
	req.Header.Set("Content-Type", "application/json")
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://localhost:4000/api/v1/posts/review-links');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer $API_KEY', 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"postId":"string","clientId":"string","label":"string","email":"string","message":"string","expiresInDays":14,"kind":"review","periodDays":30,"showDrafts":false,"verifyReviewer":false,"redirectToLive":false}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

```ruby
require 'net/http'
require 'uri'

uri = URI('http://localhost:4000/api/v1/posts/review-links')
req = Net::HTTP::Post.new(uri)
req['Authorization'] = 'Bearer $API_KEY'
req['Content-Type'] = 'application/json'
req.body = '{"postId":"string","clientId":"string","label":"string","email":"string","message":"string","expiresInDays":14,"kind":"review","periodDays":30,"showDrafts":false,"verifyReviewer":false,"redirectToLive":false}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("http://localhost:4000/api/v1/posts/review-links"))
    .header("Authorization", "Bearer $API_KEY")
    .header("Content-Type", "application/json")
    .method("POST", BodyPublishers.ofString("{\"postId\":\"string\",\"clientId\":\"string\",\"label\":\"string\",\"email\":\"string\",\"message\":\"string\",\"expiresInDays\":14,\"kind\":\"review\",\"periodDays\":30,\"showDrafts\":false,\"verifyReviewer\":false,\"redirectToLive\":false}"))
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

---

## For AI agents

- This page for a human reader: https://indrava.forumulate.com/docs/ref-reviewlinks-create
- The whole space as one Markdown file: https://indrava.forumulate.com/docs/llms-full.txt
- Live search + fetch over MCP: https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/mcp
  - Install (Claude CLI): `claude mcp add forumulate-docs --transport http https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/mcp`

This Markdown is the same content the page renders — safe to quote and to ground answers in.
