-
Notifications
You must be signed in to change notification settings - Fork 121
Document the My Bookmarks API #421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,222 @@ | ||
| My bookmarks | ||
| ============ | ||
|
|
||
| Endpoints for listing the current user's bookmarked recordings and for | ||
| bookmarking or unbookmarking an individual recording. | ||
|
|
||
| A bookmark links the current user to a single recording (such as a message, | ||
| to-do, document, or card). Bookmarks are personal: they are visible only to the | ||
| user who created them. | ||
|
|
||
| Endpoints: | ||
|
|
||
| - [Get bookmarks](#get-bookmarks) | ||
| - [Get a bookmark](#get-a-bookmark) | ||
| - [Create a bookmark](#create-a-bookmark) | ||
| - [Delete a bookmark](#delete-a-bookmark) | ||
|
|
||
|
|
||
| Get bookmarks | ||
| ------------- | ||
|
|
||
| * `GET /my/bookmarks.json` will return a paginated list of the current user's | ||
| bookmarked recordings, most recently bookmarked first. | ||
|
|
||
| Each entry wraps the [recording](recordings.md) that was bookmarked along with | ||
| the bookmark's own `id`, `created_at`, and `updated_at`. See [pagination](../README.md#pagination) | ||
| for how the `X-Total-Count` and `Link` response headers work. | ||
|
|
||
| ###### Example JSON Response | ||
| <!-- START GET /my/bookmarks.json --> | ||
| ```json | ||
| [ | ||
| { | ||
| "id": 430859449, | ||
| "created_at": "2026-07-22T22:14:19.716Z", | ||
| "updated_at": "2026-07-22T22:14:19.716Z", | ||
| "recording": { | ||
| "id": 1069479842, | ||
| "status": "active", | ||
| "visible_to_clients": false, | ||
| "created_at": "2026-06-08T21:14:00.000Z", | ||
| "updated_at": "2026-07-22T21:57:48.150Z", | ||
| "title": "We won Leto!", | ||
| "inherits_status": true, | ||
| "type": "Message", | ||
| "url": "https://3.basecampapi.com/195539477/buckets/2085958504/messages/1069479842.json", | ||
| "app_url": "https://3.basecamp.com/195539477/buckets/2085958504/messages/1069479842", | ||
| "bookmark_url": "https://3.basecampapi.com/195539477/my/bookmarks/BAh7BkkiC19yYWlscwY6BkVUewdJIglkYXRhBjsAVEkiLmdpZDovL2JjMy9SZWNvcmRpbmcvMTA2OTQ3OTg0Mj9leHBpcmVzX2luBjsAVEkiCHB1cgY7AFRJIg1yZWFkYWJsZQY7AFQ=--1708f8c9adb5dd70ebcc6837a0c054bacaf792fe.json", | ||
| "subscription_url": "https://3.basecampapi.com/195539477/buckets/2085958504/recordings/1069479842/subscription.json", | ||
| "parent": { | ||
| "id": 1069479828, | ||
| "title": "Message Board", | ||
| "type": "Message::Board", | ||
| "url": "https://3.basecampapi.com/195539477/buckets/2085958504/message_boards/1069479828.json", | ||
| "app_url": "https://3.basecamp.com/195539477/buckets/2085958504/message_boards/1069479828" | ||
| }, | ||
| "bucket": { | ||
| "id": 2085958504, | ||
| "name": "The Leto Laptop", | ||
| "type": "Project" | ||
| }, | ||
| "creator": { | ||
| "id": 1049715913, | ||
| "attachable_sgid": "BAh7BkkiC19yYWlscwY6BkVUewdJIglkYXRhBjsAVEkiK2dpZDovL2JjMy9QZXJzb24vMTA0OTcxNTkxMz9leHBpcmVzX2luBjsAVEkiCHB1cgY7AFRJIg9hdHRhY2hhYmxlBjsAVA==--e627c45e6b34e08862da23906862412620e4d5d9", | ||
| "name": "Victor Cooper", | ||
| "personable_type": "User", | ||
| "title": "Chief Strategist", | ||
| "tagline": "Don't let your dreams be dreams", | ||
| "location": "Chicago, IL", | ||
| "created_at": "2026-07-22T21:49:53.455Z", | ||
| "updated_at": "2026-07-22T21:49:55.003Z", | ||
| "email_address": "victor@honchodesign.com", | ||
| "bio": "Don't let your dreams be dreams", | ||
| "admin": true, | ||
| "owner": true, | ||
| "client": false, | ||
| "employee": true, | ||
| "time_zone": "America/Chicago", | ||
| "avatar_url": "https://3.basecampapi.com/195539477/people/BAhpBMlkkT4=--5fe7b70fbee7a7f0e2e1e19df7579e5d880c753d/avatar", | ||
| "company": { | ||
| "id": 1033447817, | ||
| "name": "Honcho Design" | ||
| }, | ||
| "can_ping": true, | ||
| "can_manage_projects": true, | ||
| "can_manage_people": true, | ||
| "can_access_timesheet": true, | ||
| "can_access_hill_charts": true | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| ``` | ||
| <!-- END GET /my/bookmarks.json --> | ||
| ###### Copy as cURL | ||
|
|
||
| ```shell | ||
| curl -s -H "Authorization: Bearer $ACCESS_TOKEN" https://3.basecampapi.com/$ACCOUNT_ID/my/bookmarks.json | ||
| ``` | ||
|
|
||
|
|
||
| Get a bookmark | ||
| -------------- | ||
|
|
||
| * `GET /recordings/2/bookmark.json` will report whether the recording with the | ||
| given ID is bookmarked by the current user. | ||
|
|
||
| The response is `{ "bookmarked": true }` when the recording is bookmarked and | ||
| `{ "bookmarked": false }` otherwise. | ||
|
|
||
| ###### Example JSON Response | ||
| <!-- START GET /recordings/2/bookmark.json --> | ||
| ```json | ||
| { | ||
| "bookmarked": true | ||
| } | ||
| ``` | ||
| <!-- END GET /recordings/2/bookmark.json --> | ||
| ###### Copy as cURL | ||
|
|
||
| ```shell | ||
| curl -s -H "Authorization: Bearer $ACCESS_TOKEN" https://3.basecampapi.com/$ACCOUNT_ID/recordings/2/bookmark.json | ||
| ``` | ||
|
|
||
|
|
||
| Create a bookmark | ||
| ----------------- | ||
|
|
||
| * `POST /recordings/2/bookmark.json` will bookmark the recording with the given | ||
| ID for the current user. | ||
|
|
||
| No parameters are required. This endpoint returns `201 Created` with the | ||
| bookmark. Bookmarking is idempotent — re-bookmarking a recording you've already | ||
| bookmarked returns the existing bookmark and does not create a duplicate. | ||
|
|
||
| ###### Example JSON Response | ||
| <!-- START POST /recordings/2/bookmark.json --> | ||
| ```json | ||
| { | ||
| "id": 430859450, | ||
| "created_at": "2026-07-22T22:14:20.315Z", | ||
| "updated_at": "2026-07-22T22:14:20.315Z", | ||
| "recording": { | ||
| "id": 1069479859, | ||
| "status": "active", | ||
| "visible_to_clients": false, | ||
| "created_at": "2026-06-09T05:40:00.000Z", | ||
| "updated_at": "2026-06-09T05:40:00.000Z", | ||
| "title": "Win pitch", | ||
| "inherits_status": true, | ||
| "type": "Todo", | ||
| "url": "https://3.basecampapi.com/195539477/buckets/2085958504/todos/1069479859.json", | ||
| "app_url": "https://3.basecamp.com/195539477/buckets/2085958504/todos/1069479859", | ||
| "bookmark_url": "https://3.basecampapi.com/195539477/my/bookmarks/BAh7BkkiC19yYWlscwY6BkVUewdJIglkYXRhBjsAVEkiLmdpZDovL2JjMy9SZWNvcmRpbmcvMTA2OTQ3OTg1OT9leHBpcmVzX2luBjsAVEkiCHB1cgY7AFRJIg1yZWFkYWJsZQY7AFQ=--078daba619bc94cd015e87263bee35332b52c51f.json", | ||
| "subscription_url": "https://3.basecampapi.com/195539477/buckets/2085958504/recordings/1069479859/subscription.json", | ||
| "parent": { | ||
| "id": 1069479829, | ||
| "title": "To-dos", | ||
| "type": "Todoset", | ||
| "url": "https://3.basecampapi.com/195539477/buckets/2085958504/todosets/1069479829.json", | ||
| "app_url": "https://3.basecamp.com/195539477/buckets/2085958504/todosets/1069479829" | ||
| }, | ||
| "bucket": { | ||
| "id": 2085958504, | ||
| "name": "The Leto Laptop", | ||
| "type": "Project" | ||
| }, | ||
| "creator": { | ||
| "id": 1049715913, | ||
| "attachable_sgid": "BAh7BkkiC19yYWlscwY6BkVUewdJIglkYXRhBjsAVEkiK2dpZDovL2JjMy9QZXJzb24vMTA0OTcxNTkxMz9leHBpcmVzX2luBjsAVEkiCHB1cgY7AFRJIg9hdHRhY2hhYmxlBjsAVA==--e627c45e6b34e08862da23906862412620e4d5d9", | ||
| "name": "Victor Cooper", | ||
| "personable_type": "User", | ||
| "title": "Chief Strategist", | ||
| "tagline": "Don't let your dreams be dreams", | ||
| "location": "Chicago, IL", | ||
| "created_at": "2026-07-22T21:49:53.455Z", | ||
| "updated_at": "2026-07-22T21:49:55.003Z", | ||
| "email_address": "victor@honchodesign.com", | ||
| "bio": "Don't let your dreams be dreams", | ||
| "admin": true, | ||
| "owner": true, | ||
| "client": false, | ||
| "employee": true, | ||
| "time_zone": "America/Chicago", | ||
| "avatar_url": "https://3.basecampapi.com/195539477/people/BAhpBMlkkT4=--5fe7b70fbee7a7f0e2e1e19df7579e5d880c753d/avatar", | ||
| "company": { | ||
| "id": 1033447817, | ||
| "name": "Honcho Design" | ||
| }, | ||
| "can_ping": true, | ||
| "can_manage_projects": true, | ||
| "can_manage_people": true, | ||
| "can_access_timesheet": true, | ||
| "can_access_hill_charts": true | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
| <!-- END POST /recordings/2/bookmark.json --> | ||
| ###### Copy as cURL | ||
|
|
||
| ```shell | ||
| curl -s -H "Authorization: Bearer $ACCESS_TOKEN" -X POST \ | ||
| https://3.basecampapi.com/$ACCOUNT_ID/recordings/2/bookmark.json | ||
| ``` | ||
|
|
||
|
|
||
| Delete a bookmark | ||
| ----------------- | ||
|
|
||
| * `DELETE /recordings/2/bookmark.json` will remove the current user's bookmark | ||
| for the recording with the given ID. | ||
|
|
||
| This endpoint returns `204 No Content` if the removal was a success. Deleting a | ||
| bookmark that doesn't exist will also return `204 No Content`. | ||
|
|
||
| ###### Copy as cURL | ||
|
|
||
| ```shell | ||
| curl -s -H "Authorization: Bearer $ACCESS_TOKEN" -X DELETE \ | ||
| https://3.basecampapi.com/$ACCOUNT_ID/recordings/2/bookmark.json | ||
| ``` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.