Hi @Famai
Can you post a screenshot of the encountered error?
@Troy Tessalone Hello, the 401 says ‘The app returned "Unauthorized" (HTTP Status Code: 401)’
@Famai
Clio API docs to reference:
https://docs.developers.clio.com/guides/clio-grow/lead-inbox-api/
Requests must include Content-Type
and Accepts
headers, both with the value application/json
.
Thank you @Troy Tessalone I have added Content-Type and added ‘s’ for Accepts.
Still received the same error.
@Famai
Check that you are testing with valid values for the fields.
@Famai
You can also try changing the action from POST to Custom Request (POST).
{
"inbox_lead" : {
"from_first" : "John",
"from_last" : "Doe",
"from_message" : "I need a lawyer",
"from_email" : "johndoe@email.com",
"from_phone" : "8987648934",
"referring_url" : "http://lawfirmwebsite.com/intake-form",
"from_source" :"Law Firm Landing Page"
},
"inbox_lead_token" : "ABCDEFGHIJKL0123456789"
}
@Famai
Incorrect Lead Inbox Token
Passing an invalid value in the lead_inbox_token
field will result in a 401
response.
@Troy Tessalone I got lead inbox token copied and pasted from here below:
I have also tried custom request and received 400 error:
@Famai
400 error is different from a 401 error.
Make sure there are no leading/trailing spaces around the input values in all input fields.