> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.loreos.app/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.loreos.app/_mcp/server.

# Character Authoring Limits

GET https://api.loreos.app/v1/characters/authoring-limits

Explain app/key-scoped character authoring limits and publish-state semantics.

Reference: https://docs.loreos.app/api-reference/characters/character-authoring-limits

## Authentication

- `Authorization` header (bearer token, required) — LoreOS runtime API key (`ck_...`), sent as `Authorization: Bearer <key>`.

## Servers

- `https://api.loreos.app` (Production, default)
- `http://127.0.0.1:8000` (Local development)

## Response

### 200

Successful Response

- `schema_version` ("v0", required) — LoreOS success-envelope version.
- `data` (CharacterAuthoringLimitsData, required)
- `next_actions` (list of V1NextAction, required) — Concrete follow-up API actions; empty when no action is required.

## Errors

### 401 Unauthorized Error

Runtime API key is missing, invalid, expired, or revoked.

- `detail` (V1ErrorDetail, required) — Stable public error core; domain-specific fields may be added alongside it.

## Types

### CharacterAuthoringLimitsData

- `bulk_create_max_per_request` (integer, required)
- `current_character_count` (integer, required)
- `key_kind` (string, required)
- `environment` (enum, required)
  - Allowed values: `sandbox`, `production`
- `production_state` (string, required)
- `demo_sandbox` (CharacterAuthoringDemoLimit, required)
- `production_authoring_quota` (CharacterAuthoringProductionQuota, required)
- `publication_states` (CharacterPublicationStates, required)
- `readiness_statuses` (CharacterAuthoringReadinessStatuses, required)
- `ready_quality_targets` (CharacterAuthoringQualityTargets, required)
- `field_enum_reference` (CharacterAuthoringFieldEnumReference, required)

### V1NextAction

- `command` (string, required) — The next API command an agent can execute.
- `description` (string, required) — Why or when to execute the command.

### V1ErrorDetail

Stable public error core; domain-specific fields may be added alongside it.

- `code` (string, required)
- `message` (string, required)
- `fix` (string, required)

### CharacterAuthoringDemoLimit

- `applies` (boolean, required)
- `max_characters` (integer, required, nullable)
- `remaining_character_creates` (integer, required, nullable)
- `meaning` (string, required)

### CharacterAuthoringProductionQuota

- `status` (enum, required)
  - Allowed values: `not_hard_limited_by_runtime_api`, `demo_cap_applies`
- `meaning` (string, required)

### CharacterPublicationStates

- `draft` (string, required)
- `needs_attention` (string, required)
- `ready` (string, required)
- `published` (string, required)
- `archived` (string, required)

### CharacterAuthoringReadinessStatuses

- `ready` (string, required)
- `needs_attention` (string, required)
- `invalid` (string, required)

### CharacterAuthoringQualityTargets

- `voice_samples_min` (integer, required)
- `example_dialogues_min` (integer, required)
- `weekday_blocks_min` (integer, required)
- `weekday_blocks_recommended` (string, required)
- `allowed_event_sources_min` (integer, required)
- `world_model_seed_min` (integer, required)
- `supporting_cast_min` (integer, required)
- `arc_seeds_min` (integer, required)

### CharacterAuthoringFieldEnumReference

- `note` (string, required)
- `enums` (map from string to list of string, required)
- `numeric_ranges` (map from string to string, required)

## Examples

**Response**

```json
{
  "schema_version": "v0",
  "data": {
    "bulk_create_max_per_request": 50,
    "current_character_count": 3,
    "key_kind": "standard",
    "environment": "production",
    "production_state": "production_active",
    "demo_sandbox": {
      "applies": false,
      "max_characters": null,
      "remaining_character_creates": null,
      "meaning": "Demo sandbox keys have a small hard character cap. Persistent ck_ runtime keys use app/account policy instead."
    },
    "production_authoring_quota": {
      "status": "not_hard_limited_by_runtime_api",
      "meaning": "Persistent app runtime keys can author normal launch rosters. Use cost/usage caps for spend control."
    },
    "publication_states": {
      "draft": "not runtime-available yet",
      "needs_attention": "runtime-available, but authoring_readiness is not ready; use only for smoke tests",
      "ready": "runtime-available with acceptable launch quality, but review warnings first",
      "published": "runtime-available and authoring_readiness.status is ready",
      "archived": "not runtime-available"
    },
    "readiness_statuses": {
      "ready": "structurally complete according to the deterministic authoring checklist; semantic quality is not evaluated",
      "needs_attention": "valid payload, but missing depth, voice coverage, or clean warnings",
      "invalid": "schema/validation rejected before readiness scoring"
    },
    "ready_quality_targets": {
      "voice_samples_min": 3,
      "example_dialogues_min": 2,
      "weekday_blocks_min": 3,
      "weekday_blocks_recommended": "3-5 compressed blocks across the character's day",
      "allowed_event_sources_min": 3,
      "world_model_seed_min": 2,
      "supporting_cast_min": 1,
      "arc_seeds_min": 1
    },
    "field_enum_reference": {
      "note": "Allowed enum values and numeric ranges are derived from the live authoring models.",
      "enums": {
        "example_dialogues[].usage": [
          "interaction_pattern",
          "boundary_handling",
          "topic_handling",
          "voice_and_pacing"
        ],
        "world_model_seed[].visibility": [
          "character_known",
          "session_visible",
          "developer_only"
        ]
      },
      "numeric_ranges": {
        "behavioral_thresholds.image_proactivity": "0.0 to 1.0",
        "behavioral_thresholds.daily_image_cap": "0 to 20"
      }
    }
  },
  "next_actions": [
    {
      "command": "POST /v1/characters/validate",
      "description": "Dry-run a payload until authoring_readiness.status is ready"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.loreos.app/v1/characters/authoring-limits"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.loreos.app/v1/characters/authoring-limits';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

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

func main() {

	url := "https://api.loreos.app/v1/characters/authoring-limits"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

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

url = URI("https://api.loreos.app/v1/characters/authoring-limits")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.loreos.app/v1/characters/authoring-limits")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.loreos.app/v1/characters/authoring-limits', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.loreos.app/v1/characters/authoring-limits");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.loreos.app/v1/characters/authoring-limits")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```