MagickMind

Create a presigned URL for a direct-to-S3 artifact upload

POST
/v1/artifacts/presign

Authorization

BearerAuth
AuthorizationBearer <token>

MagickMind API key (mm_...) or user JWT, sent as Authorization: Bearer <token>. /v1/chat/completions accepts an API key only. JWTs (not mm_ keys) may alternatively be passed as a ?token= query parameter.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/artifacts/presign" \  -H "Content-Type: application/json" \  -d '{    "content_type": "string",    "file_name": "string",    "size_bytes": 0  }'
{  "bucket": "string",  "expires_at": 0,  "id": "string",  "key": "string",  "required_headers": {    "property1": "string",    "property2": "string"  },  "s3_url": "string",  "upload_url": "string"}