Skip to main content
POST
Gerar URL de upload

Authorizations

Authorization
string
header
required

API key gerada em app.sendaki.tech → Settings → API Keys. Formato: sk_....

Body

application/json
filename
string
required

Nome do ficheiro.

Example:

"fatura-001.pdf"

content_type
string

MIME type do ficheiro. Default: application/octet-stream.

Example:

"application/pdf"

Response

URL de upload gerada

upload_url
string

URL temporária para upload (PUT) directo do ficheiro.

attachment_id
string

Identificador do anexo — usa-o em POST /v1/emails.

expires_in
integer

Segundos até a URL expirar (3600 = 1 hora).