This API lets you submit an LOA document to Plivo, which can be linked to a hosted messaging number order.
POST
https://api.plivo.com/v1/Account/{auth_id}/HostedMessagingNumber/LOA/
alias Requiredstring | A friendly name for the LOA. |
file RequiredPDF | The full file path of the PDF file to be submitted when creating an LOA. Maximum allowed file size is 5MB. |
HTTP Status Code: 201
{
"alias": "re_testing-sup-1",
"api_id": "1d6e2da4-407e-11ec-a1c3-0242ac110006",
"created_at": "2021-11-08T10:24:54.604163308Z",
"file": "file_PDF_500_kB.pdf",
"linked_numbers": [],
"loa_id": "3606505d-afdd-4534-937f-f9b869bc8603",
"message": "created",
"resource_uri": "/v1/Account/MA2025RK4E639VJFZAGV/HostedMessagingNumber/LOA/3606505d-afdd-4534-937f-f9b869bc8603/"
}
1
2
3
4
5
curl -i --user AUTH_ID:AUTH_TOKEN \
-H "Content-Type: multipart/form-data" \
--form 'alias=”testing”'\
--form 'file=@local_path_of_image'\
https://api.plivo.com/v1/Account/{auth_id}/HostedMessagingNumber/LOA/