Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: upgrade fern for SDK majors (#11267)

Hassieb Pakzad784ab09e436a
diff --git a/fern/apis/client/generators.yml b/fern/apis/client/generators.yml
index 519a8099c9..26e2273294 100644
--- a/fern/apis/client/generators.yml
+++ b/fern/apis/client/generators.yml
@@ -2,15 +2,6 @@ default-group: local
groups:
local:
generators:
- # - name: fernapi/fern-typescript-browser-sdk
- # version: 0.7.1
- # output:
- # location: npm
- # url: npm.buildwithfern.com
- # package-name: "@finto-fern/react-client"
- # config:
- # namespaceExport: Langfuse
- # allowCustomFetcher: true
- name: fernapi/fern-openapi
version: 0.1.7
output:
@@ -19,3 +10,4 @@ groups:
config:
namespaceExport: Langfuse
allowCustomFetcher: true
+ smart-casing: false
diff --git a/fern/apis/organizations/definition/api.yml b/fern/apis/organizations/definition/api.yml
index 2be429290a..e5826a4a28 100644
--- a/fern/apis/organizations/definition/api.yml
+++ b/fern/apis/organizations/definition/api.yml
@@ -1,22 +1,21 @@
name: langfuse-organizations
docs: |
## General Notes
-
+
This admin API is only available on self-hosted instances, not on Langfuse Cloud.
An administrator must set the `ADMIN_API_KEY` environment variable to use this API.
-
+
## Authentication
Authenticate with the API by setting the Authorization header to `Bearer $ADMIN_API_KEY` where
`$ADMIN_API_KEY` is the API key set via the container environment.
-
+
## Exports
- OpenAPI spec: https://cloud.langfuse.com/generated/organizations-api/openapi.yml
- - Postman collection: https://cloud.langfuse.com/generated/organizations-postman/collection.json
-
+
## Looking for the Langfuse API?
-
+
Are you looking for the full Langfuse API?
Check out our [API reference](https://api.reference.langfuse.com/#overview).
diff --git a/fern/apis/organizations/generators.yml b/fern/apis/organizations/generators.yml
index c85aff2983..589374b29b 100644
--- a/fern/apis/organizations/generators.yml
+++ b/fern/apis/organizations/generators.yml
@@ -10,8 +10,4 @@ groups:
config:
namespaceExport: Langfuse
allowCustomFetcher: true
- - name: fernapi/fern-postman
- version: 0.0.45
- output:
- location: local-file-system
- path: ../../../web/public/generated/organizations-postman
+ smart-casing: false
diff --git a/fern/apis/server/definition/api.yml b/fern/apis/server/definition/api.yml
index 79332376aa..ee2d833871 100644
--- a/fern/apis/server/definition/api.yml
+++ b/fern/apis/server/definition/api.yml
@@ -10,7 +10,6 @@ docs: |
## Exports
- OpenAPI spec: https://cloud.langfuse.com/generated/api/openapi.yml
- - Postman collection: https://cloud.langfuse.com/generated/postman/collection.json
error-discrimination:
strategy: status-code
diff --git a/fern/apis/server/definition/commons.yml b/fern/apis/server/definition/commons.yml
index 2080979cdd..bfbea70217 100644
--- a/fern/apis/server/definition/commons.yml
+++ b/fern/apis/server/definition/commons.yml
@@ -781,6 +781,7 @@ types:
union:
- optional<string>
- optional<integer>
+ - optional<float>
- optional<boolean>
- optional<list<string>>
CommentObjectType:
diff --git a/fern/apis/server/definition/prompts.yml b/fern/apis/server/definition/prompts.yml
index e7248e6fc2..7e7f0e670a 100644
--- a/fern/apis/server/definition/prompts.yml
+++ b/fern/apis/server/definition/prompts.yml
@@ -99,15 +99,17 @@ types:
docs: Config object of the most recent prompt version that matches the filters (if any are provided)
CreatePromptRequest:
+ discriminated: false
union:
- chat: CreateChatPromptRequest
- text: CreateTextPromptRequest
+ - CreateChatPromptRequest
+ - CreateTextPromptRequest
CreateChatPromptRequest:
properties:
name: string
prompt: list<ChatMessageWithPlaceholders>
config: optional<unknown>
+ type: CreateChatPromptType
labels:
type: optional<list<string>>
docs: List of deployment labels of this prompt version.
@@ -123,6 +125,7 @@ types:
name: string
prompt: string
config: optional<unknown>
+ type: optional<CreateTextPromptType>
labels:
type: optional<list<string>>
docs: List of deployment labels of this prompt version.
@@ -162,9 +165,10 @@ types:
docs: The dependency resolution graph for the current prompt. Null if prompt has no dependencies.
ChatMessageWithPlaceholders:
+ discriminated: false
union:
- chatmessage: ChatMessage
- placeholder: PlaceholderMessage
+ - ChatMessage
+ - PlaceholderMessage
ChatMessage:
properties:
@@ -172,11 +176,22 @@ types:
type: string
content:
type: string
+ type:
+ type: optional<ChatMessageType>
+
+ ChatMessageType:
+ enum:
+ - chatmessage
PlaceholderMessage:
properties:
name:
type: string
+ type: optional<PlaceholderMessageType>
+
+ PlaceholderMessageType:
+ enum:
+ - placeholder
TextPrompt:
extends: BasePrompt
@@ -187,3 +202,11 @@ types:
extends: BasePrompt
properties:
prompt: list<ChatMessageWithPlaceholders>
+
+ CreateChatPromptType:
+ enum:
+ - chat
+
+ CreateTextPromptType:
+ enum:
+ - text
diff --git a/fern/apis/server/generators.yml b/fern/apis/server/generators.yml
index 54d9552191..f3fe3b16dd 100644
--- a/fern/apis/server/generators.yml
+++ b/fern/apis/server/generators.yml
@@ -8,27 +8,20 @@ groups:
output:
location: local-file-system
path: ../../../web/public/generated/api
+ smart-casing: false
- name: fernapi/fern-python-sdk
- version: 2.16.0
+ version: 4.46.2
output:
location: local-file-system
path: ../../../generated/python
config:
- client_class_name: FernLangfuse
- improved_imports: false
- inline_request_params: false
pydantic_config:
- require_optional_fields: false
- use_str_enums: false
-
- # - name: fernapi/fern-java-sdk
- # version: 2.20.1
- # output:
- # location: local-file-system
- # path: ../../../../langfuse-java/src/main/java/com/langfuse/client/
- # config:
- # client-class-name: LangfuseClient
+ enum_type: python_enums
+ version: v2
+ client:
+ class_name: LangfuseAPI
+ smart-casing: true
- name: fernapi/fern-typescript-node-sdk
version: 2.12.3
@@ -44,9 +37,4 @@ groups:
fileResponseType: binary-response
streamType: web
omitFernHeaders: true
-
- - name: fernapi/fern-postman
- version: 0.0.45
- output:
- location: local-file-system
- path: ../../../web/public/generated/postman
+ smart-casing: false
diff --git a/fern/fern.config.json b/fern/fern.config.json
index c44d94b6f5..1c91759848 100644
--- a/fern/fern.config.json
+++ b/fern/fern.config.json
@@ -1,4 +1,4 @@
{
"organization": "langfuse",
- "version": "0.77.5"
-}
\ No newline at end of file
+ "version": "3.30.3"
+}
diff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.yml
index 382b3b9cd4..3754603a54 100644
--- a/web/public/generated/api/openapi.yml
+++ b/web/public/generated/api/openapi.yml
@@ -20,9 +20,6 @@ info:
- OpenAPI spec: https://cloud.langfuse.com/generated/api/openapi.yml
-
- - Postman collection:
- https://cloud.langfuse.com/generated/postman/collection.json
paths:
/api/public/annotation-queues:
get:
@@ -4526,7 +4523,7 @@ paths:
API key)
operationId: scim_getServiceProviderConfig
tags:
- - SCIM
+ - Scim
parameters: []
responses:
'200':
@@ -4567,7 +4564,7 @@ paths:
description: Get SCIM Resource Types (requires organization-scoped API key)
operationId: scim_getResourceTypes
tags:
- - SCIM
+ - Scim
parameters: []
responses:
'200':
@@ -4608,7 +4605,7 @@ paths:
description: Get SCIM Schemas (requires organization-scoped API key)
operationId: scim_getSchemas
tags:
- - SCIM
+ - Scim
parameters: []
responses:
'200':
@@ -4649,7 +4646,7 @@ paths:
description: List users in the organization (requires organization-scoped API key)
operationId: scim_listUsers
tags:
- - SCIM
+ - Scim
parameters:
- name: filter
in: query
@@ -4712,7 +4709,7 @@ paths:
key)
operationId: scim_createUser
tags:
- - SCIM
+ - Scim
parameters: []
responses:
'200':
@@ -4783,7 +4780,7 @@ paths:
description: Get a specific user by ID (requires organization-scoped API key)
operationId: scim_getUser
tags:
- - SCIM
+ - Scim
parameters:
- name: userId
in: path
@@ -4831,7 +4828,7 @@ paths:
does not delete the user entity itself.
operationId: scim_deleteUser
tags:
- - SCIM
+ - Scim
parameters:
- name: userId
in: path
@@ -7905,6 +7902,9 @@ components:
nullable: true
- type: integer
nullable: true
+ - type: integer
+ format: float
+ nullable: true
- type: boolean
nullable: true
- type: array
@@ -9787,28 +9787,8 @@ components:
CreatePromptRequest:
title: CreatePromptRequest
oneOf:
- - type: object
- allOf:
- - type: object
- properties:
- type:
- type: string
- enum:
- - chat
- - $ref: '#/components/schemas/CreateChatPromptRequest'
- required:
- - type
- - type: object
- allOf:
- - type: object
- properties:
- type:
- type: string
- enum:
- - text
- - $ref: '#/components/schemas/CreateTextPromptRequest'
- required:
- - type
+ - $ref: '#/components/schemas/CreateChatPromptRequest'
+ - $ref: '#/components/schemas/CreateTextPromptRequest'
CreateChatPromptRequest:
title: CreateChatPromptRequest
type: object
@@ -9821,6 +9801,8 @@ components:
$ref: '#/components/schemas/ChatMessageWithPlaceholders'
config:
nullable: true
+ type:
+ $ref: '#/components/schemas/CreateChatPromptType'
labels:
type: array
items:
@@ -9840,6 +9822,7 @@ components:
required:
- name
- prompt
+ - type
CreateTextPromptRequest:
title: CreateTextPromptRequest
type: object
@@ -9850,6 +9833,9 @@ components:
type: string
config:
nullable: true
+ type:
+ $ref: '#/components/schemas/CreateTextPromptType'
+ nullable: true
labels:
type: array
items:
@@ -9941,28 +9927,8 @@ components:
ChatMessageWithPlaceholders:
title: ChatMessageWithPlaceholders
oneOf:
- - type: object
- allOf:
- - type: object
- properties:
- type:
- type: string
- enum:
- - chatmessage
- - $ref: '#/components/schemas/ChatMessage'
- required:
- - type
- - type: object
- allOf:
- - type: object
- properties:
- type:
- type: string
- enum:
- - placeholder
- - $ref: '#/components/schemas/PlaceholderMessage'
- required:
- - type
+ - $ref: '#/components/schemas/ChatMessage'
+ - $ref: '#/components/schemas/PlaceholderMessage'
ChatMessage:
title: ChatMessage
type: object
@@ -9971,17 +9937,33 @@ components:
type: string
content:
type: string
+ type:
+ $ref: '#/components/schemas/ChatMessageType'
+ nullable: true
required:
- role
- content
+ ChatMessageType:
+ title: ChatMessageType
+ type: string
+ enum:
+ - chatmessage
PlaceholderMessage:
title: PlaceholderMessage
type: object
properties:
name:
type: string
+ type:
+ $ref: '#/components/schemas/PlaceholderMessageType'
+ nullable: true
required:
- name
+ PlaceholderMessageType:
+ title: PlaceholderMessageType
+ type: string
+ enum:
+ - placeholder
TextPrompt:
title: TextPrompt
type: object
@@ -10004,6 +9986,16 @@ components:
- prompt
allOf:
- $ref: '#/components/schemas/BasePrompt'
+ CreateChatPromptType:
+ title: CreateChatPromptType
+ type: string
+ enum:
+ - chat
+ CreateTextPromptType:
+ title: CreateTextPromptType
+ type: string
+ enum:
+ - text
ServiceProviderConfig:
title: ServiceProviderConfig
type: object
diff --git a/web/public/generated/organizations-api/openapi.yml b/web/public/generated/organizations-api/openapi.yml
index 3689f11524..d5db260ebd 100644
--- a/web/public/generated/organizations-api/openapi.yml
+++ b/web/public/generated/organizations-api/openapi.yml
@@ -1,7 +1,7 @@
openapi: 3.0.1
info:
title: langfuse-organizations
- version: ''
+ version: ""
description: >-
## General Notes
@@ -28,9 +28,6 @@ info:
- OpenAPI spec:
https://cloud.langfuse.com/generated/organizations-api/openapi.yml
- - Postman collection:
- https://cloud.langfuse.com/generated/organizations-postman/collection.json
-
## Looking for the Langfuse API?
@@ -47,32 +44,32 @@ paths:
- Organizations
parameters: []
responses:
- '200':
- description: ''
+ "200":
+ description: ""
content:
application/json:
schema:
- $ref: '#/components/schemas/Organizations'
- '400':
- description: ''
+ $ref: "#/components/schemas/Organizations"
+ "400":
+ description: ""
content:
application/json:
schema:
type: string
- '401':
- description: ''
+ "401":
+ description: ""
content:
application/json:
schema:
type: string
- '403':
- description: ''
+ "403":
+ description: ""
content:
application/json:
schema:
type: string
- '405':
- description: ''
+ "405":
+ description: ""
content:
application/json:
schema:
@@ -86,32 +83,32 @@ paths:
- Organizations
parameters: []
responses:
- '200':
- description: ''
+ "200":
+ description: ""
content:
application/json:
schema:
- $ref: '#/components/schemas/Organization'
- '400':
- description: ''
+ $ref: "#/components/schemas/Organization"
+ "400":
+ description: ""
content:
application/json:
schema:
type: string
- '401':
- description: ''
+ "401":
+ description: ""
content:
application/json:
schema:
type: string
- '403':
- description: ''
+ "403":
+ description: ""
content:
application/json:
schema:
type: string
- '405':
- description: ''
+ "405":
+ description: ""
content:
application/json:
schema:
@@ -146,32 +143,32 @@ paths:
schema:
type: string
responses:
- '200':
- description: ''
+ "200":
+ description: ""
content:
application/json:
schema:
- $ref: '#/components/schemas/Organization'
- '400':
- description: ''
+ $ref: "#/components/schemas/Organization"
+ "400":
+ description: ""
content:
application/json:
schema:
type: string
- '401':
- description: ''
+ "401":
+ description: ""
content:
application/json:
schema:
type: string
- '403':
- description: ''
+ "403":
+ description: ""
content:
application/json:
schema:
type: string
- '405':
- description: ''
+ "405":
+ description: ""
content:
application/json:
schema:
@@ -189,32 +186,32 @@ paths:
schema:
type: string
responses:
- '200':
- description: ''
+ "200":
+ description: ""
content:
application/json:
schema:
- $ref: '#/components/schemas/Organization'
- '400':
- description: ''
+ $ref: "#/components/schemas/Organization"
+ "400":
+ description: ""
content:
application/json:
schema:
type: string
- '401':
- description: ''
+ "401":
+ description: ""
content:
application/json:
schema:
type: string
- '403':
- description: ''
+ "403":
+ description: ""
content:
application/json:
schema:
type: string
- '405':
- description: ''
+ "405":
+ description: ""
content:
application/json:
schema:
@@ -248,32 +245,32 @@ paths:
schema:
type: string
responses:
- '200':
- description: ''
+ "200":
+ description: ""
content:
application/json:
schema:
- $ref: '#/components/schemas/DeleteOrganizationResponse'
- '400':
- description: ''
+ $ref: "#/components/schemas/DeleteOrganizationResponse"
+ "400":
+ description: ""
content:
application/json:
schema:
type: string
- '401':
- description: ''
+ "401":
+ description: ""
content:
application/json:
schema:
type: string
- '403':
- description: ''
+ "403":
+ description: ""
content:
application/json:
schema:
type: string
- '405':
- description: ''
+ "405":
+ description: ""
content:
application/json:
schema:
@@ -292,32 +289,32 @@ paths:
schema:
type: string
responses:
- '200':
- description: ''
+ "200":
+ description: ""
content:
application/json:
schema:
- $ref: '#/components/schemas/ApiKeyList'
- '400':
- description: ''
+ $ref: "#/components/schemas/ApiKeyList"
+ "400":
+ description: ""
content:
application/json:
schema:
type: string
- '401':
- description: ''
+ "401":
+ description: ""
content:
application/json:
schema:
type: string
- '403':
- description: ''
+ "403":
+ description: ""
content:
application/json:
schema:
type: string
- '405':
- description: ''
+ "405":
+ description: ""
content:
application/json:
schema:
@@ -335,32 +332,32 @@ paths:
schema:
type: string
responses:
- '200':
- description: ''
+ "200":
+ description: ""
content:
application/json:
schema:
- $ref: '#/components/schemas/ApiKeyResponse'
- '400':
- description: ''
+ $ref: "#/components/schemas/ApiKeyResponse"
+ "400":
+ description: ""
content:
application/json:
schema:
type: string
- '401':
- description: ''
+ "401":
+ description: ""
content:
application/json:
schema:
type: string
- '403':
- description: ''
+ "403":
+ description: ""
content:
application/json:
schema:
type: string
- '405':
- description: ''
+ "405":
+ description: ""
content:
application/json:
schema:
@@ -395,32 +392,32 @@ paths:
schema:
type: string
responses:
- '200':
- description: ''
+ "200":
+ description: ""
content:
application/json:
schema:
- $ref: '#/components/schemas/DeleteOrganizationResponse'
- '400':
- description: ''
+ $ref: "#/components/schemas/DeleteOrganizationResponse"
+ "400":
+ description: ""
content:
application/json:
schema:
type: string
- '401':
- description: ''
+ "401":
+ description: ""
content:
application/json:
schema:
type: string
- '403':
- description: ''
+ "403":
+ description: ""
content:
application/json:
schema:
type: string
- '405':
- description: ''
+ "405":
+ description: ""
content:
application/json:
schema:
@@ -436,7 +433,7 @@ components:
organizations:
type: array
items:
- $ref: '#/components/schemas/Organization'
+ $ref: "#/components/schemas/Organization"
required:
- organizations
Organization:
@@ -458,7 +455,7 @@ components:
projects:
type: array
items:
- $ref: '#/components/schemas/OrganizationProject'
+ $ref: "#/components/schemas/OrganizationProject"
required:
- id
- name
@@ -507,7 +504,7 @@ components:
apiKeys:
type: array
items:
- $ref: '#/components/schemas/ApiKeySummary'
+ $ref: "#/components/schemas/ApiKeySummary"
required:
- apiKeys
ApiKeySummary:
diff --git a/web/public/generated/organizations-postman/collection.json b/web/public/generated/organizations-postman/collection.json
deleted file mode 100644
index b24fedf2bc..0000000000
--- a/web/public/generated/organizations-postman/collection.json
+++ /dev/null
@@ -1,313 +0,0 @@
-{
- "info": {
- "name": "Langfuse Organizations",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
- "description": "## General Notes\n\nThis admin API is only available on self-hosted instances, not on Langfuse Cloud.\nAn administrator must set the `ADMIN_API_KEY` environment variable to use this API.\n\n## Authentication\n\nAuthenticate with the API by setting the Authorization header to `Bearer $ADMIN_API_KEY` where\n`$ADMIN_API_KEY` is the API key set via the container environment.\n\n## Exports\n\n- OpenAPI spec: https://cloud.langfuse.com/generated/organizations-api/openapi.yml\n- Postman collection: https://cloud.langfuse.com/generated/organizations-postman/collection.json\n\n## Looking for the Langfuse API?\n\nAre you looking for the full Langfuse API?\nCheck out our [API reference](https://api.reference.langfuse.com/#overview)."
- },
- "variable": [
- {
- "key": "baseUrl",
- "value": "",
- "type": "string"
- },
- {
- "key": "token",
- "value": "",
- "type": "string"
- }
- ],
- "auth": {
- "type": "bearer",
- "bearer": [
- {
- "key": "token",
- "value": "{{token}}",
- "type": "string"
- }
- ]
- },
- "item": [
- {
- "_type": "container",
- "description": null,
- "name": "Organizations",
- "item": [
- {
- "_type": "endpoint",
- "name": "Get All",
- "request": {
- "description": "Get all organizations",
- "url": {
- "raw": "{{baseUrl}}/api/admin/organizations",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "admin",
- "organizations"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Create",
- "request": {
- "description": "Create a new organization",
- "url": {
- "raw": "{{baseUrl}}/api/admin/organizations",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "admin",
- "organizations"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"name\": \"example\",\n \"metadata\": {\n \"example\": \"UNKNOWN\"\n }\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get By Id",
- "request": {
- "description": "Get organization by ID",
- "url": {
- "raw": "{{baseUrl}}/api/admin/organizations/:organizationId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "admin",
- "organizations",
- ":organizationId"
- ],
- "query": [],
- "variable": [
- {
- "key": "organizationId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Update",
- "request": {
- "description": "Update an organization",
- "url": {
- "raw": "{{baseUrl}}/api/admin/organizations/:organizationId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "admin",
- "organizations",
- ":organizationId"
- ],
- "query": [],
- "variable": [
- {
- "key": "organizationId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "PUT",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"name\": \"example\",\n \"metadata\": {\n \"example\": \"UNKNOWN\"\n }\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete",
- "request": {
- "description": "Delete an organization",
- "url": {
- "raw": "{{baseUrl}}/api/admin/organizations/:organizationId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "admin",
- "organizations",
- ":organizationId"
- ],
- "query": [],
- "variable": [
- {
- "key": "organizationId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Api Keys",
- "request": {
- "description": "Get all API keys for an organization",
- "url": {
- "raw": "{{baseUrl}}/api/admin/organizations/:organizationId/apiKeys",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "admin",
- "organizations",
- ":organizationId",
- "apiKeys"
- ],
- "query": [],
- "variable": [
- {
- "key": "organizationId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Create Api Key",
- "request": {
- "description": "Create a new API key for an organization",
- "url": {
- "raw": "{{baseUrl}}/api/admin/organizations/:organizationId/apiKeys",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "admin",
- "organizations",
- ":organizationId",
- "apiKeys"
- ],
- "query": [],
- "variable": [
- {
- "key": "organizationId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"note\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete Api Key",
- "request": {
- "description": "Delete an API key for an organization",
- "url": {
- "raw": "{{baseUrl}}/api/admin/organizations/:organizationId/apiKeys/:apiKeyId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "admin",
- "organizations",
- ":organizationId",
- "apiKeys",
- ":apiKeyId"
- ],
- "query": [],
- "variable": [
- {
- "key": "organizationId",
- "value": "",
- "description": null
- },
- {
- "key": "apiKeyId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/web/public/generated/postman/collection.json b/web/public/generated/postman/collection.json
deleted file mode 100644
index fb5f2d06bb..0000000000
--- a/web/public/generated/postman/collection.json
+++ /dev/null
@@ -1,3768 +0,0 @@
-{
- "info": {
- "name": "Langfuse",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
- "description": "## Authentication\n\nAuthenticate with the API using [Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication), get API keys in the project settings:\n\n- username: Langfuse Public Key\n- password: Langfuse Secret Key\n\n## Exports\n\n- OpenAPI spec: https://cloud.langfuse.com/generated/api/openapi.yml\n- Postman collection: https://cloud.langfuse.com/generated/postman/collection.json"
- },
- "variable": [
- {
- "key": "baseUrl",
- "value": "",
- "type": "string"
- },
- {
- "key": "username",
- "value": "",
- "type": "string"
- },
- {
- "key": "password",
- "value": "",
- "type": "string"
- }
- ],
- "auth": {
- "type": "basic",
- "basic": [
- {
- "key": "username",
- "value": "{{username}}",
- "type": "string"
- },
- {
- "key": "password",
- "value": "{{password}}",
- "type": "string"
- }
- ]
- },
- "item": [
- {
- "_type": "container",
- "description": null,
- "name": "Annotation Queues",
- "item": [
- {
- "_type": "endpoint",
- "name": "List Queues",
- "request": {
- "description": "Get all annotation queues",
- "url": {
- "raw": "{{baseUrl}}/api/public/annotation-queues?page=&limit=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "annotation-queues"
- ],
- "query": [
- {
- "key": "page",
- "value": "",
- "description": "page number, starts at 1"
- },
- {
- "key": "limit",
- "value": "",
- "description": "limit of items per page"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Create Queue",
- "request": {
- "description": "Create an annotation queue",
- "url": {
- "raw": "{{baseUrl}}/api/public/annotation-queues",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "annotation-queues"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"name\": \"example\",\n \"description\": \"example\",\n \"scoreConfigIds\": [\n \"example\"\n ]\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Queue",
- "request": {
- "description": "Get an annotation queue by ID",
- "url": {
- "raw": "{{baseUrl}}/api/public/annotation-queues/:queueId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "annotation-queues",
- ":queueId"
- ],
- "query": [],
- "variable": [
- {
- "key": "queueId",
- "value": "",
- "description": "The unique identifier of the annotation queue"
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "List Queue Items",
- "request": {
- "description": "Get items for a specific annotation queue",
- "url": {
- "raw": "{{baseUrl}}/api/public/annotation-queues/:queueId/items?status=&page=&limit=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "annotation-queues",
- ":queueId",
- "items"
- ],
- "query": [
- {
- "key": "status",
- "value": "",
- "description": "Filter by status"
- },
- {
- "key": "page",
- "value": "",
- "description": "page number, starts at 1"
- },
- {
- "key": "limit",
- "value": "",
- "description": "limit of items per page"
- }
- ],
- "variable": [
- {
- "key": "queueId",
- "value": "",
- "description": "The unique identifier of the annotation queue"
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Queue Item",
- "request": {
- "description": "Get a specific item from an annotation queue",
- "url": {
- "raw": "{{baseUrl}}/api/public/annotation-queues/:queueId/items/:itemId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "annotation-queues",
- ":queueId",
- "items",
- ":itemId"
- ],
- "query": [],
- "variable": [
- {
- "key": "queueId",
- "value": "",
- "description": "The unique identifier of the annotation queue"
- },
- {
- "key": "itemId",
- "value": "",
- "description": "The unique identifier of the annotation queue item"
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Create Queue Item",
- "request": {
- "description": "Add an item to an annotation queue",
- "url": {
- "raw": "{{baseUrl}}/api/public/annotation-queues/:queueId/items",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "annotation-queues",
- ":queueId",
- "items"
- ],
- "query": [],
- "variable": [
- {
- "key": "queueId",
- "value": "",
- "description": "The unique identifier of the annotation queue"
- }
- ]
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"objectId\": \"example\",\n \"objectType\": \"TRACE\",\n \"status\": \"PENDING\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Update Queue Item",
- "request": {
- "description": "Update an annotation queue item",
- "url": {
- "raw": "{{baseUrl}}/api/public/annotation-queues/:queueId/items/:itemId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "annotation-queues",
- ":queueId",
- "items",
- ":itemId"
- ],
- "query": [],
- "variable": [
- {
- "key": "queueId",
- "value": "",
- "description": "The unique identifier of the annotation queue"
- },
- {
- "key": "itemId",
- "value": "",
- "description": "The unique identifier of the annotation queue item"
- }
- ]
- },
- "header": [],
- "method": "PATCH",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"status\": \"PENDING\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete Queue Item",
- "request": {
- "description": "Remove an item from an annotation queue",
- "url": {
- "raw": "{{baseUrl}}/api/public/annotation-queues/:queueId/items/:itemId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "annotation-queues",
- ":queueId",
- "items",
- ":itemId"
- ],
- "query": [],
- "variable": [
- {
- "key": "queueId",
- "value": "",
- "description": "The unique identifier of the annotation queue"
- },
- {
- "key": "itemId",
- "value": "",
- "description": "The unique identifier of the annotation queue item"
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Create Queue Assignment",
- "request": {
- "description": "Create an assignment for a user to an annotation queue",
- "url": {
- "raw": "{{baseUrl}}/api/public/annotation-queues/:queueId/assignments",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "annotation-queues",
- ":queueId",
- "assignments"
- ],
- "query": [],
- "variable": [
- {
- "key": "queueId",
- "value": "",
- "description": "The unique identifier of the annotation queue"
- }
- ]
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"userId\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete Queue Assignment",
- "request": {
- "description": "Delete an assignment for a user to an annotation queue",
- "url": {
- "raw": "{{baseUrl}}/api/public/annotation-queues/:queueId/assignments",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "annotation-queues",
- ":queueId",
- "assignments"
- ],
- "query": [],
- "variable": [
- {
- "key": "queueId",
- "value": "",
- "description": "The unique identifier of the annotation queue"
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"userId\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Blob Storage Integrations",
- "item": [
- {
- "_type": "endpoint",
- "name": "Get Blob Storage Integrations",
- "request": {
- "description": "Get all blob storage integrations for the organization (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/integrations/blob-storage",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "integrations",
- "blob-storage"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Upsert Blob Storage Integration",
- "request": {
- "description": "Create or update a blob storage integration for a specific project (requires organization-scoped API key). The configuration is validated by performing a test upload to the bucket.",
- "url": {
- "raw": "{{baseUrl}}/api/public/integrations/blob-storage",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "integrations",
- "blob-storage"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "PUT",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"projectId\": \"example\",\n \"type\": \"S3\",\n \"bucketName\": \"example\",\n \"endpoint\": \"example\",\n \"region\": \"example\",\n \"accessKeyId\": \"example\",\n \"secretAccessKey\": \"example\",\n \"prefix\": \"example\",\n \"exportFrequency\": \"hourly\",\n \"enabled\": true,\n \"forcePathStyle\": true,\n \"fileType\": \"JSON\",\n \"exportMode\": \"FULL_HISTORY\",\n \"exportStartDate\": \"1994-11-05T13:15:30Z\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete Blob Storage Integration",
- "request": {
- "description": "Delete a blob storage integration by ID (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/integrations/blob-storage/:id",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "integrations",
- "blob-storage",
- ":id"
- ],
- "query": [],
- "variable": [
- {
- "key": "id",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Comments",
- "item": [
- {
- "_type": "endpoint",
- "name": "Create",
- "request": {
- "description": "Create a comment. Comments may be attached to different object types (trace, observation, session, prompt).",
- "url": {
- "raw": "{{baseUrl}}/api/public/comments",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "comments"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"projectId\": \"example\",\n \"objectType\": \"example\",\n \"objectId\": \"example\",\n \"content\": \"example\",\n \"authorUserId\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get all comments",
- "url": {
- "raw": "{{baseUrl}}/api/public/comments?page=&limit=&objectType=&objectId=&authorUserId=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "comments"
- ],
- "query": [
- {
- "key": "page",
- "value": "",
- "description": "Page number, starts at 1."
- },
- {
- "key": "limit",
- "value": "",
- "description": "Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit"
- },
- {
- "key": "objectType",
- "value": "",
- "description": "Filter comments by object type (trace, observation, session, prompt)."
- },
- {
- "key": "objectId",
- "value": "",
- "description": "Filter comments by object id. If objectType is not provided, an error will be thrown."
- },
- {
- "key": "authorUserId",
- "value": "",
- "description": "Filter comments by author user id."
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get By Id",
- "request": {
- "description": "Get a comment by id",
- "url": {
- "raw": "{{baseUrl}}/api/public/comments/:commentId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "comments",
- ":commentId"
- ],
- "query": [],
- "variable": [
- {
- "key": "commentId",
- "value": "",
- "description": "The unique langfuse identifier of a comment"
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Dataset Items",
- "item": [
- {
- "_type": "endpoint",
- "name": "Create",
- "request": {
- "description": "Create a dataset item",
- "url": {
- "raw": "{{baseUrl}}/api/public/dataset-items",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "dataset-items"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"datasetName\": \"example\",\n \"input\": \"UNKNOWN\",\n \"expectedOutput\": \"UNKNOWN\",\n \"metadata\": \"UNKNOWN\",\n \"sourceTraceId\": \"example\",\n \"sourceObservationId\": \"example\",\n \"id\": \"example\",\n \"status\": \"ACTIVE\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get a dataset item",
- "url": {
- "raw": "{{baseUrl}}/api/public/dataset-items/:id",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "dataset-items",
- ":id"
- ],
- "query": [],
- "variable": [
- {
- "key": "id",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "List",
- "request": {
- "description": "Get dataset items. Optionally specify a version to get the items as they existed at that point in time.\nNote: If version parameter is provided, datasetName must also be provided.",
- "url": {
- "raw": "{{baseUrl}}/api/public/dataset-items?datasetName=&sourceTraceId=&sourceObservationId=&version=&page=&limit=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "dataset-items"
- ],
- "query": [
- {
- "key": "datasetName",
- "value": "",
- "description": null
- },
- {
- "key": "sourceTraceId",
- "value": "",
- "description": null
- },
- {
- "key": "sourceObservationId",
- "value": "",
- "description": null
- },
- {
- "key": "version",
- "value": "",
- "description": "ISO 8601 timestamp (RFC 3339, Section 5.6) in UTC (e.g., \"2026-01-21T14:35:42Z\").\nIf provided, returns state of dataset at this timestamp.\nIf not provided, returns the latest version. Requires datasetName to be specified."
- },
- {
- "key": "page",
- "value": "",
- "description": "page number, starts at 1"
- },
- {
- "key": "limit",
- "value": "",
- "description": "limit of items per page"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete",
- "request": {
- "description": "Delete a dataset item and all its run items. This action is irreversible.",
- "url": {
- "raw": "{{baseUrl}}/api/public/dataset-items/:id",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "dataset-items",
- ":id"
- ],
- "query": [],
- "variable": [
- {
- "key": "id",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Dataset Run Items",
- "item": [
- {
- "_type": "endpoint",
- "name": "Create",
- "request": {
- "description": "Create a dataset run item",
- "url": {
- "raw": "{{baseUrl}}/api/public/dataset-run-items",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "dataset-run-items"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"runName\": \"example\",\n \"runDescription\": \"example\",\n \"metadata\": \"UNKNOWN\",\n \"datasetItemId\": \"example\",\n \"observationId\": \"example\",\n \"traceId\": \"example\",\n \"datasetVersion\": \"1994-11-05T13:15:30Z\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "List",
- "request": {
- "description": "List dataset run items",
- "url": {
- "raw": "{{baseUrl}}/api/public/dataset-run-items?datasetId=&runName=&page=&limit=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "dataset-run-items"
- ],
- "query": [
- {
- "key": "datasetId",
- "value": "",
- "description": null
- },
- {
- "key": "runName",
- "value": "",
- "description": null
- },
- {
- "key": "page",
- "value": "",
- "description": "page number, starts at 1"
- },
- {
- "key": "limit",
- "value": "",
- "description": "limit of items per page"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Datasets",
- "item": [
- {
- "_type": "endpoint",
- "name": "List",
- "request": {
- "description": "Get all datasets",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/datasets?page=&limit=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "datasets"
- ],
- "query": [
- {
- "key": "page",
- "value": "",
- "description": "page number, starts at 1"
- },
- {
- "key": "limit",
- "value": "",
- "description": "limit of items per page"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get a dataset",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/datasets/:datasetName",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "datasets",
- ":datasetName"
- ],
- "query": [],
- "variable": [
- {
- "key": "datasetName",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Create",
- "request": {
- "description": "Create a dataset",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/datasets",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "datasets"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"name\": \"example\",\n \"description\": \"example\",\n \"metadata\": \"UNKNOWN\",\n \"inputSchema\": \"UNKNOWN\",\n \"expectedOutputSchema\": \"UNKNOWN\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Run",
- "request": {
- "description": "Get a dataset run and its items",
- "url": {
- "raw": "{{baseUrl}}/api/public/datasets/:datasetName/runs/:runName",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "datasets",
- ":datasetName",
- "runs",
- ":runName"
- ],
- "query": [],
- "variable": [
- {
- "key": "datasetName",
- "value": "",
- "description": null
- },
- {
- "key": "runName",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete Run",
- "request": {
- "description": "Delete a dataset run and all its run items. This action is irreversible.",
- "url": {
- "raw": "{{baseUrl}}/api/public/datasets/:datasetName/runs/:runName",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "datasets",
- ":datasetName",
- "runs",
- ":runName"
- ],
- "query": [],
- "variable": [
- {
- "key": "datasetName",
- "value": "",
- "description": null
- },
- {
- "key": "runName",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Runs",
- "request": {
- "description": "Get dataset runs",
- "url": {
- "raw": "{{baseUrl}}/api/public/datasets/:datasetName/runs?page=&limit=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "datasets",
- ":datasetName",
- "runs"
- ],
- "query": [
- {
- "key": "page",
- "value": "",
- "description": "page number, starts at 1"
- },
- {
- "key": "limit",
- "value": "",
- "description": "limit of items per page"
- }
- ],
- "variable": [
- {
- "key": "datasetName",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Health",
- "item": [
- {
- "_type": "endpoint",
- "name": "Health",
- "request": {
- "description": "Check health of API and database",
- "url": {
- "raw": "{{baseUrl}}/api/public/health",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "health"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Ingestion",
- "item": [
- {
- "_type": "endpoint",
- "name": "Batch",
- "request": {
- "description": "**Legacy endpoint for batch ingestion for Langfuse Observability.**\n\n-> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://langfuse.com/integrations/native/opentelemetry\n\nWithin each batch, there can be multiple events.\nEach event has a type, an id, a timestamp, metadata and a body.\nInternally, we refer to this as the \"event envelope\" as it tells us something about the event but not the trace.\nWe use the event id within this envelope to deduplicate messages to avoid processing the same event twice, i.e. the event id should be unique per request.\nThe event.body.id is the ID of the actual trace and will be used for updates and will be visible within the Langfuse App.\nI.e. if you want to update a trace, you'd use the same body id, but separate event IDs.\n\nNotes:\n- Introduction to data model: https://langfuse.com/docs/observability/data-model\n- Batch sizes are limited to 3.5 MB in total. You need to adjust the number of events per batch accordingly.\n- The API does not return a 4xx status code for input errors. Instead, it responds with a 207 status code, which includes a list of the encountered errors.",
- "url": {
- "raw": "{{baseUrl}}/api/public/ingestion",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "ingestion"
- ],
- "query": [],
- "variable": []
- },
- "header": [
- {
- "type": "text",
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"batch\": [\n {\n \"id\": \"abcdef-1234-5678-90ab\",\n \"timestamp\": \"2022-01-01T00:00:00.000Z\",\n \"type\": \"trace-create\",\n \"body\": {\n \"id\": \"abcdef-1234-5678-90ab\",\n \"timestamp\": \"2022-01-01T00:00:00.000Z\",\n \"environment\": \"production\",\n \"name\": \"My Trace\",\n \"userId\": \"1234-5678-90ab-cdef\",\n \"input\": \"My input\",\n \"output\": \"My output\",\n \"sessionId\": \"1234-5678-90ab-cdef\",\n \"release\": \"1.0.0\",\n \"version\": \"1.0.0\",\n \"metadata\": \"My metadata\",\n \"tags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"public\": true\n }\n }\n ]\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": [
- {
- "name": "Success",
- "status": "OK",
- "code": 200,
- "originalRequest": {
- "description": "**Legacy endpoint for batch ingestion for Langfuse Observability.**\n\n-> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://langfuse.com/integrations/native/opentelemetry\n\nWithin each batch, there can be multiple events.\nEach event has a type, an id, a timestamp, metadata and a body.\nInternally, we refer to this as the \"event envelope\" as it tells us something about the event but not the trace.\nWe use the event id within this envelope to deduplicate messages to avoid processing the same event twice, i.e. the event id should be unique per request.\nThe event.body.id is the ID of the actual trace and will be used for updates and will be visible within the Langfuse App.\nI.e. if you want to update a trace, you'd use the same body id, but separate event IDs.\n\nNotes:\n- Introduction to data model: https://langfuse.com/docs/observability/data-model\n- Batch sizes are limited to 3.5 MB in total. You need to adjust the number of events per batch accordingly.\n- The API does not return a 4xx status code for input errors. Instead, it responds with a 207 status code, which includes a list of the encountered errors.",
- "url": {
- "raw": "{{baseUrl}}/api/public/ingestion",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "ingestion"
- ],
- "query": [],
- "variable": []
- },
- "header": [
- {
- "type": "text",
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"batch\": [\n {\n \"id\": \"abcdef-1234-5678-90ab\",\n \"timestamp\": \"2022-01-01T00:00:00.000Z\",\n \"type\": \"trace-create\",\n \"body\": {\n \"id\": \"abcdef-1234-5678-90ab\",\n \"timestamp\": \"2022-01-01T00:00:00.000Z\",\n \"environment\": \"production\",\n \"name\": \"My Trace\",\n \"userId\": \"1234-5678-90ab-cdef\",\n \"input\": \"My input\",\n \"output\": \"My output\",\n \"sessionId\": \"1234-5678-90ab-cdef\",\n \"release\": \"1.0.0\",\n \"version\": \"1.0.0\",\n \"metadata\": \"My metadata\",\n \"tags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"public\": true\n }\n }\n ]\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "description": null,
- "body": "{\n \"successes\": [\n {\n \"id\": \"abcdef-1234-5678-90ab\",\n \"status\": 201\n }\n ],\n \"errors\": []\n}",
- "_postman_previewlanguage": "json"
- },
- {
- "name": "Success",
- "status": "OK",
- "code": 200,
- "originalRequest": {
- "description": "**Legacy endpoint for batch ingestion for Langfuse Observability.**\n\n-> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://langfuse.com/integrations/native/opentelemetry\n\nWithin each batch, there can be multiple events.\nEach event has a type, an id, a timestamp, metadata and a body.\nInternally, we refer to this as the \"event envelope\" as it tells us something about the event but not the trace.\nWe use the event id within this envelope to deduplicate messages to avoid processing the same event twice, i.e. the event id should be unique per request.\nThe event.body.id is the ID of the actual trace and will be used for updates and will be visible within the Langfuse App.\nI.e. if you want to update a trace, you'd use the same body id, but separate event IDs.\n\nNotes:\n- Introduction to data model: https://langfuse.com/docs/observability/data-model\n- Batch sizes are limited to 3.5 MB in total. You need to adjust the number of events per batch accordingly.\n- The API does not return a 4xx status code for input errors. Instead, it responds with a 207 status code, which includes a list of the encountered errors.",
- "url": {
- "raw": "{{baseUrl}}/api/public/ingestion",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "ingestion"
- ],
- "query": [],
- "variable": []
- },
- "header": [
- {
- "type": "text",
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"batch\": [\n {\n \"id\": \"abcdef-1234-5678-90ab\",\n \"timestamp\": \"2022-01-01T00:00:00.000Z\",\n \"type\": \"span-create\",\n \"body\": {\n \"id\": \"abcdef-1234-5678-90ab\",\n \"traceId\": \"1234-5678-90ab-cdef\",\n \"startTime\": \"2022-01-01T00:00:00.000Z\",\n \"environment\": \"test\"\n }\n }\n ]\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "description": null,
- "body": "{\n \"successes\": [\n {\n \"id\": \"abcdef-1234-5678-90ab\",\n \"status\": 201\n }\n ],\n \"errors\": []\n}",
- "_postman_previewlanguage": "json"
- },
- {
- "name": "Success",
- "status": "OK",
- "code": 200,
- "originalRequest": {
- "description": "**Legacy endpoint for batch ingestion for Langfuse Observability.**\n\n-> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://langfuse.com/integrations/native/opentelemetry\n\nWithin each batch, there can be multiple events.\nEach event has a type, an id, a timestamp, metadata and a body.\nInternally, we refer to this as the \"event envelope\" as it tells us something about the event but not the trace.\nWe use the event id within this envelope to deduplicate messages to avoid processing the same event twice, i.e. the event id should be unique per request.\nThe event.body.id is the ID of the actual trace and will be used for updates and will be visible within the Langfuse App.\nI.e. if you want to update a trace, you'd use the same body id, but separate event IDs.\n\nNotes:\n- Introduction to data model: https://langfuse.com/docs/observability/data-model\n- Batch sizes are limited to 3.5 MB in total. You need to adjust the number of events per batch accordingly.\n- The API does not return a 4xx status code for input errors. Instead, it responds with a 207 status code, which includes a list of the encountered errors.",
- "url": {
- "raw": "{{baseUrl}}/api/public/ingestion",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "ingestion"
- ],
- "query": [],
- "variable": []
- },
- "header": [
- {
- "type": "text",
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"batch\": [\n {\n \"id\": \"abcdef-1234-5678-90ab\",\n \"timestamp\": \"2022-01-01T00:00:00.000Z\",\n \"type\": \"score-create\",\n \"body\": {\n \"id\": \"abcdef-1234-5678-90ab\",\n \"traceId\": \"1234-5678-90ab-cdef\",\n \"name\": \"My Score\",\n \"value\": 0.9,\n \"environment\": \"default\"\n }\n }\n ]\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "description": null,
- "body": "{\n \"successes\": [\n {\n \"id\": \"abcdef-1234-5678-90ab\",\n \"status\": 201\n }\n ],\n \"errors\": []\n}",
- "_postman_previewlanguage": "json"
- }
- ]
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Llm Connections",
- "item": [
- {
- "_type": "endpoint",
- "name": "List",
- "request": {
- "description": "Get all LLM connections in a project",
- "url": {
- "raw": "{{baseUrl}}/api/public/llm-connections?page=&limit=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "llm-connections"
- ],
- "query": [
- {
- "key": "page",
- "value": "",
- "description": "page number, starts at 1"
- },
- {
- "key": "limit",
- "value": "",
- "description": "limit of items per page"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Upsert",
- "request": {
- "description": "Create or update an LLM connection. The connection is upserted on provider.",
- "url": {
- "raw": "{{baseUrl}}/api/public/llm-connections",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "llm-connections"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "PUT",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"provider\": \"example\",\n \"adapter\": \"anthropic\",\n \"secretKey\": \"example\",\n \"baseURL\": \"example\",\n \"customModels\": [\n \"example\"\n ],\n \"withDefaultModels\": true,\n \"extraHeaders\": {\n \"example\": \"example\"\n },\n \"config\": {\n \"example\": \"UNKNOWN\"\n }\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Media",
- "item": [
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get a media record",
- "url": {
- "raw": "{{baseUrl}}/api/public/media/:mediaId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "media",
- ":mediaId"
- ],
- "query": [],
- "variable": [
- {
- "key": "mediaId",
- "value": "",
- "description": "The unique langfuse identifier of a media record"
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Patch",
- "request": {
- "description": "Patch a media record",
- "url": {
- "raw": "{{baseUrl}}/api/public/media/:mediaId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "media",
- ":mediaId"
- ],
- "query": [],
- "variable": [
- {
- "key": "mediaId",
- "value": "",
- "description": "The unique langfuse identifier of a media record"
- }
- ]
- },
- "header": [],
- "method": "PATCH",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"uploadedAt\": \"1994-11-05T13:15:30Z\",\n \"uploadHttpStatus\": 0,\n \"uploadHttpError\": \"example\",\n \"uploadTimeMs\": 0\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Upload Url",
- "request": {
- "description": "Get a presigned upload URL for a media record",
- "url": {
- "raw": "{{baseUrl}}/api/public/media",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "media"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"traceId\": \"example\",\n \"observationId\": \"example\",\n \"contentType\": \"image/png\",\n \"contentLength\": 0,\n \"sha256Hash\": \"example\",\n \"field\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Metrics V 2",
- "item": [
- {
- "_type": "endpoint",
- "name": "Metrics",
- "request": {
- "description": "Get metrics from the Langfuse project using a query object. V2 endpoint with optimized performance.\n\n## V2 Differences\n- Supports `observations`, `scores-numeric`, and `scores-categorical` views only (traces view not supported)\n- Direct access to tags and release fields on observations\n- Backwards-compatible: traceName, traceRelease, traceVersion dimensions are still available on observations view\n- High cardinality dimensions are not supported and will return a 400 error (see below)\n\nFor more details, see the [Metrics API documentation](https://langfuse.com/docs/metrics/features/metrics-api).\n\n## Available Views\n\n### observations\nQuery observation-level data (spans, generations, events).\n\n**Dimensions:**\n- `environment` - Deployment environment (e.g., production, staging)\n- `type` - Type of observation (SPAN, GENERATION, EVENT)\n- `name` - Name of the observation\n- `level` - Logging level of the observation\n- `version` - Version of the observation\n- `tags` - User-defined tags\n- `release` - Release version\n- `traceName` - Name of the parent trace (backwards-compatible)\n- `traceRelease` - Release version of the parent trace (backwards-compatible, maps to release)\n- `traceVersion` - Version of the parent trace (backwards-compatible, maps to version)\n- `providedModelName` - Name of the model used\n- `promptName` - Name of the prompt used\n- `promptVersion` - Version of the prompt used\n- `startTimeMonth` - Month of start_time in YYYY-MM format\n\n**Measures:**\n- `count` - Total number of observations\n- `latency` - Observation latency (milliseconds)\n- `streamingLatency` - Generation latency from completion start to end (milliseconds)\n- `inputTokens` - Sum of input tokens consumed\n- `outputTokens` - Sum of output tokens produced\n- `totalTokens` - Sum of all tokens consumed\n- `outputTokensPerSecond` - Output tokens per second\n- `tokensPerSecond` - Total tokens per second\n- `inputCost` - Input cost (USD)\n- `outputCost` - Output cost (USD)\n- `totalCost` - Total cost (USD)\n- `timeToFirstToken` - Time to first token (milliseconds)\n- `countScores` - Number of scores attached to the observation\n\n### scores-numeric\nQuery numeric and boolean score data.\n\n**Dimensions:**\n- `environment` - Deployment environment\n- `name` - Name of the score (e.g., accuracy, toxicity)\n- `source` - Origin of the score (API, ANNOTATION, EVAL)\n- `dataType` - Data type (NUMERIC, BOOLEAN)\n- `configId` - Identifier of the score config\n- `timestampMonth` - Month in YYYY-MM format\n- `timestampDay` - Day in YYYY-MM-DD format\n- `value` - Numeric value of the score\n- `traceName` - Name of the parent trace\n- `tags` - Tags\n- `traceRelease` - Release version\n- `traceVersion` - Version\n- `observationName` - Name of the associated observation\n- `observationModelName` - Model name of the associated observation\n- `observationPromptName` - Prompt name of the associated observation\n- `observationPromptVersion` - Prompt version of the associated observation\n\n**Measures:**\n- `count` - Total number of scores\n- `value` - Score value (for aggregations)\n\n### scores-categorical\nQuery categorical score data. Same dimensions as scores-numeric except uses `stringValue` instead of `value`.\n\n**Measures:**\n- `count` - Total number of scores\n\n## High Cardinality Dimensions\nThe following dimensions cannot be used as grouping dimensions in v2 metrics API as they can cause performance issues.\nUse them in filters instead.\n\n**observations view:**\n- `id` - Use traceId filter to narrow down results\n- `traceId` - Use traceId filter instead\n- `userId` - Use userId filter instead\n- `sessionId` - Use sessionId filter instead\n- `parentObservationId` - Use parentObservationId filter instead\n\n**scores-numeric / scores-categorical views:**\n- `id` - Use specific filters to narrow down results\n- `traceId` - Use traceId filter instead\n- `userId` - Use userId filter instead\n- `sessionId` - Use sessionId filter instead\n- `observationId` - Use observationId filter instead\n\n## Aggregations\nAvailable aggregation functions: `sum`, `avg`, `count`, `max`, `min`, `p50`, `p75`, `p90`, `p95`, `p99`, `histogram`\n\n## Time Granularities\nAvailable granularities for timeDimension: `auto`, `minute`, `hour`, `day`, `week`, `month`\n- `auto` bins the data into approximately 50 buckets based on the time range",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/metrics?query=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "metrics"
- ],
- "query": [
- {
- "key": "query",
- "value": "",
- "description": "JSON string containing the query parameters with the following structure:\n```json\n{\n \"view\": string, // Required. One of \"observations\", \"scores-numeric\", \"scores-categorical\"\n \"dimensions\": [ // Optional. Default: []\n {\n \"field\": string // Field to group by (see available dimensions above)\n }\n ],\n \"metrics\": [ // Required. At least one metric must be provided\n {\n \"measure\": string, // What to measure (see available measures above)\n \"aggregation\": string // How to aggregate: \"sum\", \"avg\", \"count\", \"max\", \"min\", \"p50\", \"p75\", \"p90\", \"p95\", \"p99\", \"histogram\"\n }\n ],\n \"filters\": [ // Optional. Default: []\n {\n \"column\": string, // Column to filter on (any dimension field)\n \"operator\": string, // Operator based on type:\n // - datetime: \">\", \"<\", \">=\", \"<=\"\n // - string: \"=\", \"contains\", \"does not contain\", \"starts with\", \"ends with\"\n // - stringOptions: \"any of\", \"none of\"\n // - arrayOptions: \"any of\", \"none of\", \"all of\"\n // - number: \"=\", \">\", \"<\", \">=\", \"<=\"\n // - stringObject/numberObject: same as string/number with required \"key\"\n // - boolean: \"=\", \"<>\"\n // - null: \"is null\", \"is not null\"\n \"value\": any, // Value to compare against\n \"type\": string, // Data type: \"datetime\", \"string\", \"number\", \"stringOptions\", \"categoryOptions\", \"arrayOptions\", \"stringObject\", \"numberObject\", \"boolean\", \"null\"\n \"key\": string // Required only for stringObject/numberObject types (e.g., metadata filtering)\n }\n ],\n \"timeDimension\": { // Optional. Default: null. If provided, results will be grouped by time\n \"granularity\": string // One of \"auto\", \"minute\", \"hour\", \"day\", \"week\", \"month\"\n },\n \"fromTimestamp\": string, // Required. ISO datetime string for start of time range\n \"toTimestamp\": string, // Required. ISO datetime string for end of time range (must be after fromTimestamp)\n \"orderBy\": [ // Optional. Default: null\n {\n \"field\": string, // Field to order by (dimension or metric alias)\n \"direction\": string // \"asc\" or \"desc\"\n }\n ],\n \"config\": { // Optional. Query-specific configuration\n \"bins\": number, // Optional. Number of bins for histogram aggregation (1-100), default: 10\n \"row_limit\": number // Optional. Maximum number of rows to return (1-1000), default: 100\n }\n}\n```"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Metrics",
- "item": [
- {
- "_type": "endpoint",
- "name": "Metrics",
- "request": {
- "description": "Get metrics from the Langfuse project using a query object.\n\nConsider using the [v2 metrics endpoint](/api-reference#tag/metricsv2/GET/api/public/v2/metrics) for better performance.\n\nFor more details, see the [Metrics API documentation](https://langfuse.com/docs/metrics/features/metrics-api).",
- "url": {
- "raw": "{{baseUrl}}/api/public/metrics?query=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "metrics"
- ],
- "query": [
- {
- "key": "query",
- "value": "",
- "description": "JSON string containing the query parameters with the following structure:\n```json\n{\n \"view\": string, // Required. One of \"traces\", \"observations\", \"scores-numeric\", \"scores-categorical\"\n \"dimensions\": [ // Optional. Default: []\n {\n \"field\": string // Field to group by, e.g. \"name\", \"userId\", \"sessionId\"\n }\n ],\n \"metrics\": [ // Required. At least one metric must be provided\n {\n \"measure\": string, // What to measure, e.g. \"count\", \"latency\", \"value\"\n \"aggregation\": string // How to aggregate, e.g. \"count\", \"sum\", \"avg\", \"p95\", \"histogram\"\n }\n ],\n \"filters\": [ // Optional. Default: []\n {\n \"column\": string, // Column to filter on\n \"operator\": string, // Operator, e.g. \"=\", \">\", \"<\", \"contains\"\n \"value\": any, // Value to compare against\n \"type\": string, // Data type, e.g. \"string\", \"number\", \"stringObject\"\n \"key\": string // Required only when filtering on metadata\n }\n ],\n \"timeDimension\": { // Optional. Default: null. If provided, results will be grouped by time\n \"granularity\": string // One of \"minute\", \"hour\", \"day\", \"week\", \"month\", \"auto\"\n },\n \"fromTimestamp\": string, // Required. ISO datetime string for start of time range\n \"toTimestamp\": string, // Required. ISO datetime string for end of time range\n \"orderBy\": [ // Optional. Default: null\n {\n \"field\": string, // Field to order by\n \"direction\": string // \"asc\" or \"desc\"\n }\n ],\n \"config\": { // Optional. Query-specific configuration\n \"bins\": number, // Optional. Number of bins for histogram (1-100), default: 10\n \"row_limit\": number // Optional. Row limit for results (1-1000)\n }\n}\n```"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Models",
- "item": [
- {
- "_type": "endpoint",
- "name": "Create",
- "request": {
- "description": "Create a model",
- "url": {
- "raw": "{{baseUrl}}/api/public/models",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "models"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"modelName\": \"example\",\n \"matchPattern\": \"example\",\n \"startDate\": \"1994-11-05T13:15:30Z\",\n \"unit\": \"CHARACTERS\",\n \"inputPrice\": 0,\n \"outputPrice\": 0,\n \"totalPrice\": 0,\n \"pricingTiers\": [\n {\n \"name\": \"example\",\n \"isDefault\": true,\n \"priority\": 0,\n \"conditions\": [\n {\n \"usageDetailPattern\": \"example\",\n \"operator\": \"gt\",\n \"value\": 0,\n \"caseSensitive\": true\n }\n ],\n \"prices\": {\n \"example\": 0\n }\n }\n ],\n \"tokenizerId\": \"example\",\n \"tokenizerConfig\": \"UNKNOWN\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "List",
- "request": {
- "description": "Get all models",
- "url": {
- "raw": "{{baseUrl}}/api/public/models?page=&limit=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "models"
- ],
- "query": [
- {
- "key": "page",
- "value": "",
- "description": "page number, starts at 1"
- },
- {
- "key": "limit",
- "value": "",
- "description": "limit of items per page"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get a model",
- "url": {
- "raw": "{{baseUrl}}/api/public/models/:id",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "models",
- ":id"
- ],
- "query": [],
- "variable": [
- {
- "key": "id",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete",
- "request": {
- "description": "Delete a model. Cannot delete models managed by Langfuse. You can create your own definition with the same modelName to override the definition though.",
- "url": {
- "raw": "{{baseUrl}}/api/public/models/:id",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "models",
- ":id"
- ],
- "query": [],
- "variable": [
- {
- "key": "id",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Observations V 2",
- "item": [
- {
- "_type": "endpoint",
- "name": "Get Many",
- "request": {
- "description": "Get a list of observations with cursor-based pagination and flexible field selection.\n\n## Cursor-based Pagination\nThis endpoint uses cursor-based pagination for efficient traversal of large datasets.\nThe cursor is returned in the response metadata and should be passed in subsequent requests\nto retrieve the next page of results.\n\n## Field Selection\nUse the `fields` parameter to control which observation fields are returned:\n- `core` - Always included: id, traceId, startTime, endTime, projectId, parentObservationId, type\n- `basic` - name, level, statusMessage, version, environment, bookmarked, public, userId, sessionId\n- `time` - completionStartTime, createdAt, updatedAt\n- `io` - input, output\n- `metadata` - metadata (truncated to 200 chars by default, use `expandMetadata` to get full values)\n- `model` - providedModelName, internalModelId, modelParameters\n- `usage` - usageDetails, costDetails, totalCost\n- `prompt` - promptId, promptName, promptVersion\n- `metrics` - latency, timeToFirstToken\n\nIf not specified, `core` and `basic` field groups are returned.\n\n## Filters\nMultiple filtering options are available via query parameters or the structured `filter` parameter.\nWhen using the `filter` parameter, it takes precedence over individual query parameter filters.",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/observations?fields=&expandMetadata=&limit=&cursor=&parseIoAsJson=&name=&userId=&type=&traceId=&level=&parentObservationId=&environment=&fromStartTime=&toStartTime=&version=&filter=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "observations"
- ],
- "query": [
- {
- "key": "fields",
- "value": "",
- "description": "Comma-separated list of field groups to include in the response.\nAvailable groups: core, basic, time, io, metadata, model, usage, prompt, metrics.\nIf not specified, `core` and `basic` field groups are returned.\nExample: \"basic,usage,model\""
- },
- {
- "key": "expandMetadata",
- "value": "",
- "description": "Comma-separated list of metadata keys to return non-truncated.\nBy default, metadata values over 200 characters are truncated.\nUse this parameter to retrieve full values for specific keys.\nExample: \"key1,key2\""
- },
- {
- "key": "limit",
- "value": "",
- "description": "Number of items to return per page. Maximum 1000, default 50."
- },
- {
- "key": "cursor",
- "value": "",
- "description": "Base64-encoded cursor for pagination. Use the cursor from the previous response to get the next page."
- },
- {
- "key": "parseIoAsJson",
- "value": "",
- "description": "Set to `true` to parse input/output fields as JSON, or `false` to return raw strings.\nDefaults to `false` if not provided."
- },
- {
- "key": "name",
- "value": "",
- "description": null
- },
- {
- "key": "userId",
- "value": "",
- "description": null
- },
- {
- "key": "type",
- "value": "",
- "description": "Filter by observation type (e.g., \"GENERATION\", \"SPAN\", \"EVENT\", \"AGENT\", \"TOOL\", \"CHAIN\", \"RETRIEVER\", \"EVALUATOR\", \"EMBEDDING\", \"GUARDRAIL\")"
- },
- {
- "key": "traceId",
- "value": "",
- "description": null
- },
- {
- "key": "level",
- "value": "",
- "description": "Optional filter for observations with a specific level (e.g. \"DEBUG\", \"DEFAULT\", \"WARNING\", \"ERROR\")."
- },
- {
- "key": "parentObservationId",
- "value": "",
- "description": null
- },
- {
- "key": "environment",
- "value": "",
- "description": "Optional filter for observations where the environment is one of the provided values."
- },
- {
- "key": "fromStartTime",
- "value": "",
- "description": "Retrieve only observations with a start_time on or after this datetime (ISO 8601)."
- },
- {
- "key": "toStartTime",
- "value": "",
- "description": "Retrieve only observations with a start_time before this datetime (ISO 8601)."
- },
- {
- "key": "version",
- "value": "",
- "description": "Optional filter to only include observations with a certain version."
- },
- {
- "key": "filter",
- "value": "",
- "description": "JSON string containing an array of filter conditions. When provided, this takes precedence over query parameter filters (userId, name, type, level, environment, fromStartTime, ...).\n\n## Filter Structure\nEach filter condition has the following structure:\n```json\n[\n {\n \"type\": string, // Required. One of: \"datetime\", \"string\", \"number\", \"stringOptions\", \"categoryOptions\", \"arrayOptions\", \"stringObject\", \"numberObject\", \"boolean\", \"null\"\n \"column\": string, // Required. Column to filter on (see available columns below)\n \"operator\": string, // Required. Operator based on type:\n // - datetime: \">\", \"<\", \">=\", \"<=\"\n // - string: \"=\", \"contains\", \"does not contain\", \"starts with\", \"ends with\"\n // - stringOptions: \"any of\", \"none of\"\n // - categoryOptions: \"any of\", \"none of\"\n // - arrayOptions: \"any of\", \"none of\", \"all of\"\n // - number: \"=\", \">\", \"<\", \">=\", \"<=\"\n // - stringObject: \"=\", \"contains\", \"does not contain\", \"starts with\", \"ends with\"\n // - numberObject: \"=\", \">\", \"<\", \">=\", \"<=\"\n // - boolean: \"=\", \"<>\"\n // - null: \"is null\", \"is not null\"\n \"value\": any, // Required (except for null type). Value to compare against. Type depends on filter type\n \"key\": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata\n }\n]\n```\n\n## Available Columns\n\n### Core Observation Fields\n- `id` (string) - Observation ID\n- `type` (string) - Observation type (SPAN, GENERATION, EVENT)\n- `name` (string) - Observation name\n- `traceId` (string) - Associated trace ID\n- `startTime` (datetime) - Observation start time\n- `endTime` (datetime) - Observation end time\n- `environment` (string) - Environment tag\n- `level` (string) - Log level (DEBUG, DEFAULT, WARNING, ERROR)\n- `statusMessage` (string) - Status message\n- `version` (string) - Version tag\n- `userId` (string) - User ID\n- `sessionId` (string) - Session ID\n\n### Trace-Related Fields\n- `traceName` (string) - Name of the parent trace\n- `traceTags` (arrayOptions) - Tags from the parent trace\n- `tags` (arrayOptions) - Alias for traceTags\n\n### Performance Metrics\n- `latency` (number) - Latency in seconds (calculated: end_time - start_time)\n- `timeToFirstToken` (number) - Time to first token in seconds\n- `tokensPerSecond` (number) - Output tokens per second\n\n### Token Usage\n- `inputTokens` (number) - Number of input tokens\n- `outputTokens` (number) - Number of output tokens\n- `totalTokens` (number) - Total tokens (alias: `tokens`)\n\n### Cost Metrics\n- `inputCost` (number) - Input cost in USD\n- `outputCost` (number) - Output cost in USD\n- `totalCost` (number) - Total cost in USD\n\n### Model Information\n- `model` (string) - Provided model name (alias: `providedModelName`)\n- `promptName` (string) - Associated prompt name\n- `promptVersion` (number) - Associated prompt version\n\n### Structured Data\n- `metadata` (stringObject/numberObject/categoryOptions) - Metadata key-value pairs. Use `key` parameter to filter on specific metadata keys.\n\n## Filter Examples\n```json\n[\n {\n \"type\": \"string\",\n \"column\": \"type\",\n \"operator\": \"=\",\n \"value\": \"GENERATION\"\n },\n {\n \"type\": \"number\",\n \"column\": \"latency\",\n \"operator\": \">=\",\n \"value\": 2.5\n },\n {\n \"type\": \"stringObject\",\n \"column\": \"metadata\",\n \"key\": \"environment\",\n \"operator\": \"=\",\n \"value\": \"production\"\n }\n]\n```"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Observations",
- "item": [
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get a observation",
- "url": {
- "raw": "{{baseUrl}}/api/public/observations/:observationId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "observations",
- ":observationId"
- ],
- "query": [],
- "variable": [
- {
- "key": "observationId",
- "value": "",
- "description": "The unique langfuse identifier of an observation, can be an event, span or generation"
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Many",
- "request": {
- "description": "Get a list of observations.\n\nConsider using the [v2 observations endpoint](/api-reference#tag/observationsv2/GET/api/public/v2/observations) for cursor-based pagination and field selection.",
- "url": {
- "raw": "{{baseUrl}}/api/public/observations?page=&limit=&name=&userId=&type=&traceId=&level=&parentObservationId=&environment=&fromStartTime=&toStartTime=&version=&filter=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "observations"
- ],
- "query": [
- {
- "key": "page",
- "value": "",
- "description": "Page number, starts at 1."
- },
- {
- "key": "limit",
- "value": "",
- "description": "Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit."
- },
- {
- "key": "name",
- "value": "",
- "description": null
- },
- {
- "key": "userId",
- "value": "",
- "description": null
- },
- {
- "key": "type",
- "value": "",
- "description": null
- },
- {
- "key": "traceId",
- "value": "",
- "description": null
- },
- {
- "key": "level",
- "value": "",
- "description": "Optional filter for observations with a specific level (e.g. \"DEBUG\", \"DEFAULT\", \"WARNING\", \"ERROR\")."
- },
- {
- "key": "parentObservationId",
- "value": "",
- "description": null
- },
- {
- "key": "environment",
- "value": "",
- "description": "Optional filter for observations where the environment is one of the provided values."
- },
- {
- "key": "fromStartTime",
- "value": "",
- "description": "Retrieve only observations with a start_time on or after this datetime (ISO 8601)."
- },
- {
- "key": "toStartTime",
- "value": "",
- "description": "Retrieve only observations with a start_time before this datetime (ISO 8601)."
- },
- {
- "key": "version",
- "value": "",
- "description": "Optional filter to only include observations with a certain version."
- },
- {
- "key": "filter",
- "value": "",
- "description": "JSON string containing an array of filter conditions. When provided, this takes precedence over query parameter filters (userId, name, type, level, environment, fromStartTime, ...).\n\n## Filter Structure\nEach filter condition has the following structure:\n```json\n[\n {\n \"type\": string, // Required. One of: \"datetime\", \"string\", \"number\", \"stringOptions\", \"categoryOptions\", \"arrayOptions\", \"stringObject\", \"numberObject\", \"boolean\", \"null\"\n \"column\": string, // Required. Column to filter on (see available columns below)\n \"operator\": string, // Required. Operator based on type:\n // - datetime: \">\", \"<\", \">=\", \"<=\"\n // - string: \"=\", \"contains\", \"does not contain\", \"starts with\", \"ends with\"\n // - stringOptions: \"any of\", \"none of\"\n // - categoryOptions: \"any of\", \"none of\"\n // - arrayOptions: \"any of\", \"none of\", \"all of\"\n // - number: \"=\", \">\", \"<\", \">=\", \"<=\"\n // - stringObject: \"=\", \"contains\", \"does not contain\", \"starts with\", \"ends with\"\n // - numberObject: \"=\", \">\", \"<\", \">=\", \"<=\"\n // - boolean: \"=\", \"<>\"\n // - null: \"is null\", \"is not null\"\n \"value\": any, // Required (except for null type). Value to compare against. Type depends on filter type\n \"key\": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata\n }\n]\n```\n\n## Available Columns\n\n### Core Observation Fields\n- `id` (string) - Observation ID\n- `type` (string) - Observation type (SPAN, GENERATION, EVENT)\n- `name` (string) - Observation name\n- `traceId` (string) - Associated trace ID\n- `startTime` (datetime) - Observation start time\n- `endTime` (datetime) - Observation end time\n- `environment` (string) - Environment tag\n- `level` (string) - Log level (DEBUG, DEFAULT, WARNING, ERROR)\n- `statusMessage` (string) - Status message\n- `version` (string) - Version tag\n\n### Performance Metrics\n- `latency` (number) - Latency in seconds (calculated: end_time - start_time)\n- `timeToFirstToken` (number) - Time to first token in seconds\n- `tokensPerSecond` (number) - Output tokens per second\n\n### Token Usage\n- `inputTokens` (number) - Number of input tokens\n- `outputTokens` (number) - Number of output tokens\n- `totalTokens` (number) - Total tokens (alias: `tokens`)\n\n### Cost Metrics\n- `inputCost` (number) - Input cost in USD\n- `outputCost` (number) - Output cost in USD\n- `totalCost` (number) - Total cost in USD\n\n### Model Information\n- `model` (string) - Provided model name\n- `promptName` (string) - Associated prompt name\n- `promptVersion` (number) - Associated prompt version\n\n### Structured Data\n- `metadata` (stringObject/numberObject/categoryOptions) - Metadata key-value pairs. Use `key` parameter to filter on specific metadata keys.\n\n### Associated Trace Fields (requires join with traces table)\n- `userId` (string) - User ID from associated trace\n- `traceName` (string) - Name from associated trace\n- `traceEnvironment` (string) - Environment from associated trace\n- `traceTags` (arrayOptions) - Tags from associated trace\n\n## Filter Examples\n```json\n[\n {\n \"type\": \"string\",\n \"column\": \"type\",\n \"operator\": \"=\",\n \"value\": \"GENERATION\"\n },\n {\n \"type\": \"number\",\n \"column\": \"latency\",\n \"operator\": \">=\",\n \"value\": 2.5\n },\n {\n \"type\": \"stringObject\",\n \"column\": \"metadata\",\n \"key\": \"environment\",\n \"operator\": \"=\",\n \"value\": \"production\"\n }\n]\n```"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Opentelemetry",
- "item": [
- {
- "_type": "endpoint",
- "name": "Export Traces",
- "request": {
- "description": "**OpenTelemetry Traces Ingestion Endpoint**\n\nThis endpoint implements the OTLP/HTTP specification for trace ingestion, providing native OpenTelemetry integration for Langfuse Observability.\n\n**Supported Formats:**\n- Binary Protobuf: `Content-Type: application/x-protobuf`\n- JSON Protobuf: `Content-Type: application/json`\n- Supports gzip compression via `Content-Encoding: gzip` header\n\n**Specification Compliance:**\n- Conforms to [OTLP/HTTP Trace Export](https://opentelemetry.io/docs/specs/otlp/#otlphttp)\n- Implements `ExportTraceServiceRequest` message format\n\n**Documentation:**\n- Integration guide: https://langfuse.com/integrations/native/opentelemetry\n- Data model: https://langfuse.com/docs/observability/data-model",
- "url": {
- "raw": "{{baseUrl}}/api/public/otel/v1/traces",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "otel",
- "v1",
- "traces"
- ],
- "query": [],
- "variable": []
- },
- "header": [
- {
- "type": "text",
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"resourceSpans\": [\n {\n \"resource\": {\n \"attributes\": [\n {\n \"key\": \"service.name\",\n \"value\": {\n \"stringValue\": \"my-service\"\n }\n },\n {\n \"key\": \"service.version\",\n \"value\": {\n \"stringValue\": \"1.0.0\"\n }\n }\n ]\n },\n \"scopeSpans\": [\n {\n \"scope\": {\n \"name\": \"langfuse-sdk\",\n \"version\": \"2.60.3\"\n },\n \"spans\": [\n {\n \"traceId\": \"0123456789abcdef0123456789abcdef\",\n \"spanId\": \"0123456789abcdef\",\n \"name\": \"my-operation\",\n \"kind\": 1,\n \"startTimeUnixNano\": \"1747872000000000000\",\n \"endTimeUnixNano\": \"1747872001000000000\",\n \"attributes\": [\n {\n \"key\": \"langfuse.observation.type\",\n \"value\": {\n \"stringValue\": \"generation\"\n }\n }\n ],\n \"status\": {}\n }\n ]\n }\n ]\n }\n ]\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": [
- {
- "name": "Success",
- "status": "OK",
- "code": 200,
- "originalRequest": {
- "description": "**OpenTelemetry Traces Ingestion Endpoint**\n\nThis endpoint implements the OTLP/HTTP specification for trace ingestion, providing native OpenTelemetry integration for Langfuse Observability.\n\n**Supported Formats:**\n- Binary Protobuf: `Content-Type: application/x-protobuf`\n- JSON Protobuf: `Content-Type: application/json`\n- Supports gzip compression via `Content-Encoding: gzip` header\n\n**Specification Compliance:**\n- Conforms to [OTLP/HTTP Trace Export](https://opentelemetry.io/docs/specs/otlp/#otlphttp)\n- Implements `ExportTraceServiceRequest` message format\n\n**Documentation:**\n- Integration guide: https://langfuse.com/integrations/native/opentelemetry\n- Data model: https://langfuse.com/docs/observability/data-model",
- "url": {
- "raw": "{{baseUrl}}/api/public/otel/v1/traces",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "otel",
- "v1",
- "traces"
- ],
- "query": [],
- "variable": []
- },
- "header": [
- {
- "type": "text",
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"resourceSpans\": [\n {\n \"resource\": {\n \"attributes\": [\n {\n \"key\": \"service.name\",\n \"value\": {\n \"stringValue\": \"my-service\"\n }\n },\n {\n \"key\": \"service.version\",\n \"value\": {\n \"stringValue\": \"1.0.0\"\n }\n }\n ]\n },\n \"scopeSpans\": [\n {\n \"scope\": {\n \"name\": \"langfuse-sdk\",\n \"version\": \"2.60.3\"\n },\n \"spans\": [\n {\n \"traceId\": \"0123456789abcdef0123456789abcdef\",\n \"spanId\": \"0123456789abcdef\",\n \"name\": \"my-operation\",\n \"kind\": 1,\n \"startTimeUnixNano\": \"1747872000000000000\",\n \"endTimeUnixNano\": \"1747872001000000000\",\n \"attributes\": [\n {\n \"key\": \"langfuse.observation.type\",\n \"value\": {\n \"stringValue\": \"generation\"\n }\n }\n ],\n \"status\": {}\n }\n ]\n }\n ]\n }\n ]\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "description": null,
- "body": "{}",
- "_postman_previewlanguage": "json"
- }
- ]
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Organizations",
- "item": [
- {
- "_type": "endpoint",
- "name": "Get Organization Memberships",
- "request": {
- "description": "Get all memberships for the organization associated with the API key (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/organizations/memberships",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "organizations",
- "memberships"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Update Organization Membership",
- "request": {
- "description": "Create or update a membership for the organization associated with the API key (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/organizations/memberships",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "organizations",
- "memberships"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "PUT",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"userId\": \"example\",\n \"role\": \"OWNER\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete Organization Membership",
- "request": {
- "description": "Delete a membership from the organization associated with the API key (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/organizations/memberships",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "organizations",
- "memberships"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"userId\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Project Memberships",
- "request": {
- "description": "Get all memberships for a specific project (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/projects/:projectId/memberships",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "projects",
- ":projectId",
- "memberships"
- ],
- "query": [],
- "variable": [
- {
- "key": "projectId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Update Project Membership",
- "request": {
- "description": "Create or update a membership for a specific project (requires organization-scoped API key). The user must already be a member of the organization.",
- "url": {
- "raw": "{{baseUrl}}/api/public/projects/:projectId/memberships",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "projects",
- ":projectId",
- "memberships"
- ],
- "query": [],
- "variable": [
- {
- "key": "projectId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "PUT",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"userId\": \"example\",\n \"role\": \"OWNER\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete Project Membership",
- "request": {
- "description": "Delete a membership from a specific project (requires organization-scoped API key). The user must be a member of the organization.",
- "url": {
- "raw": "{{baseUrl}}/api/public/projects/:projectId/memberships",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "projects",
- ":projectId",
- "memberships"
- ],
- "query": [],
- "variable": [
- {
- "key": "projectId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"userId\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Organization Projects",
- "request": {
- "description": "Get all projects for the organization associated with the API key (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/organizations/projects",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "organizations",
- "projects"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Organization Api Keys",
- "request": {
- "description": "Get all API keys for the organization associated with the API key (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/organizations/apiKeys",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "organizations",
- "apiKeys"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Projects",
- "item": [
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get Project associated with API key (requires project-scoped API key). You can use GET /api/public/organizations/projects to get all projects with an organization-scoped key.",
- "url": {
- "raw": "{{baseUrl}}/api/public/projects",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "projects"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Create",
- "request": {
- "description": "Create a new project (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/projects",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "projects"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"name\": \"example\",\n \"metadata\": {\n \"example\": \"UNKNOWN\"\n },\n \"retention\": 0\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Update",
- "request": {
- "description": "Update a project by ID (requires organization-scoped API key).",
- "url": {
- "raw": "{{baseUrl}}/api/public/projects/:projectId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "projects",
- ":projectId"
- ],
- "query": [],
- "variable": [
- {
- "key": "projectId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "PUT",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"name\": \"example\",\n \"metadata\": {\n \"example\": \"UNKNOWN\"\n },\n \"retention\": 0\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete",
- "request": {
- "description": "Delete a project by ID (requires organization-scoped API key). Project deletion is processed asynchronously.",
- "url": {
- "raw": "{{baseUrl}}/api/public/projects/:projectId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "projects",
- ":projectId"
- ],
- "query": [],
- "variable": [
- {
- "key": "projectId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Api Keys",
- "request": {
- "description": "Get all API keys for a project (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/projects/:projectId/apiKeys",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "projects",
- ":projectId",
- "apiKeys"
- ],
- "query": [],
- "variable": [
- {
- "key": "projectId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Create Api Key",
- "request": {
- "description": "Create a new API key for a project (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/projects/:projectId/apiKeys",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "projects",
- ":projectId",
- "apiKeys"
- ],
- "query": [],
- "variable": [
- {
- "key": "projectId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"note\": \"example\",\n \"publicKey\": \"example\",\n \"secretKey\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete Api Key",
- "request": {
- "description": "Delete an API key for a project (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/projects/:projectId/apiKeys/:apiKeyId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "projects",
- ":projectId",
- "apiKeys",
- ":apiKeyId"
- ],
- "query": [],
- "variable": [
- {
- "key": "projectId",
- "value": "",
- "description": null
- },
- {
- "key": "apiKeyId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Prompt Version",
- "item": [
- {
- "_type": "endpoint",
- "name": "Update",
- "request": {
- "description": "Update labels for a specific prompt version",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/prompts/:name/versions/:version",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "prompts",
- ":name",
- "versions",
- ":version"
- ],
- "query": [],
- "variable": [
- {
- "key": "name",
- "value": "",
- "description": "The name of the prompt. If the prompt is in a folder (e.g., \"folder/subfolder/prompt-name\"), \nthe folder path must be URL encoded."
- },
- {
- "key": "version",
- "value": "",
- "description": "Version of the prompt to update"
- }
- ]
- },
- "header": [],
- "method": "PATCH",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"newLabels\": [\n \"example\"\n ]\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Prompts",
- "item": [
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get a prompt",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/prompts/:promptName?version=&label=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "prompts",
- ":promptName"
- ],
- "query": [
- {
- "key": "version",
- "value": "",
- "description": "Version of the prompt to be retrieved."
- },
- {
- "key": "label",
- "value": "",
- "description": "Label of the prompt to be retrieved. Defaults to \"production\" if no label or version is set."
- }
- ],
- "variable": [
- {
- "key": "promptName",
- "value": "",
- "description": "The name of the prompt. If the prompt is in a folder (e.g., \"folder/subfolder/prompt-name\"), \nthe folder path must be URL encoded."
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "List",
- "request": {
- "description": "Get a list of prompt names with versions and labels",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/prompts?name=&label=&tag=&page=&limit=&fromUpdatedAt=&toUpdatedAt=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "prompts"
- ],
- "query": [
- {
- "key": "name",
- "value": "",
- "description": null
- },
- {
- "key": "label",
- "value": "",
- "description": null
- },
- {
- "key": "tag",
- "value": "",
- "description": null
- },
- {
- "key": "page",
- "value": "",
- "description": "page number, starts at 1"
- },
- {
- "key": "limit",
- "value": "",
- "description": "limit of items per page"
- },
- {
- "key": "fromUpdatedAt",
- "value": "",
- "description": "Optional filter to only include prompt versions created/updated on or after a certain datetime (ISO 8601)"
- },
- {
- "key": "toUpdatedAt",
- "value": "",
- "description": "Optional filter to only include prompt versions created/updated before a certain datetime (ISO 8601)"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Create",
- "request": {
- "description": "Create a new version for the prompt with the given `name`",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/prompts",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "prompts"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"type\": \"chat\",\n \"name\": \"example\",\n \"prompt\": [\n {\n \"type\": \"chatmessage\",\n \"role\": \"example\",\n \"content\": \"example\"\n }\n ],\n \"config\": \"UNKNOWN\",\n \"labels\": [\n \"example\"\n ],\n \"tags\": [\n \"example\"\n ],\n \"commitMessage\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete",
- "request": {
- "description": "Delete prompt versions. If neither version nor label is specified, all versions of the prompt are deleted.",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/prompts/:promptName?label=&version=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "prompts",
- ":promptName"
- ],
- "query": [
- {
- "key": "label",
- "value": "",
- "description": "Optional label to filter deletion. If specified, deletes all prompt versions that have this label."
- },
- {
- "key": "version",
- "value": "",
- "description": "Optional version to filter deletion. If specified, deletes only this specific version of the prompt."
- }
- ],
- "variable": [
- {
- "key": "promptName",
- "value": "",
- "description": "The name of the prompt"
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Scim",
- "item": [
- {
- "_type": "endpoint",
- "name": "Get Service Provider Config",
- "request": {
- "description": "Get SCIM Service Provider Configuration (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/scim/ServiceProviderConfig",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "scim",
- "ServiceProviderConfig"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Resource Types",
- "request": {
- "description": "Get SCIM Resource Types (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/scim/ResourceTypes",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "scim",
- "ResourceTypes"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get Schemas",
- "request": {
- "description": "Get SCIM Schemas (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/scim/Schemas",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "scim",
- "Schemas"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "List Users",
- "request": {
- "description": "List users in the organization (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/scim/Users?filter=&startIndex=&count=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "scim",
- "Users"
- ],
- "query": [
- {
- "key": "filter",
- "value": "",
- "description": "Filter expression (e.g. userName eq \"value\")"
- },
- {
- "key": "startIndex",
- "value": "",
- "description": "1-based index of the first result to return (default 1)"
- },
- {
- "key": "count",
- "value": "",
- "description": "Maximum number of results to return (default 100)"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Create User",
- "request": {
- "description": "Create a new user in the organization (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/scim/Users",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "scim",
- "Users"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"userName\": \"example\",\n \"name\": {\n \"formatted\": \"example\"\n },\n \"emails\": [\n {\n \"primary\": true,\n \"value\": \"example\",\n \"type\": \"example\"\n }\n ],\n \"active\": true,\n \"password\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get User",
- "request": {
- "description": "Get a specific user by ID (requires organization-scoped API key)",
- "url": {
- "raw": "{{baseUrl}}/api/public/scim/Users/:userId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "scim",
- "Users",
- ":userId"
- ],
- "query": [],
- "variable": [
- {
- "key": "userId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete User",
- "request": {
- "description": "Remove a user from the organization (requires organization-scoped API key). Note that this only removes the user from the organization but does not delete the user entity itself.",
- "url": {
- "raw": "{{baseUrl}}/api/public/scim/Users/:userId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "scim",
- "Users",
- ":userId"
- ],
- "query": [],
- "variable": [
- {
- "key": "userId",
- "value": "",
- "description": null
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Score Configs",
- "item": [
- {
- "_type": "endpoint",
- "name": "Create",
- "request": {
- "description": "Create a score configuration (config). Score configs are used to define the structure of scores",
- "url": {
- "raw": "{{baseUrl}}/api/public/score-configs",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "score-configs"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"name\": \"example\",\n \"dataType\": \"NUMERIC\",\n \"categories\": [\n {\n \"value\": 0,\n \"label\": \"example\"\n }\n ],\n \"minValue\": 0,\n \"maxValue\": 0,\n \"description\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get all score configs",
- "url": {
- "raw": "{{baseUrl}}/api/public/score-configs?page=&limit=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "score-configs"
- ],
- "query": [
- {
- "key": "page",
- "value": "",
- "description": "Page number, starts at 1."
- },
- {
- "key": "limit",
- "value": "",
- "description": "Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get By Id",
- "request": {
- "description": "Get a score config",
- "url": {
- "raw": "{{baseUrl}}/api/public/score-configs/:configId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "score-configs",
- ":configId"
- ],
- "query": [],
- "variable": [
- {
- "key": "configId",
- "value": "",
- "description": "The unique langfuse identifier of a score config"
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Update",
- "request": {
- "description": "Update a score config",
- "url": {
- "raw": "{{baseUrl}}/api/public/score-configs/:configId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "score-configs",
- ":configId"
- ],
- "query": [],
- "variable": [
- {
- "key": "configId",
- "value": "",
- "description": "The unique langfuse identifier of a score config"
- }
- ]
- },
- "header": [],
- "method": "PATCH",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"isArchived\": true,\n \"name\": \"example\",\n \"categories\": [\n {\n \"value\": 0,\n \"label\": \"example\"\n }\n ],\n \"minValue\": 0,\n \"maxValue\": 0,\n \"description\": \"example\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Score V 2",
- "item": [
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get a list of scores (supports both trace and session scores)",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/scores?page=&limit=&userId=&name=&fromTimestamp=&toTimestamp=&environment=&source=&operator=&value=&scoreIds=&configId=&sessionId=&datasetRunId=&traceId=&observationId=&queueId=&dataType=&traceTags=&fields=&filter=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "scores"
- ],
- "query": [
- {
- "key": "page",
- "value": "",
- "description": "Page number, starts at 1."
- },
- {
- "key": "limit",
- "value": "",
- "description": "Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit."
- },
- {
- "key": "userId",
- "value": "",
- "description": "Retrieve only scores with this userId associated to the trace."
- },
- {
- "key": "name",
- "value": "",
- "description": "Retrieve only scores with this name."
- },
- {
- "key": "fromTimestamp",
- "value": "",
- "description": "Optional filter to only include scores created on or after a certain datetime (ISO 8601)"
- },
- {
- "key": "toTimestamp",
- "value": "",
- "description": "Optional filter to only include scores created before a certain datetime (ISO 8601)"
- },
- {
- "key": "environment",
- "value": "",
- "description": "Optional filter for scores where the environment is one of the provided values."
- },
- {
- "key": "source",
- "value": "",
- "description": "Retrieve only scores from a specific source."
- },
- {
- "key": "operator",
- "value": "",
- "description": "Retrieve only scores with <operator> value."
- },
- {
- "key": "value",
- "value": "",
- "description": "Retrieve only scores with <operator> value."
- },
- {
- "key": "scoreIds",
- "value": "",
- "description": "Comma-separated list of score IDs to limit the results to."
- },
- {
- "key": "configId",
- "value": "",
- "description": "Retrieve only scores with a specific configId."
- },
- {
- "key": "sessionId",
- "value": "",
- "description": "Retrieve only scores with a specific sessionId."
- },
- {
- "key": "datasetRunId",
- "value": "",
- "description": "Retrieve only scores with a specific datasetRunId."
- },
- {
- "key": "traceId",
- "value": "",
- "description": "Retrieve only scores with a specific traceId."
- },
- {
- "key": "observationId",
- "value": "",
- "description": "Comma-separated list of observation IDs to filter scores by."
- },
- {
- "key": "queueId",
- "value": "",
- "description": "Retrieve only scores with a specific annotation queueId."
- },
- {
- "key": "dataType",
- "value": "",
- "description": "Retrieve only scores with a specific dataType."
- },
- {
- "key": "traceTags",
- "value": "",
- "description": "Only scores linked to traces that include all of these tags will be returned."
- },
- {
- "key": "fields",
- "value": "",
- "description": "Comma-separated list of field groups to include in the response. Available field groups: 'score' (core score fields), 'trace' (trace properties: userId, tags, environment). If not specified, both 'score' and 'trace' are returned by default. Example: 'score' to exclude trace data, 'score,trace' to include both. Note: When filtering by trace properties (using userId or traceTags parameters), the 'trace' field group must be included, otherwise a 400 error will be returned."
- },
- {
- "key": "filter",
- "value": "",
- "description": "A JSON stringified array of filter objects. Each object requires type, column, operator, and value. Supports filtering by score metadata using the stringObject type. Example: [{\"type\":\"stringObject\",\"column\":\"metadata\",\"key\":\"user_id\",\"operator\":\"=\",\"value\":\"abc123\"}]. Supported types: stringObject (metadata key-value filtering), string, number, datetime, stringOptions, arrayOptions. Supported operators for stringObject: =, contains, does not contain, starts with, ends with."
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get By Id",
- "request": {
- "description": "Get a score (supports both trace and session scores)",
- "url": {
- "raw": "{{baseUrl}}/api/public/v2/scores/:scoreId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "v2",
- "scores",
- ":scoreId"
- ],
- "query": [],
- "variable": [
- {
- "key": "scoreId",
- "value": "",
- "description": "The unique langfuse identifier of a score"
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Score",
- "item": [
- {
- "_type": "endpoint",
- "name": "Create",
- "request": {
- "description": "Create a score (supports both trace and session scores)",
- "url": {
- "raw": "{{baseUrl}}/api/public/scores",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "scores"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "POST",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"name\": \"novelty\",\n \"value\": 0.9,\n \"traceId\": \"cdef-1234-5678-90ab\"\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete",
- "request": {
- "description": "Delete a score (supports both trace and session scores)",
- "url": {
- "raw": "{{baseUrl}}/api/public/scores/:scoreId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "scores",
- ":scoreId"
- ],
- "query": [],
- "variable": [
- {
- "key": "scoreId",
- "value": "",
- "description": "The unique langfuse identifier of a score"
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Sessions",
- "item": [
- {
- "_type": "endpoint",
- "name": "List",
- "request": {
- "description": "Get sessions",
- "url": {
- "raw": "{{baseUrl}}/api/public/sessions?page=&limit=&fromTimestamp=&toTimestamp=&environment=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "sessions"
- ],
- "query": [
- {
- "key": "page",
- "value": "",
- "description": "Page number, starts at 1"
- },
- {
- "key": "limit",
- "value": "",
- "description": "Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit."
- },
- {
- "key": "fromTimestamp",
- "value": "",
- "description": "Optional filter to only include sessions created on or after a certain datetime (ISO 8601)"
- },
- {
- "key": "toTimestamp",
- "value": "",
- "description": "Optional filter to only include sessions created before a certain datetime (ISO 8601)"
- },
- {
- "key": "environment",
- "value": "",
- "description": "Optional filter for sessions where the environment is one of the provided values."
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get a session. Please note that `traces` on this endpoint are not paginated, if you plan to fetch large sessions, consider `GET /api/public/traces?sessionId=<sessionId>`",
- "url": {
- "raw": "{{baseUrl}}/api/public/sessions/:sessionId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "sessions",
- ":sessionId"
- ],
- "query": [],
- "variable": [
- {
- "key": "sessionId",
- "value": "",
- "description": "The unique id of a session"
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- }
- ]
- },
- {
- "_type": "container",
- "description": null,
- "name": "Trace",
- "item": [
- {
- "_type": "endpoint",
- "name": "Get",
- "request": {
- "description": "Get a specific trace",
- "url": {
- "raw": "{{baseUrl}}/api/public/traces/:traceId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "traces",
- ":traceId"
- ],
- "query": [],
- "variable": [
- {
- "key": "traceId",
- "value": "",
- "description": "The unique langfuse identifier of a trace"
- }
- ]
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete",
- "request": {
- "description": "Delete a specific trace",
- "url": {
- "raw": "{{baseUrl}}/api/public/traces/:traceId",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "traces",
- ":traceId"
- ],
- "query": [],
- "variable": [
- {
- "key": "traceId",
- "value": "",
- "description": "The unique langfuse identifier of the trace to delete"
- }
- ]
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "List",
- "request": {
- "description": "Get list of traces",
- "url": {
- "raw": "{{baseUrl}}/api/public/traces?page=&limit=&userId=&name=&sessionId=&fromTimestamp=&toTimestamp=&orderBy=&tags=&version=&release=&environment=&fields=&filter=",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "traces"
- ],
- "query": [
- {
- "key": "page",
- "value": "",
- "description": "Page number, starts at 1"
- },
- {
- "key": "limit",
- "value": "",
- "description": "Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit."
- },
- {
- "key": "userId",
- "value": "",
- "description": null
- },
- {
- "key": "name",
- "value": "",
- "description": null
- },
- {
- "key": "sessionId",
- "value": "",
- "description": null
- },
- {
- "key": "fromTimestamp",
- "value": "",
- "description": "Optional filter to only include traces with a trace.timestamp on or after a certain datetime (ISO 8601)"
- },
- {
- "key": "toTimestamp",
- "value": "",
- "description": "Optional filter to only include traces with a trace.timestamp before a certain datetime (ISO 8601)"
- },
- {
- "key": "orderBy",
- "value": "",
- "description": "Format of the string [field].[asc/desc]. Fields: id, timestamp, name, userId, release, version, public, bookmarked, sessionId. Example: timestamp.asc"
- },
- {
- "key": "tags",
- "value": "",
- "description": "Only traces that include all of these tags will be returned."
- },
- {
- "key": "version",
- "value": "",
- "description": "Optional filter to only include traces with a certain version."
- },
- {
- "key": "release",
- "value": "",
- "description": "Optional filter to only include traces with a certain release."
- },
- {
- "key": "environment",
- "value": "",
- "description": "Optional filter for traces where the environment is one of the provided values."
- },
- {
- "key": "fields",
- "value": "",
- "description": "Comma-separated list of fields to include in the response. Available field groups: 'core' (always included), 'io' (input, output, metadata), 'scores', 'observations', 'metrics'. If not specified, all fields are returned. Example: 'core,scores,metrics'. Note: Excluded 'observations' or 'scores' fields return empty arrays; excluded 'metrics' returns -1 for 'totalCost' and 'latency'."
- },
- {
- "key": "filter",
- "value": "",
- "description": "JSON string containing an array of filter conditions. When provided, this takes precedence over query parameter filters (userId, name, sessionId, tags, version, release, environment, fromTimestamp, toTimestamp).\n\n## Filter Structure\nEach filter condition has the following structure:\n```json\n[\n {\n \"type\": string, // Required. One of: \"datetime\", \"string\", \"number\", \"stringOptions\", \"categoryOptions\", \"arrayOptions\", \"stringObject\", \"numberObject\", \"boolean\", \"null\"\n \"column\": string, // Required. Column to filter on (see available columns below)\n \"operator\": string, // Required. Operator based on type:\n // - datetime: \">\", \"<\", \">=\", \"<=\"\n // - string: \"=\", \"contains\", \"does not contain\", \"starts with\", \"ends with\"\n // - stringOptions: \"any of\", \"none of\"\n // - categoryOptions: \"any of\", \"none of\"\n // - arrayOptions: \"any of\", \"none of\", \"all of\"\n // - number: \"=\", \">\", \"<\", \">=\", \"<=\"\n // - stringObject: \"=\", \"contains\", \"does not contain\", \"starts with\", \"ends with\"\n // - numberObject: \"=\", \">\", \"<\", \">=\", \"<=\"\n // - boolean: \"=\", \"<>\"\n // - null: \"is null\", \"is not null\"\n \"value\": any, // Required (except for null type). Value to compare against. Type depends on filter type\n \"key\": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata\n }\n]\n```\n\n## Available Columns\n\n### Core Trace Fields\n- `id` (string) - Trace ID\n- `name` (string) - Trace name\n- `timestamp` (datetime) - Trace timestamp\n- `userId` (string) - User ID\n- `sessionId` (string) - Session ID\n- `environment` (string) - Environment tag\n- `version` (string) - Version tag\n- `release` (string) - Release tag\n- `tags` (arrayOptions) - Array of tags\n- `bookmarked` (boolean) - Bookmark status\n\n### Structured Data\n- `metadata` (stringObject/numberObject/categoryOptions) - Metadata key-value pairs. Use `key` parameter to filter on specific metadata keys.\n\n### Aggregated Metrics (from observations)\nThese metrics are aggregated from all observations within the trace:\n- `latency` (number) - Latency in seconds (time from first observation start to last observation end)\n- `inputTokens` (number) - Total input tokens across all observations\n- `outputTokens` (number) - Total output tokens across all observations\n- `totalTokens` (number) - Total tokens (alias: `tokens`)\n- `inputCost` (number) - Total input cost in USD\n- `outputCost` (number) - Total output cost in USD\n- `totalCost` (number) - Total cost in USD\n\n### Observation Level Aggregations\nThese fields aggregate observation levels within the trace:\n- `level` (string) - Highest severity level (ERROR > WARNING > DEFAULT > DEBUG)\n- `warningCount` (number) - Count of WARNING level observations\n- `errorCount` (number) - Count of ERROR level observations\n- `defaultCount` (number) - Count of DEFAULT level observations\n- `debugCount` (number) - Count of DEBUG level observations\n\n### Scores (requires join with scores table)\n- `scores_avg` (number) - Average of numeric scores (alias: `scores`)\n- `score_categories` (categoryOptions) - Categorical score values\n\n## Filter Examples\n```json\n[\n {\n \"type\": \"datetime\",\n \"column\": \"timestamp\",\n \"operator\": \">=\",\n \"value\": \"2024-01-01T00:00:00Z\"\n },\n {\n \"type\": \"string\",\n \"column\": \"userId\",\n \"operator\": \"=\",\n \"value\": \"user-123\"\n },\n {\n \"type\": \"number\",\n \"column\": \"totalCost\",\n \"operator\": \">=\",\n \"value\": 0.01\n },\n {\n \"type\": \"arrayOptions\",\n \"column\": \"tags\",\n \"operator\": \"all of\",\n \"value\": [\"production\", \"critical\"]\n },\n {\n \"type\": \"stringObject\",\n \"column\": \"metadata\",\n \"key\": \"customer_tier\",\n \"operator\": \"=\",\n \"value\": \"enterprise\"\n }\n]\n```\n\n## Performance Notes\n- Filtering on `userId`, `sessionId`, or `metadata` may enable skip indexes for better query performance\n- Score filters require a join with the scores table and may impact query performance"
- }
- ],
- "variable": []
- },
- "header": [],
- "method": "GET",
- "auth": null,
- "body": null
- },
- "response": []
- },
- {
- "_type": "endpoint",
- "name": "Delete Multiple",
- "request": {
- "description": "Delete multiple traces",
- "url": {
- "raw": "{{baseUrl}}/api/public/traces",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "api",
- "public",
- "traces"
- ],
- "query": [],
- "variable": []
- },
- "header": [],
- "method": "DELETE",
- "auth": null,
- "body": {
- "mode": "raw",
- "raw": "{\n \"traceIds\": [\n \"example\"\n ]\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- }
- },
- "response": []
- }
- ]
- }
- ]
-}
\ No newline at end of file