Skip to content

NotesAPI.addNote seems to use V2 API #711

Description

@marcoow

The addNote function seems to user V2 API which results in an Unexpected Server Error response:

{
  "transitional": {
    "silentJSONParsing": true,
    "forcedJSONParsing": true,
    "clarifyTimeoutError": false,
    "legacyInterceptorReqResOrdering": true
  },
  "adapter": [
    "xhr",
    "http",
    "fetch"
  ],
  "transformRequest": [
    null
  ],
  "transformResponse": [
    null
  ],
  "timeout": 0,
  "xsrfCookieName": "XSRF-TOKEN",
  "xsrfHeaderName": "X-XSRF-TOKEN",
  "maxContentLength": -1,
  "maxBodyLength": -1,
  "env": {},
  "headers": {
    "Accept": "application/json, text/plain, */*",
    "Content-Type": "application/json",
    "x-api-token": "e8abc0f291ac9e5bde648aa3daf62f02f2696d69"
  },
  "method": "post",
  "data": "{\"org_id\":12345,\"content\":\"content\"}",
  "url": "https://api.pipedrive.com/api/v2/notes",                                            <- ‼️
  "allowAbsoluteUrls": true
}

This says that Notes are not available via V2 yet: https://pipedrive.readme.io/docs/pipedrive-api-v2#api-v2-availability

The same request with curl using the V1 API works:

curl -X POST -d '{"org_id":12345,"content":"some content"}' --url "https://mainmatter.pipedrive.com/api/v1/notes" --header "x-api-token: e8abc0f291ac9e5bde648aa3daf62f02f2696d69" --header "Content-Type: application/json"

Activity

  1. marcoow commented on Mar 9, 2026

    @marcoow
    Author

    nvm, I just realized I have to set the basePath to /v1 myself in the config…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions