Overview
POST/content/notesnotes

Create a note (a markdown doc + a marker); the title derives from the first line

Create a record in notes.

Auth: bearerAuth — calls run as the authenticated user.

Request body

application/json · optional

  • contentstring

    The note’s raw markdown body.

Example
{
  "content": "string"
}
Responses
201

The created note

  • idstring
  • contentstring
  • titlestring

    Derived from the doc’s first line.

  • createdAtstring
  • updatedAtstring
Example
{
  "id": "string",
  "content": "string",
  "title": "string",
  "createdAt": "string",
  "updatedAt": "string"
}
400

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X POST "https://api.agenticdeveloperhub.com/content/notes" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "string"
}'
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/content/notes", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
  },
  body: "{\n  \"content\": \"string\"\n}",
});
const data = await res.json();