# Studio document create endpoint 500 error

**URL:** <https://community.pickaxe.co/t/studio-document-create-endpoint-500-error/6392>\
**Category:** Bugs / Site Issues\
**Tags:** knowledge-base, studio\
**Created:** [July 1, 2025, 12:04am UTC](https://community.pickaxe.co/t/studio-document-create-endpoint-500-error/6392 "2025-07-01T00:04:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user33](https://avatars.discourse-cdn.com/v4/letter/u/53a042/32.png) [@user33](https://community.pickaxe.co/u/user33)\
**Post date:** [July 1, 2025, 12:04am UTC](https://community.pickaxe.co/t/studio-document-create-endpoint-500-error/6392/1 "2025-07-01T00:04:57Z")

</div>

I have a pro plan with unlimited documents but I am unable to add a new document to a studio knowledge base. I can successfully call the `studio/document/list` endpoint with the API key I generated, and I tried generating a second key as well but neither key works to create documents.

**Request** :

```auto
curl -X "POST" "https://api.pickaxe.co/v1/studio/document/create" \
     -H 'Authorization: Bearer studio-XXX' \
     -H 'Content-Type: application/json' \
     -d $'{
  "name": "Test Doc",
  "rawContent": "The document body for generating answers"
}'

```

**Response:**

```plaintext
HTTP/1.1 500 Internal Server Error
Alt-Svc: h3=":443"; ma=2592000
Content-Length: 97
Content-Type: application/json
Date: Mon, 30 Jun 2025 23:52:31 GMT
Modal-Function-Call-Id: fc-01JZ1M3C538FRFTS5CXHYAG1X5
Vary: accept-encoding
Connection: close

{"success":false,"error":"Document limit reached for your plan. You can only have -1 documents."}

```

I tried generating the request with a few different tools (python, curl, etc), but they all came back with the same response.

---

<div class="post-metadata">

**Author:** ![stephenasuncion](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/stephenasuncion/32/3111_2.png) [@stephenasuncion](https://community.pickaxe.co/u/stephenasuncion)\
**Post date:** [July 1, 2025, 12:07am UTC](https://community.pickaxe.co/t/studio-document-create-endpoint-500-error/6392/2 "2025-07-01T00:07:56Z")

</div>

Hi @user33,

Should be fixed, thank you!

---

<div class="post-metadata">

**Author:** ![user33](https://avatars.discourse-cdn.com/v4/letter/u/53a042/32.png) [@user33](https://community.pickaxe.co/u/user33)\
**Post date:** [July 1, 2025, 12:09am UTC](https://community.pickaxe.co/t/studio-document-create-endpoint-500-error/6392/3 "2025-07-01T00:09:17Z")

</div>

Oh wow that was fast, thank you!

---

<div class="post-metadata">

**Author:** ![stephenasuncion](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.pickaxe.co/stephenasuncion/32/3111_2.png) [@stephenasuncion](https://community.pickaxe.co/u/stephenasuncion)\
**Post date:** [July 1, 2025, 1:26am UTC](https://community.pickaxe.co/t/studio-document-create-endpoint-500-error/6392/4 "2025-07-01T01:26:52Z")

</div>

Closed on July 1, 2025, 1:26am UTC


