Claude Platform Docs

Сны

Создать сон
$client->beta->dreams->create(list<BetaDreamInput> inputs, Model model, ?string instructions, ?BetaOutputBehavior outputBehavior, ?list<AnthropicBeta> betas, ?string workspaceID): BetaDream
POST/v1/dreams
Список снов
$client->beta->dreams->list(?\Datetime createdAtGt, ?\Datetime createdAtLt, ?bool includeArchived, ?int limit, ?string page, ?list<BetaDreamStatus> statuses, ?list<AnthropicBeta> betas, ?string workspaceID): PageCursor<BetaDream>
GET/v1/dreams
Получить сон
$client->beta->dreams->retrieve(string dreamID, ?list<AnthropicBeta> betas, ?string workspaceID): BetaDream
GET/v1/dreams/{dream_id}
Отменить сон
$client->beta->dreams->cancel(string dreamID, ?list<AnthropicBeta> betas, ?string workspaceID): BetaDream
POST/v1/dreams/{dream_id}/cancel
Архивировать сон
$client->beta->dreams->archive(string dreamID, ?list<AnthropicBeta> betas, ?string workspaceID): BetaDream
POST/v1/dreams/{dream_id}/archive
Models
class BetaDream { $type; $id; $archivedAt; /* 11 more */ }
class BetaDreamError { $type; $message; }
string type
string message
One of the following:
class BetaDreamMemoryStoreInput { $type; $memoryStoreID; }
Type type
string memoryStoreID
class BetaDreamSessionsInput { $type; $sessionIDs; }
Type type
list<string> sessionIDs
class BetaDreamMemoryStoreInput { $type; $memoryStoreID; }
Type type
string memoryStoreID
class BetaDreamMemoryStoreOutput { $type; $memoryStoreID; }
Type type
string memoryStoreID
class BetaDreamModelConfig { $id; $speed; }
string id

Model identifier, e.g. "claude-opus-5". 1-256 characters.

?Speed speed

Inference speed mode. fast provides significantly faster output token generation at premium pricing. Not all models support fast; invalid combinations are rejected at create time.

class BetaDreamModelConfigParam { $id; $speed; }
string id

Model identifier, e.g. "claude-opus-5". 1-256 characters.

?Speed speed

Inference speed mode. fast provides significantly faster output token generation at premium pricing. Not all models support fast; invalid combinations are rejected at create time.

class BetaDreamOutput { $type; $memoryStoreID; }
Type type
string memoryStoreID
class BetaDreamSessionsInput { $type; $sessionIDs; }
Type type
list<string> sessionIDs
One of the following:
"pending"
"running"
"completed"
"failed"
"canceled"
class BetaDreamUsage { $cacheCreationInputTokens; $cacheReadInputTokens; $inputTokens; $outputTokens; }
int cacheCreationInputTokens

Total tokens used to create prompt-cache entries (sum of all TTL tiers).

int cacheReadInputTokens

Total tokens read from prompt cache.

int inputTokens

Total uncached input tokens consumed across every pipeline stage.

int outputTokens

Total output tokens generated across every pipeline stage.

One of the following:
One of the following:
class BetaOutputBehaviorCreateNew { $type; }
Type type
class BetaOutputBehaviorUpdateExisting { $type; $memoryStoreID; }
Type type
string memoryStoreID
class BetaOutputBehaviorCreateNew { $type; }
Type type
class BetaOutputBehaviorUpdateExisting { $type; $memoryStoreID; }
Type type
string memoryStoreID
class BetaTargetStoreHeldError { $type = 'conflict_error'; $message; }
"conflict_error" type
?string message

Human-readable description of the conflict, naming the dream that holds the target store when the server can identify it.