All URIs are relative to https://api.pipedrive.com/v1.
| Method | HTTP request | Description |
|---|---|---|
| addNote() | POST /notes | Add a note |
| addNoteComment() | POST /notes/{id}/comments | Add a comment to a note |
| deleteComment() | DELETE /notes/{id}/comments/{commentId} | Delete a comment related to a note |
| deleteNote() | DELETE /notes/{id} | Delete a note |
| getComment() | GET /notes/{id}/comments/{commentId} | Get one comment |
| getNote() | GET /notes/{id} | Get one note |
| getNoteComments() | GET /notes/{id}/comments | Get all comments for a note |
| getNotes() | GET /notes | Get all notes |
| updateCommentForNote() | PUT /notes/{id}/comments/{commentId} | Update a comment related to a note |
| updateNote() | PUT /notes/{id} | Update a note |
addNote($add_note_request): \Pipedrive\versions\v1\Model\PostNoteAdd a note
Adds a new note.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('x-api-token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = (new Pipedrive\versions\v1\Configuration())->setApiKeyPrefix('x-api-token', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = (new Pipedrive\versions\v1\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Pipedrive\versions\v1\Api\NotesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$add_note_request = new \Pipedrive\versions\v1\Model\AddNoteRequest(); // \Pipedrive\versions\v1\Model\AddNoteRequest
try {
$result = $apiInstance->addNote($add_note_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->addNote: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| add_note_request | \Pipedrive\versions\v1\Model\AddNoteRequest | [optional] |
\Pipedrive\versions\v1\Model\PostNote
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
addNoteComment($id, $comment_post_put_object): \Pipedrive\versions\v1\Model\PostCommentAdd a comment to a note
Adds a new comment to a note.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('x-api-token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = (new Pipedrive\versions\v1\Configuration())->setApiKeyPrefix('x-api-token', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = (new Pipedrive\versions\v1\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Pipedrive\versions\v1\Api\NotesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The ID of the note
$comment_post_put_object = new \Pipedrive\versions\v1\Model\CommentPostPutObject(); // \Pipedrive\versions\v1\Model\CommentPostPutObject
try {
$result = $apiInstance->addNoteComment($id, $comment_post_put_object);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->addNoteComment: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The ID of the note | |
| comment_post_put_object | \Pipedrive\versions\v1\Model\CommentPostPutObject | [optional] |
\Pipedrive\versions\v1\Model\PostComment
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteComment($id, $comment_id): \Pipedrive\versions\v1\Model\DeleteCommentDelete a comment related to a note
Deletes a comment.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('x-api-token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = (new Pipedrive\versions\v1\Configuration())->setApiKeyPrefix('x-api-token', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = (new Pipedrive\versions\v1\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Pipedrive\versions\v1\Api\NotesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The ID of the note
$comment_id = 'comment_id_example'; // string | The ID of the comment
try {
$result = $apiInstance->deleteComment($id, $comment_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->deleteComment: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The ID of the note | |
| comment_id | string | The ID of the comment |
\Pipedrive\versions\v1\Model\DeleteComment
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteNote($id): \Pipedrive\versions\v1\Model\DeleteNoteDelete a note
Deletes a specific note.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('x-api-token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = (new Pipedrive\versions\v1\Configuration())->setApiKeyPrefix('x-api-token', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = (new Pipedrive\versions\v1\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Pipedrive\versions\v1\Api\NotesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The ID of the note
try {
$result = $apiInstance->deleteNote($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->deleteNote: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The ID of the note |
\Pipedrive\versions\v1\Model\DeleteNote
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getComment($id, $comment_id): \Pipedrive\versions\v1\Model\PostCommentGet one comment
Returns the details of a comment.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('x-api-token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = (new Pipedrive\versions\v1\Configuration())->setApiKeyPrefix('x-api-token', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = (new Pipedrive\versions\v1\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Pipedrive\versions\v1\Api\NotesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The ID of the note
$comment_id = 'comment_id_example'; // string | The ID of the comment
try {
$result = $apiInstance->getComment($id, $comment_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->getComment: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The ID of the note | |
| comment_id | string | The ID of the comment |
\Pipedrive\versions\v1\Model\PostComment
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNote($id): \Pipedrive\versions\v1\Model\PostNoteGet one note
Returns details about a specific note.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('x-api-token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = (new Pipedrive\versions\v1\Configuration())->setApiKeyPrefix('x-api-token', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = (new Pipedrive\versions\v1\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Pipedrive\versions\v1\Api\NotesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The ID of the note
try {
$result = $apiInstance->getNote($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->getNote: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The ID of the note |
\Pipedrive\versions\v1\Model\PostNote
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNoteComments($id, $start, $limit): \Pipedrive\versions\v1\Model\GetCommentsGet all comments for a note
Returns all comments associated with a note.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('x-api-token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = (new Pipedrive\versions\v1\Configuration())->setApiKeyPrefix('x-api-token', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = (new Pipedrive\versions\v1\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Pipedrive\versions\v1\Api\NotesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The ID of the note
$start = 0; // int | Pagination start
$limit = 56; // int | Items shown per page
try {
$result = $apiInstance->getNoteComments($id, $start, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->getNoteComments: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The ID of the note | |
| start | int | Pagination start | [optional] [default to 0] |
| limit | int | Items shown per page | [optional] |
\Pipedrive\versions\v1\Model\GetComments
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNotes($user_id, $lead_id, $deal_id, $person_id, $org_id, $project_id, $start, $limit, $sort, $start_date, $end_date, $updated_since, $pinned_to_lead_flag, $pinned_to_deal_flag, $pinned_to_organization_flag, $pinned_to_person_flag, $pinned_to_project_flag): \Pipedrive\versions\v1\Model\GetNotesGet all notes
Returns all notes.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('x-api-token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = (new Pipedrive\versions\v1\Configuration())->setApiKeyPrefix('x-api-token', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = (new Pipedrive\versions\v1\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Pipedrive\versions\v1\Api\NotesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$user_id = 56; // int | The ID of the user whose notes to fetch. If omitted, notes by all users will be returned.
$lead_id = 'lead_id_example'; // string | The ID of the lead which notes to fetch. If omitted, notes about all leads will be returned.
$deal_id = 56; // int | The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned.
$person_id = 56; // int | The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned.
$org_id = 56; // int | The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned.
$project_id = 56; // int | The ID of the project which notes to fetch. If omitted, notes about all projects will be returned.
$start = 0; // int | Pagination start
$limit = 56; // int | Items shown per page
$sort = 'sort_example'; // string | The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `content`, `add_time`, `update_time`.
$start_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The date in format of YYYY-MM-DD from which notes to fetch
$end_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The date in format of YYYY-MM-DD until which notes to fetch to
$updated_since = 2025-01-01T10:20Z; // \DateTime | If set, only notes with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
$pinned_to_lead_flag = new \Pipedrive\versions\v1\Model\\Pipedrive\versions\v1\Model\NumberBoolean(); // \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to lead pinning state
$pinned_to_deal_flag = new \Pipedrive\versions\v1\Model\\Pipedrive\versions\v1\Model\NumberBoolean(); // \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to deal pinning state
$pinned_to_organization_flag = new \Pipedrive\versions\v1\Model\\Pipedrive\versions\v1\Model\NumberBoolean(); // \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to organization pinning state
$pinned_to_person_flag = new \Pipedrive\versions\v1\Model\\Pipedrive\versions\v1\Model\NumberBoolean(); // \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to person pinning state
$pinned_to_project_flag = new \Pipedrive\versions\v1\Model\\Pipedrive\versions\v1\Model\NumberBoolean(); // \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to project pinning state
try {
$result = $apiInstance->getNotes($user_id, $lead_id, $deal_id, $person_id, $org_id, $project_id, $start, $limit, $sort, $start_date, $end_date, $updated_since, $pinned_to_lead_flag, $pinned_to_deal_flag, $pinned_to_organization_flag, $pinned_to_person_flag, $pinned_to_project_flag);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->getNotes: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| user_id | int | The ID of the user whose notes to fetch. If omitted, notes by all users will be returned. | [optional] |
| lead_id | string | The ID of the lead which notes to fetch. If omitted, notes about all leads will be returned. | [optional] |
| deal_id | int | The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. | [optional] |
| person_id | int | The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. | [optional] |
| org_id | int | The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned. | [optional] |
| project_id | int | The ID of the project which notes to fetch. If omitted, notes about all projects will be returned. | [optional] |
| start | int | Pagination start | [optional] [default to 0] |
| limit | int | Items shown per page | [optional] |
| sort | string | The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `content`, `add_time`, `update_time`. | [optional] |
| start_date | \DateTime | The date in format of YYYY-MM-DD from which notes to fetch | [optional] |
| end_date | \DateTime | The date in format of YYYY-MM-DD until which notes to fetch to | [optional] |
| updated_since | \DateTime | If set, only notes with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. | [optional] |
| pinned_to_lead_flag | \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to lead pinning state | [optional] |
| pinned_to_deal_flag | \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to deal pinning state | [optional] |
| pinned_to_organization_flag | \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to organization pinning state | [optional] |
| pinned_to_person_flag | \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to person pinning state | [optional] |
| pinned_to_project_flag | \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to project pinning state | [optional] |
\Pipedrive\versions\v1\Model\GetNotes
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateCommentForNote($id, $comment_id, $comment_post_put_object): \Pipedrive\versions\v1\Model\PostCommentUpdate a comment related to a note
Updates a comment related to a note.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('x-api-token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = (new Pipedrive\versions\v1\Configuration())->setApiKeyPrefix('x-api-token', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = (new Pipedrive\versions\v1\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Pipedrive\versions\v1\Api\NotesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The ID of the note
$comment_id = 'comment_id_example'; // string | The ID of the comment
$comment_post_put_object = new \Pipedrive\versions\v1\Model\CommentPostPutObject(); // \Pipedrive\versions\v1\Model\CommentPostPutObject
try {
$result = $apiInstance->updateCommentForNote($id, $comment_id, $comment_post_put_object);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->updateCommentForNote: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The ID of the note | |
| comment_id | string | The ID of the comment | |
| comment_post_put_object | \Pipedrive\versions\v1\Model\CommentPostPutObject | [optional] |
\Pipedrive\versions\v1\Model\PostComment
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateNote($id, $note): \Pipedrive\versions\v1\Model\PostNoteUpdate a note
Updates a note.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('x-api-token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = (new Pipedrive\versions\v1\Configuration())->setApiKeyPrefix('x-api-token', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = (new Pipedrive\versions\v1\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Pipedrive\versions\v1\Api\NotesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The ID of the note
$note = new \Pipedrive\versions\v1\Model\Note(); // \Pipedrive\versions\v1\Model\Note
try {
$result = $apiInstance->updateNote($id, $note);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->updateNote: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The ID of the note | |
| note | \Pipedrive\versions\v1\Model\Note | [optional] |
\Pipedrive\versions\v1\Model\PostNote
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]