REST API
Upload Endpoint
Integrate our temporary hosting directly into your application or terminal scripts.
METHOD
POST
URL TARGET
https://arquivotemp.com.br/upload.php
PAYLOAD SCHEMA
Required Body (form-data)
| Campo | Tipo | Descrição |
|---|---|---|
| arquivo | file | The binary file to be hosted (Max 100MB) |
| expiracao | int | Tempo em minutos: 60, 360, 1440 ou 2880. |
| lang | string | Idioma de retorno das mensagens: pt ou en. |
Success Response Example (JSON)
{
"sucesso": true,
"link": "https://arquivotemp.com.br/view.php?token=8f3c71a...&type=image&lang=en",
"expiracao": "06/21/2026 at 20:30:00"
}
Error Response Example (JSON)
{
"sucesso": false,
"erro": "No file was sent."
}
cURL Request Example
curl -X POST \
-F "arquivo=@/caminho/do/seu/documento.pdf" \
-F "expiracao=1440" \
-F "lang=en" \
"https://arquivotemp.com.br/upload.php"