Skip to main content
GET
/
api
/
favorites
/
combined
Get favorites combined
curl --request GET \
  --url https://api.morphic.io/api/favorites/combined \
  --header 'X-API-Key: <api-key>'
{
  "folders": [
    {
      "name": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "display_order": 123,
      "is_hidden": false,
      "color": "<string>",
      "children_count": 123,
      "favorites_count": 123
    }
  ],
  "favorites": [
    {
      "entity_type": "<string>",
      "entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "display_order": 123,
      "notes": "<string>",
      "entity_name": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key (sk_xxx) from Developer Settings. No X-Account-ID needed.

Headers

x-account-id
string | null

Query Parameters

folder_id
string<uuid> | null

Filter favorites by folder ID

entity_type
string | null

Filter favorites by entity type

Response

Successful Response

Combined response with both folders and favorites.

folders
FavoriteFolderResponse · object[]

List of favorite folders

favorites
FavoriteResponse · object[]

List of favorites