POST /v1/uploads/url
Get upload URL
bash
curl -H "x-api-key: $PHI_KEY" -X POST https://api.dynophi.com/v1/uploads/url \
-H "content-type: application/json" \
-d '{
"filename": "<filename>"
}'Body
| Name | Type | Default |
|---|---|---|
| filenamerequired | string | |
| content_typeoptional | string | "application/octet-stream" |
| expires_inoptional | integer | 900 |
Complete request schemaShowHide
Fields
| Name | Type | Default |
|---|---|---|
| filenamerequired | string | |
| content_typeoptional | string | "application/octet-stream" |
| expires_inoptional | integer | 900 |
JSON schema
{
"$ref": "#/$defs/UploadRequest",
"$defs": {
"UploadRequest": {
"type": "object",
"required": [
"filename"
],
"properties": {
"filename": {
"type": "string"
},
"content_type": {
"type": "string",
"default": "application/octet-stream"
},
"expires_in": {
"type": "integer",
"default": 900
}
}
}
}
}200 response (application/json)
200 response fields and schemaShowHide
Fields
| Name | Type |
|---|---|
| upload_urlrequired | string |
| gcs_urirequired | string |
| expires_inrequired | integer |
JSON schema
{
"$ref": "#/$defs/UploadResponse",
"$defs": {
"UploadResponse": {
"type": "object",
"required": [
"upload_url",
"gcs_uri",
"expires_in"
],
"properties": {
"upload_url": {
"type": "string"
},
"gcs_uri": {
"type": "string"
},
"expires_in": {
"type": "integer"
}
}
}
}
}Illustrative response shape. Values are placeholders, not a recorded result.
json
{
"upload_url": "<value>",
"gcs_uri": "<value>",
"expires_in": 0
}Returns 200 or 422.
From phi-api 0.2.2, 2026-11-23.