Upload an image
POST
/v1/apps/{app_id}/media
Stores a png, jpeg, gif or webp image (max 5 MB) in the company's object store and returns its public URL for use as a notification image_url. The type is detected from the file content. Unused uploads are removed automatically.
Autorizações
SessionAuth
Admin session cookie set by POST /v1/auth/login. Dashboard-only management.
Tipo
API Key (cookie: notti_session)
Parâmetros
Parâmetros de Caminho
app_id*
App ID
Tipo
Obrigatóriostring
Corpo da Requisição
multipart/form-data
Image file
Formato
"binary"Respostas
Created
application/json
JSON "id": "string", "url": "string"
{
}
Media upload availability
GET
/v1/apps/{app_id}/media/status
Reports whether the company has an object store configured and the upload limits.
Autorizações
SessionAuth
Admin session cookie set by POST /v1/auth/login. Dashboard-only management.
Tipo
API Key (cookie: notti_session)
Parâmetros
Parâmetros de Caminho
app_id*
App ID
Tipo
Obrigatóriostring
Respostas
OK
application/json
JSON "allowed_types": [ "string" ], "configured": true, "max_bytes": 0
{
}