API create folder

I’m trying to use the api for creating a folder, I’m always getting the following error :

"detail": "Authentication credentials were not provided."

Here is my cURL command :

curl -d  "operation=mkdir" -v  -H 'Authorization: Token' -H 'Accept: application/json; charset=utf-8; indent=4' http://example.com/api2/repos/LIB_ID/dir/?p=/TEST

Did you create an Authorization Token, first?

#  curl -k -d "username=seafile@example.com&password=secret" https://example.com/api2/auth-token/
# curl -d "operation=mkdir" -v -H 'Authorization: Token 4330732...77cb' -H ...

Yes, I did create an API token. I even used it for creating a lib

Here is the full response I’m getting :

POST /api2/repos/LIB_ID/dir/?p=/TEST HTTP/1.1
User-Agent: curl/7.29.0
Host: example.com
Authorization: Token
Accept: application/json; charset=utf-8; indent=4
Content-Length: 15
Content-Type: application/x-www-form-urlencoded

  • upload completely sent off: 15 out of 15 bytes
    < HTTP/1.1 403 Forbidden
    < Server: nginx
    < Date: Fri, 06 Dec 2019 09:36:29 GMT
    < Content-Type: application/json; charset=utf-8; indent=4
    < Content-Length: 65
    < Connection: keep-alive
    < Vary: Accept, Accept-Language, Cookie
    < Content-Language: en
    “detail”: “Authentication credentials were not provided.”
  • Connection #0 to host example.com left intact

I got the same error when I wanted to move a file. But even though I got the error, the operation was still successful

Thanks for the reply, I have no result on my side