Create a new LOA

    This API allows you to submit an LOA document to Plivo, which can be linked to a hosted messaging number order.

    API Endpoint

    POSThttps://api.plivo.com/v1/Account/{auth_id}/HostedMessagingNumber/LOA/

    Arguments

    alias RequiredstringA friendly name for the LOA.
    file RequiredPDFThe full file path of the PDF file that needs to be submitted when creating an LOA. Maximum allowed file size is 5MB

    Response

    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/MAXXXXXXXXXXXXXXXXXX/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/