{"uid":"cap_W7mnZiVYq5JTFAea3KPVZ","slug":"arch-tools-session-create-eb0c462f","name":"Arch Tools — Session Create","description":"Arch Tools — session-create","url":"https://archtools.dev/v1/tools/session-create","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["claude-sonnet-4-6","claude-opus-4-6","claude-haiku-4-5-20251001","gpt-4o","gpt-4o-mini"],"type":"string","default":"claude-sonnet-4-6","description":"AI model to use"},"system":{"type":"string","description":"Legacy alias for system_prompt"},"namespace":{"type":"string","description":"Session namespace or grouping key"},"system_prompt":{"type":"string","description":"System prompt for the session"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FOQwcgCTwCCMwTmUjiR2c","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a new AI chat session with configurable TTL, model, and system prompt, returning a session identifier for subsequent interactions","exampleAgentPrompt":"Create a new AI session using claude with a 30-minute TTL and set the system prompt to 'You are a helpful customer support agent who only discusses billing issues.'","exampleUseCases":[{"title":"Customer support agent session bootstrap","prompt":"Start a new session for my support bot using claude, set it to expire after 1 hour, and use the system prompt: 'You are a polite customer support agent specializing in SaaS billing questions.'"},{"title":"Short-lived research assistant session","prompt":"Create a new claude session with a 10-minute TTL and the system prompt 'You are a concise research assistant that only answers factual questions with citations.'"},{"title":"Multi-agent workflow initialization","prompt":"I need to spin up a fresh AI session for my workflow agent — use claude, set the TTL to 7200 seconds, and the system prompt should say 'You are an orchestration agent that coordinates data extraction and summarization tasks.'"}],"resultDescription":"Returns a JSON object containing the new session identifier and session configuration details (model, TTL, system prompt), which can be used to send messages or manage the session in subsequent API calls.","failureModes":["Invalid model name provided — returns 400 with model not supported error","TTL value out of acceptable range — returns 400 with validation error","Missing or malformed system prompt — returns 400","Payment failure or insufficient USDC balance — returns 402","Session creation quota exceeded — returns 429 rate limit error","Internal server error during session initialization — returns 500"],"whenToPreferThis":"Use this endpoint when you need to establish a stateful AI session with a configurable model and system prompt before sending a series of messages. Prefer this over direct one-shot AI calls when your workflow requires persistent context, multi-turn conversations, or when you need to scope the AI to a specific persona or role via a system prompt. Especially useful as the first step in an agentic workflow where downstream tools will reference the same session.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:53:18.155Z","isFirstParty":false}