{"openapi": "3.1.0", "info": {"title": "BeamIt Baby API", "version": "1.0.0", "description": "Send files, text and links to your BeamIt Baby boards and read what landed there. Authenticate with an API key from your profile (Authorization: Bearer bb_...). Free accounts have a daily quota; Pro, Business and the 24-hour pass raise it."}, "servers": [{"url": "https://api.beamitbaby.com", "description": "API host without the proxy: uploads up to the plan limit"}, {"url": "https://beamitbaby.com", "description": "main host (behind the proxy: uploads up to 100 MB)"}], "security": [{"bearer": []}], "components": {"securitySchemes": {"bearer": {"type": "http", "scheme": "bearer", "bearerFormat": "API key or OAuth token"}}, "schemas": {"Item": {"type": "object", "properties": {"id": {"type": "string"}, "kind": {"type": "string", "enum": ["file", "text", "link", "p2p"]}, "name": {"type": ["string", "null"]}, "body": {"type": ["string", "null"]}, "size": {"type": "integer"}, "mime": {"type": ["string", "null"]}, "created": {"type": "number"}, "expires": {"type": "number"}, "burn": {"type": "boolean"}}}, "Error": {"type": "object", "properties": {"error": {"type": "string"}, "hint": {"type": "string"}}}}}, "paths": {"/api/v1/me": {"get": {"operationId": "getMe", "summary": "Account, plan, limits, quota and board codes", "responses": {"200": {"description": "OK"}, "401": {"description": "No or bad key", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string"}, "hint": {"type": "string"}}}}}}}}}, "/api/v1/boards": {"get": {"operationId": "listBoards", "summary": "Boards this account can use", "responses": {"200": {"description": "OK"}}}}, "/api/v1/items": {"get": {"operationId": "listItems", "summary": "Items on a board", "parameters": [{"name": "board", "in": "query", "required": false, "schema": {"type": "string", "default": "private"}, "description": "private | team | 8-character room code"}, {"name": "since", "in": "query", "schema": {"type": "number"}, "description": "Only items created after this unix time"}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object", "properties": {"board": {"type": "string"}, "items": {"type": "array", "items": {"type": "object", "properties": {"id": {"type": "string"}, "kind": {"type": "string", "enum": ["file", "text", "link", "p2p"]}, "name": {"type": ["string", "null"]}, "body": {"type": ["string", "null"]}, "size": {"type": "integer"}, "mime": {"type": ["string", "null"]}, "created": {"type": "number"}, "expires": {"type": "number"}, "burn": {"type": "boolean"}}}}}}}}}}}}, "/api/v1/items/{id}": {"get": {"operationId": "getItem", "summary": "One item; text and links include their content", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "404": {"description": "Not found", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string"}, "hint": {"type": "string"}}}}}}}}, "delete": {"operationId": "deleteItem", "summary": "Delete an item", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Deleted"}, "404": {"description": "Not found", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string"}, "hint": {"type": "string"}}}}}}}}}, "/api/v1/items/{id}/download": {"get": {"operationId": "downloadItem", "summary": "Temporary signed download URL (10 minutes)", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string"}, "expires": {"type": "number"}}}}}}}}}, "/api/v1/text": {"post": {"operationId": "sendText", "summary": "Send text or a link", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["text"], "properties": {"text": {"type": "string"}, "board": {"type": "string"}, "ttl": {"type": "integer"}, "burn": {"type": "boolean"}}}}}}, "responses": {"200": {"description": "Sent"}, "402": {"description": "Plan or quota", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string"}, "hint": {"type": "string"}}}}}}, "429": {"description": "Quota used up", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string"}, "hint": {"type": "string"}}}}}}}}}, "/api/v1/upload": {"post": {"operationId": "uploadFile", "summary": "Upload a file (multipart/form-data field 'file', or raw body with X-Beam-Name)", "parameters": [{"name": "board", "in": "query", "required": false, "schema": {"type": "string", "default": "private"}, "description": "private | team | 8-character room code"}, {"name": "ttl", "in": "query", "schema": {"type": "integer"}}], "requestBody": {"required": true, "content": {"multipart/form-data": {"schema": {"type": "object", "properties": {"file": {"type": "string", "format": "binary"}}}}, "application/octet-stream": {"schema": {"type": "string", "format": "binary"}}}}, "responses": {"200": {"description": "Stored", "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "string"}, "kind": {"type": "string", "enum": ["file", "text", "link", "p2p"]}, "name": {"type": ["string", "null"]}, "body": {"type": ["string", "null"]}, "size": {"type": "integer"}, "mime": {"type": ["string", "null"]}, "created": {"type": "number"}, "expires": {"type": "number"}, "burn": {"type": "boolean"}}}}}}, "413": {"description": "Too big", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string"}, "hint": {"type": "string"}}}}}}, "429": {"description": "Quota", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string"}, "hint": {"type": "string"}}}}}}}}}, "/api/v1/from-url": {"post": {"operationId": "sendFromUrl", "summary": "Server fetches a public https URL onto a board", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["url"], "properties": {"url": {"type": "string"}, "name": {"type": "string"}, "board": {"type": "string"}, "ttl": {"type": "integer"}}}}}}, "responses": {"200": {"description": "Stored", "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "string"}, "kind": {"type": "string", "enum": ["file", "text", "link", "p2p"]}, "name": {"type": ["string", "null"]}, "body": {"type": ["string", "null"]}, "size": {"type": "integer"}, "mime": {"type": ["string", "null"]}, "created": {"type": "number"}, "expires": {"type": "number"}, "burn": {"type": "boolean"}}}}}}, "400": {"description": "Bad URL", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string"}, "hint": {"type": "string"}}}}}}}}}, "/api/v1/invite": {"post": {"operationId": "createInvite", "summary": "Join link and room code for another device", "requestBody": {"content": {"application/json": {"schema": {"type": "object", "properties": {"board": {"type": "string"}}}}}}, "responses": {"200": {"description": "OK"}}}}, "/api/v1/events": {"get": {"operationId": "waitEvents", "summary": "Long-poll: returns when the board changes (up to 25 s)", "parameters": [{"name": "board", "in": "query", "required": false, "schema": {"type": "string", "default": "private"}, "description": "private | team | 8-character room code"}, {"name": "since", "in": "query", "schema": {"type": "number"}}, {"name": "wait", "in": "query", "schema": {"type": "integer", "enum": [0, 1]}}], "responses": {"200": {"description": "OK"}}}}, "/api/v1/webhooks": {"get": {"operationId": "listWebhooks", "summary": "Registered webhooks", "responses": {"200": {"description": "OK"}}}, "post": {"operationId": "createWebhook", "summary": "Register a webhook (secret shown once)", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["url"], "properties": {"url": {"type": "string"}, "events": {"type": "array", "items": {"type": "string", "enum": ["item.created", "item.deleted"]}}, "board": {"type": "string"}}}}}}, "responses": {"200": {"description": "Created"}, "400": {"description": "Bad URL", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string"}, "hint": {"type": "string"}}}}}}}}}, "/api/v1/webhooks/{id}": {"delete": {"operationId": "deleteWebhook", "summary": "Remove a webhook", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer"}}], "responses": {"200": {"description": "Removed"}}}}, "/api/v1/webhooks/{id}/test": {"post": {"operationId": "testWebhook", "summary": "Send a test delivery", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer"}}], "responses": {"200": {"description": "Queued"}}}}}}