Assets
Bulk import images from URLs
Queues each URL for asynchronous, SSRF-safe fetch-and-ingest via a
background worker. Malformed or duplicate URLs are rejected up front
and reported in the response without blocking the accepted URLs. Poll
GET /upload/imports/{batch_id} for progress.
Authorization
token_auth AuthorizationBearer <token>
Token-based authentication using access tokens.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://v2.api.piktid.com/upload/from-urls" \ -H "Content-Type: application/json" \ -d '{ "urls": [ "string" ] }'{
"batch_id": "string",
"accepted": 0,
"rejected": [
{
"url": "string",
"reason": "string"
}
]
}{
"error": "Invalid request",
"detail": [
{
"field": null,
"message": "string",
"position": "query"
}
]
}Empty