The whole hunk
from line 31, old and new numbered
/
lines
from line 31
3131
3232<CodeGroup>
3333 ```bash cURL
34 dream=$(curl -s https://api.anthropic.com/v1/dreams \
34 curl -s https://api.anthropic.com/v1/dreams \
3535 -H "x-api-key: $ANTHROPIC_API_KEY" \
3636 -H "anthropic-version: 2023-06-01" \
3737 -H "anthropic-beta: managed-agents-2026-04-01,dreaming-2026-04-21" \
from line 46
4646 "instructions": "Focus on coding-style preferences; ignore one-off debugging notes."
4747 }
4848 EOF
49 )
50 dream_id=$(jq -r '.id' <<< "$dream")
51 echo "$dream_id" # drm_01...
5249 ```
5350
5451 ```bash CLI
55 dream_id=$(ant beta:dreams create --transform id --raw-output <<YAML
52 ant beta:dreams create <<YAML
5653 inputs:
5754 - type: memory_store
5855 memory_store_id: $store_id
from line 58
6158 model: claude-opus-4-8
6259 instructions: Focus on coding-style preferences; ignore one-off debugging notes.
6360 YAML
64 )
6561 ```
6662
6763 ```python Python