February 19, 2025
Project Slug Moved to Request Header
Projects are only available for Letta Cloud.
Project slug can now be specified via request header X-Project
for agent creation. The existing project
parameter will soon be deprecated.
Project slug can now be specified via request header X-Project
for agent creation. The existing project
parameter will soon be deprecated.
1 curl -X POST https://app.letta.com/v1/agents \ 2 -H 'Content-Type: application/json' \ 3 -H 'Authorization: Bearer YOUR_API_KEY' \ 4 -d '{ 5 "project":"YOUR_PROJECT_SLUG" 6 "model":"gpt-4o-mini", 7 "embedding":"openai/text-embedding-ada-002" 8 "memory_blocks": [ 9 { 10 "label": "human", 11 "value": "name: Caren" 12 } 13 ], 14 }'
1 curl -X POST https://app.letta.com/v1/agents \ 2 -H 'Content-Type: application/json' \ 3 -H 'Authorization: Bearer YOUR_API_KEY' \ 4 -H 'X-Project: YOUR_PROJECT_SLUG' \ 5 -d '{ 6 "model":"gpt-4o-mini", 7 "embedding":"openai/text-embedding-ada-002" 8 "memory_blocks": [ 9 { 10 "label": "human", 11 "value": "name: Caren" 12 } 13 ], 14 }'