Send Link on Email
Send share link to single or multiple emails.
Endpoint
http
POST /api/v1/shares/{token}/notificationsParameters
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
token | string | yes | - |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
emails | array | yes | The array of the valid email adresses |
Request example
sh
curl --location --request POST 'https://files.ro/api/v1/shares/{token}/notifications' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}' \
--data-raw '{
"emails": [
"jane@doe.com"
]
}'Response
json
{
"type": "success",
"message": "The share link was shared via email successfully."
}json
{
"type": "error",
"message": "You are not authorized"
}json
{
"type": "error",
"message": "Access Denied"
}json
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is required."
]
}
}