{"openapi":"3.1.0","info":{"title":"Beam API","description":"The public REST API of Beam: list and message your workspace's agents, run chat completions, generate embeddings, and search your knowledge folders. Authenticate with a workspace API key as a bearer token. Errors come in an OpenAI-style envelope ({\"error\": {\"type\", \"message\", \"code\"}}), every response carries X-RateLimit-* headers, and an Idempotency-Key header makes any POST safe to retry.","version":"1"},"servers":[{"url":"https://askbeam.io"}],"paths":{"/v1/me":{"get":{"summary":"V1 Me","operationId":"v1_me_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response V1 Me V1 Me Get"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/agents":{"get":{"summary":"V1 List Agents","operationId":"v1_list_agents_v1_agents_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["agents"]}]},"post":{"summary":"V1 Create Agent","operationId":"v1_create_agent_v1_agents_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CreateAgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Agent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["agents"]}]}},"/v1/agents/{agent_id}":{"get":{"summary":"V1 Get Agent","operationId":"v1_get_agent_v1_agents__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Agent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["agents"]}]}},"/v1/agents/{agent_id}/publish":{"post":{"summary":"V1 Publish Agent","description":"Create and update work on the draft; this makes the draft the active\nversion, the one /v1/agents/{id} and the chat endpoints run.","operationId":"v1_publish_agent_v1_agents__agent_id__publish_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishAgentRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Agent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["agents"]}]}},"/v1/agents/{agent_id}/messages":{"post":{"summary":"V1 Agent Message","operationId":"v1_agent_message_v1_agents__agent_id__messages_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1AgentMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response V1 Agent Message V1 Agents  Agent Id  Messages Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["chat"]}]}},"/v1/chat":{"post":{"summary":"V1 Chat","operationId":"v1_chat_v1_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response V1 Chat V1 Chat Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["chat"]}]}},"/v1/chat/completions":{"post":{"summary":"V1 Chat Completions","description":"OpenAI-compatible chat completions: a documented SUBSET (see the API\ndocs page). No streaming, no tool/function calling, no image input yet\n— those return an explicit 400 rather than being silently ignored.","operationId":"v1_chat_completions_v1_chat_completions_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ChatCompletionsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response V1 Chat Completions V1 Chat Completions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["chat"]}]}},"/v1/embeddings":{"post":{"summary":"V1 Embeddings","operationId":"v1_embeddings_v1_embeddings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1EmbeddingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response V1 Embeddings V1 Embeddings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["embeddings"]}]}},"/v1/knowledge/query":{"post":{"summary":"V1 Knowledge Query","operationId":"v1_knowledge_query_v1_knowledge_query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1KnowledgeQueryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response V1 Knowledge Query V1 Knowledge Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["knowledge"]}]}},"/v1/skills":{"get":{"summary":"V1 List Skills","description":"Skills the key's owner can see. System skills are the product's and\nare not managed here.","operationId":"v1_list_skills_v1_skills_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},{"name":"slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response V1 List Skills V1 Skills Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["skills"]}]},"post":{"summary":"V1 Create Skill","operationId":"v1_create_skill_v1_skills_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1SkillCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response V1 Create Skill V1 Skills Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["skills"]}]}},"/v1/skills/{skill_id}":{"get":{"summary":"V1 Get Skill","operationId":"v1_get_skill_v1_skills__skill_id__get","parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response V1 Get Skill V1 Skills  Skill Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["skills"]}]},"patch":{"summary":"V1 Update Skill","operationId":"v1_update_skill_v1_skills__skill_id__patch","parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1SkillUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response V1 Update Skill V1 Skills  Skill Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["skills"]}]},"delete":{"summary":"V1 Delete Skill","operationId":"v1_delete_skill_v1_skills__skill_id__delete","parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response V1 Delete Skill V1 Skills  Skill Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["skills"]}]}},"/v1/skills/{skill_id}/files":{"get":{"summary":"V1 Get Skill File","operationId":"v1_get_skill_file_v1_skills__skill_id__files_get","parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":512,"title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["skills"]}]}},"/v1/skills/{skill_id}/versions":{"get":{"summary":"V1 List Skill Versions","operationId":"v1_list_skill_versions_v1_skills__skill_id__versions_get","parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response V1 List Skill Versions V1 Skills  Skill Id  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["skills"]}]}},"/v1/skills/{skill_id}/versions/{version_id}/restore":{"post":{"summary":"V1 Restore Skill Version","operationId":"v1_restore_skill_version_v1_skills__skill_id__versions__version_id__restore_post","parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response V1 Restore Skill Version V1 Skills  Skill Id  Versions  Version Id  Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["skills"]}]}},"/v1/skills/import":{"post":{"summary":"V1 Import Skill","description":"Create or upsert (by slug) a skill from a SKILL.md or a zip bundle.\n201 when created, 200 when an existing skill was updated.","operationId":"v1_import_skill_v1_skills_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_v1_import_skill_v1_skills_import_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response V1 Import Skill V1 Skills Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"bearerAuth":["skills"]}]}}},"components":{"schemas":{"Body_v1_import_skill_v1_skills_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"fileType":{"type":"string","title":"Filetype","default":""},"mode":{"type":"string","title":"Mode","default":"create"},"integrationIds":{"type":"string","title":"Integrationids","default":"[]"}},"type":"object","required":["file"],"title":"Body_v1_import_skill_v1_skills_import_post"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PublishAgentRequest":{"properties":{"message":{"type":"string","maxLength":2000,"title":"Message","default":""}},"type":"object","title":"PublishAgentRequest"},"V1Agent":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"model":{"type":"string","title":"Model"}},"type":"object","required":["id","name","description","model"],"title":"V1Agent"},"V1AgentMessageRequest":{"properties":{"message":{"type":"string","maxLength":24000,"minLength":1,"title":"Message"}},"type":"object","required":["message"],"title":"V1AgentMessageRequest"},"V1ChatCompletionsRequest":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"messages":{"items":{"$ref":"#/components/schemas/V1ChatMessage"},"type":"array","maxItems":50,"minItems":1,"title":"Messages"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"stream":{"type":"boolean","title":"Stream","default":false},"tools":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tools"}},"type":"object","required":["messages"],"title":"V1ChatCompletionsRequest"},"V1ChatMessage":{"properties":{"role":{"type":"string","enum":["system","user","assistant"],"title":"Role"},"content":{"type":"string","maxLength":24000,"title":"Content"}},"type":"object","required":["role","content"],"title":"V1ChatMessage"},"V1ChatRequest":{"properties":{"message":{"type":"string","maxLength":24000,"minLength":1,"title":"Message"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},"type":"object","required":["message"],"title":"V1ChatRequest"},"V1CreateAgentRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":2000,"title":"Description","default":""},"instructions":{"type":"string","maxLength":12000,"title":"Instructions","default":""},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["name"],"title":"V1CreateAgentRequest"},"V1EmbeddingsRequest":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"input":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Input"}},"type":"object","required":["input"],"title":"V1EmbeddingsRequest"},"V1KnowledgeQueryRequest":{"properties":{"query":{"type":"string","maxLength":4000,"minLength":1,"title":"Query"},"documentSetIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Documentsetids"},"topK":{"type":"integer","maximum":8,"minimum":1,"title":"Topk","default":5}},"type":"object","required":["query"],"title":"V1KnowledgeQueryRequest"},"V1SkillCreateRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Slug"},"description":{"type":"string","maxLength":4000,"title":"Description","default":""},"instructions":{"type":"string","maxLength":200000,"minLength":1,"title":"Instructions"},"license":{"type":"string","maxLength":160,"title":"License","default":""},"integrationIds":{"items":{"type":"string"},"type":"array","title":"Integrationids"}},"type":"object","required":["name","instructions"],"title":"V1SkillCreateRequest"},"V1SkillUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Slug"},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Description"},"instructions":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}],"title":"Instructions"},"license":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"License"},"integrationIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Integrationids"}},"type":"object","title":"V1SkillUpdateRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A workspace API key (beam_…). A key holds every scope or only some of these; each operation's `security` names the one it needs:\n- `agents`: List, read, create and publish agents (/v1/agents…). Running one needs `chat`.\n- `chat`: Chat with the workspace's models (/v1/chat, /v1/chat/completions, POST /v1/agents/{id}/messages).\n- `embeddings`: Embed text (POST /v1/embeddings).\n- `knowledge`: Search the workspace's knowledge (POST /v1/knowledge/query).\n- `skills`: List, create, update, version, import and delete skills (/v1/skills…)."}}},"security":[{"bearerAuth":[]}]}