Court eFiling REST APIs V7


1. How to access eFiling Codes?
Note: You do not need to authenticate to access eFiling codes - clienttoken is enough

1) Request client token (your_client_token) by emailing efile@uslegalpro.com
2) Install ModHeader chrome extension from here and set clienttoken = your_client_token
3) Install JSONVue chrome extension from here

2. How to authenticate and get access token?
Register for an eFiling account at US Legal PRO and call the following

End point: https://api.uslegalpro.com/v2/{{state}}/user/authenticate <- Replace {{state}} with tx, il, ca, in or md
Method: POST
Header: { authtoken: from_authenticate_api }
Payload: 
{
    "data": {
        "username": "{efiling_account_email}",
        "password": "{password}"
    }
}

3. How to search for a case?
Call the following

End point: https://api.uslegalpro.com/v2/{{state}}/search_case?jurisdiction={{location_code}}&case_number={{case_number}} <- Replace {{state}} with tx, il, ca, in or md and replace {{location_code}} from step #1 and case_number with your case number
Method: GET
Header: { authtoken: your_client_token }


3. How to eFile?
Build JSON payload by navigating through the filing codes (step #1) and call the following

End point: https://api.uslegalpro.com/v2/{{state}}/efile  <- Replace {state} with tx, il, ca, in or md
Method: POST
Header: { authtoken: from_authenticate_api }