Receive 401 Unauthorized "User is not authorized" error when trying to create new Matter

293 views
Skip to first unread message

Bill Maya

unread,
Oct 26, 2017, 7:24:02 PM10/26/17
to Clio Developers

I’ve been trying to create a new matter using the https://app.goclio.com/api/v4/matters API call and I’m receiving a 401 Unauthorized “User is not authorized” error message.


Prior to this I created a test application and specified that it would use version 4 of the Clio API. I allowed my Clio account to give my test application access and obtained an access_token. I was able to use this access_token to successfully execute several Get requests.


When I call https://app.goclio.com/api/v4/matters with the application/json body below I get the 401 Unauthorized error


{

"data": {

"client": {

"id": 946011670

},

"status": "open",

"description": "This matter was created using the Clio API v4."

}

}


From reviewing the v4 API documentation it looks like the client id and description are the only two required pieces of data (the client id already exists in my account as a contact).


Any suggestions?

Bill Maya

unread,
Oct 26, 2017, 8:04:37 PM10/26/17
to Clio Developers
I think I figured it out. 

I'm using Postman and for the Get requests I had my access_token setup as a global variable for authentication. I was using the key/value pair of Authorization/Bearer [access_token].

This seemed to work fine for Get requests but but to get the Post request to work I had to put the global key/value pair in the actual API call as in the header for it to work.

Raj Saye

unread,
Jul 31, 2021, 7:50:35 AM7/31/21
to Clio Developers
HI Bill, 

Do you have a code snippet because I am having a similar issue. I am trying to create a new matter and getting  Authorization error.

Best Regards,
Rajeev

Reply all
Reply to author
Forward
0 new messages