Views

Get a specific view

Retrieves details of a specific view by its ID.

GET
/v1/views/
id
curl --request GET \
  --url https://api.lunary.ai/v1/views/{id} \
  --header 'Authorization: Bearer <api_key>' \
  --header 'Content-Type: application/json'

Example response:

{
  "id": "1234abcd",
  "name": "LLM Conversations",
  "data": [
    "AND",
    {
      "id": "models",
      "params": {
        "models": [
          "gpt-4"
        ]
      }
    }
  ],
  "columns": {
    "id": "ID",
    "content": "Content"
  },
  "icon": "chat",
  "type": "llm",
  "projectId": "project123",
  "ownerId": "user456",
  "updatedAt": "2023-04-01T12:00:00Z"
}

Parameters

NameLocated InRequiredSchema
idpathYesstring

Responses

200

Successful response

PropertyTypeDescription
idstring
namestring
dataarray
columnsarray
iconstring
typestring
projectIdstring
ownerIdstring
updatedAtstring

404

View not found

Questions? We're here to help.

Email