POST
/
v1
/
tools
/
sharefile
Share file - use to host a file and generate a short link to be used directly in a message or as a link to media for a MMS
curl --request POST \
  --url https://api.sakari.io/v1/tools/sharefile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/octet-stream'
{
  "success": true,
  "data": {
    "link": "<string>",
    "expires": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

The body is of type file.

Response

200
application/json

successful operation

The response is of type object.