ArchFindrالمطوّرون
مرجع واجهة البرمجة

رفع الملفات

رفع الصور والملفات والنماذج ثلاثية الأبعاد.

POST
/api/v1/key/uploads

Uploads an image or document (multipart field file) and returns its URL.

Requires the uploads:write scope.

التفويض

apiKey uploads:write
headerالتفويضBearer <token>

An API key created in the vendor workspace. Send it as Authorization: Bearer afk_....

النطاق: uploads:write

جسم الطلب

multipart/form-data
  1. body
file*file
الصيغةbinary

جسم الاستجابة

Success

application/json
  1. response
data*
curl -X POST "https://example.com/api/v1/key/uploads" \  -F file="string"
{  "data": {    "url": "string"  }}
POST
/api/v1/key/uploads/model

Uploads a .glb, .gltf or .usdz 3D model (multipart field file).

Requires the uploads:write scope.

التفويض

apiKey uploads:write
headerالتفويضBearer <token>

An API key created in the vendor workspace. Send it as Authorization: Bearer afk_....

النطاق: uploads:write

جسم الطلب

multipart/form-data
  1. body
file*file
الصيغةbinary

جسم الاستجابة

Success

application/json
  1. response
data*
curl -X POST "https://example.com/api/v1/key/uploads/model" \  -F file="string"
{  "data": {    "url": "string"  }}