Langdock Attachments API
The Attachments API from Langdock — 2 operation(s) for attachments.
The Attachments API from Langdock — 2 operation(s) for attachments.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/langdock-attachments-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Langdock Agent Attachments API
version: 3.0.0
servers:
- url: https://api.langdock.com
description: Production
security:
- bearerAuth: []
tags:
- name: Attachments
paths:
/attachment/v1/upload:
post:
operationId: uploadAttachment
summary: Upload an attachment
description: Upload a file that can be referenced in Agent conversations.
tags:
- Attachments
parameters: []
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
required:
- file
properties:
file:
type: string
format: binary
description: The file to upload
responses:
'200':
description: Successfully uploaded file
content:
application/json:
schema:
type: object
required:
- attachmentId
- file
properties:
attachmentId:
type: string
format: uuid
description: Unique identifier for the uploaded attachment
file:
type: object
required:
- name
- mimeType
- sizeInBytes
properties:
name:
type: string
description: Original filename
mimeType:
type: string
description: MIME type of the file
sizeInBytes:
type: integer
description: Size of the file in bytes
'400':
description: No file provided
content:
application/json:
schema:
type: object
properties:
error:
type: string
'401':
description: Invalid API key
content:
application/json:
schema:
type: object
properties:
error:
type: string
'500':
description: Internal server error
content:
application/json:
schema:
type: object
properties:
message:
type: string
/attachment/v1/delete:
delete:
operationId: deleteAttachment
summary: Delete an attachment
description: Soft-deletes an attachment by ID. The attachment must be created by the API key's creator or belong to a Knowledge base shared with the API key.
tags:
- Attachments
parameters: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- attachmentId
properties:
attachmentId:
type: string
format: uuid
description: The ID of the attachment to delete
responses:
'200':
description: Attachment deleted successfully
content:
application/json:
schema:
type: object
required:
- success
- message
- attachmentId
properties:
success:
type: boolean
example: true
message:
type: string
example: Attachment deleted successfully
attachmentId:
type: string
format: uuid
description: The ID of the deleted attachment
'400':
description: Invalid request body
content:
application/json:
schema:
type: object
properties:
message:
type: string
errors:
type: array
items: {}
'401':
description: Invalid API key
content:
application/json:
schema:
type: object
properties:
error:
type: string
'403':
description: API key does not have access to this attachment
content:
application/json:
schema:
type: object
properties:
message:
type: string
'404':
description: Attachment not found
content:
application/json:
schema:
type: object
properties:
message:
type: string
'500':
description: Internal server error
content:
application/json:
schema:
type: object
properties:
message:
type: string
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: API Key
description: API key as Bearer token. Format "Bearer YOUR_API_KEY"