Docs menu

Create documents with the API

After issuing a workspace API key, create a new work document with POST /api/v1/documents.

curl -X POST https://penswork.com/api/v1/documents   -H "Authorization: Bearer psw_live_..."   -H "Content-Type: application/json"   -d '{"title":"Demand letter","content":"Document body"}'

If title is omitted, Pen's Work uses roughly the first 20 characters of content as an automatic title. The response includes both the expert edit URL and the client view URL.