POST
/
files
/
create

If you are not adding a web address, you must pass the key returned from the /files/upload endpoint to the key param in the /files/create endpoint or file processing will fail.

Authorizations

X-API-Key
string
header
required

Your duohub API key. Type: str

Body

application/json
name
string
required

Name of the file

externalURI
string

External URI for the file

fileType
enum<string>

Type of the file

Available options:
website,
sitemap,
website_bulk,
document,
text,
image,
audio,
video,
other
id
string

Optional unique identifier for the file. If not provided, a UUID will be generated.

key
string

Storage key for the file

Response

201 - application/json
data
object
required
status
enum<string>
required
Available options:
success