OpenPipe Report Anthropic API
The Report Anthropic API from OpenPipe — 1 operation(s) for report anthropic.
The Report Anthropic API from OpenPipe — 1 operation(s) for report anthropic.
openapi: 3.0.3
info:
title: OpenPipe Chat Report Anthropic API
description: The public API for reporting API calls to OpenPipe
version: 0.1.1
servers:
- url: https://api.openpipe.ai/api/v1
tags:
- name: Report Anthropic
paths:
/report-anthropic:
post:
operationId: reportAnthropic
description: Record request logs from Anthropic models
security:
- Authorization: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
requestedAt:
type: number
description: Unix timestamp in milliseconds
receivedAt:
type: number
description: Unix timestamp in milliseconds
reqPayload:
anyOf:
- type: object
properties:
max_tokens:
type: number
messages:
type: array
items:
type: object
properties:
content:
anyOf:
- type: string
- type: array
items:
anyOf:
- type: object
properties:
text:
type: string
type:
type: string
enum:
- text
cache_control:
anyOf:
- type: object
properties:
type:
type: string
enum:
- ephemeral
required:
- type
additionalProperties: false
- enum:
- 'null'
nullable: true
citations:
type: array
items:
anyOf:
- type: object
properties:
cited_text:
type: string
document_index:
type: number
document_title:
type: string
nullable: true
end_char_index:
type: number
start_char_index:
type: number
type:
type: string
enum:
- char_location
required:
- cited_text
- document_index
- document_title
- end_char_index
- start_char_index
- type
additionalProperties: false
- type: object
properties:
cited_text:
type: string
document_index:
type: number
document_title:
type: string
nullable: true
end_page_number:
type: number
start_page_number:
type: number
type:
type: string
enum:
- page_location
required:
- cited_text
- document_index
- document_title
- end_page_number
- start_page_number
- type
additionalProperties: false
- type: object
properties:
cited_text:
type: string
document_index:
type: number
document_title:
type: string
nullable: true
end_block_index:
type: number
start_block_index:
type: number
type:
type: string
enum:
- content_block_location
required:
- cited_text
- document_index
- document_title
- end_block_index
- start_block_index
- type
additionalProperties: false
nullable: true
required:
- text
- type
additionalProperties: false
- type: object
properties:
source:
type: object
properties:
data:
type: string
media_type:
anyOf:
- type: string
enum:
- image/jpeg
- type: string
enum:
- image/png
- type: string
enum:
- image/gif
- type: string
enum:
- image/webp
type:
type: string
enum:
- base64
required:
- data
- media_type
- type
additionalProperties: false
type:
type: string
enum:
- image
cache_control:
anyOf:
- type: object
properties:
type:
type: string
enum:
- ephemeral
required:
- type
additionalProperties: false
- enum:
- 'null'
nullable: true
required:
- source
- type
additionalProperties: false
- type: object
properties:
id:
type: string
input: {}
name:
type: string
type:
type: string
enum:
- tool_use
cache_control:
anyOf:
- type: object
properties:
type:
type: string
enum:
- ephemeral
required:
- type
additionalProperties: false
- enum:
- 'null'
nullable: true
required:
- id
- name
- type
additionalProperties: false
- type: object
properties:
tool_use_id:
type: string
type:
type: string
enum:
- tool_result
content:
anyOf:
- type: string
- type: array
items:
anyOf:
- type: object
properties:
text:
type: string
type:
type: string
enum:
- text
cache_control:
anyOf:
- type: object
properties:
type:
type: string
enum:
- ephemeral
required:
- type
additionalProperties: false
- enum:
- 'null'
nullable: true
citations:
type: array
items:
anyOf:
- type: object
properties:
cited_text:
type: string
document_index:
type: number
document_title:
type: string
nullable: true
end_char_index:
type: number
start_char_index:
type: number
type:
type: string
enum:
- char_location
required:
- cited_text
- document_index
- document_title
- end_char_index
- start_char_index
- type
additionalProperties: false
- type: object
properties:
cited_text:
type: string
document_index:
type: number
document_title:
type: string
nullable: true
end_page_number:
type: number
start_page_number:
type: number
type:
type: string
enum:
- page_location
required:
- cited_text
- document_index
- document_title
- end_page_number
- start_page_number
- type
additionalProperties: false
- type: object
properties:
cited_text:
type: string
document_index:
type: number
document_title:
type: string
nullable: true
end_block_index:
type: number
start_block_index:
type: number
type:
type: string
enum:
- content_block_location
required:
- cited_text
- document_index
- document_title
- end_block_index
- start_block_index
- type
additionalProperties: false
nullable: true
required:
- text
- type
additionalProperties: false
- type: object
properties:
source:
type: object
properties:
data:
type: string
media_type:
anyOf:
- type: string
enum:
- image/jpeg
- type: string
enum:
- image/png
- type: string
enum:
- image/gif
- type: string
enum:
- image/webp
type:
type: string
enum:
- base64
required:
- data
- media_type
- type
additionalProperties: false
type:
type: string
enum:
- image
cache_control:
anyOf:
- type: object
properties:
type:
type: string
enum:
- ephemeral
required:
- type
additionalProperties: false
- enum:
- 'null'
nullable: true
required:
- source
- type
additionalProperties: false
is_error:
type: boolean
cache_control:
anyOf:
- type: object
properties:
type:
type: string
enum:
- ephemeral
required:
- type
additionalProperties: false
- enum:
- 'null'
nullable: true
required:
- tool_use_id
- type
additionalProperties: false
- type: object
properties:
source:
anyOf:
- type: object
properties:
data:
type: string
media_type:
type: string
enum:
- application/pdf
type:
type: string
enum:
- base64
required:
- data
- media_type
- type
additionalProperties: false
- type: object
properties:
data:
type: string
media_type:
type: string
enum:
- text/plain
type:
type: string
enum:
- text
required:
- data
- media_type
- type
additionalProperties: false
- type: object
properties:
content:
anyOf:
- type: string
- type: array
items:
anyOf:
- type: object
properties:
text:
type: string
type:
type: string
enum:
- text
cache_control:
anyOf:
- type: object
properties:
type:
type: string
enum:
- ephemeral
required:
- type
additionalProperties: false
- enum:
- 'null'
nullable: true
citations:
type: array
items:
anyOf:
- type: object
properties:
cited_text:
type: string
document_index:
type: number
document_title:
type: string
nullable: true
end_char_index:
type: number
start_char_index:
type: number
type:
type: string
enum:
- char_location
required:
- cited_text
- document_index
- document_title
- end_char_index
- start_char_index
- type
additionalProperties: false
- type: object
properties:
cited_text:
type: string
document_index:
type: number
document_title:
type: string
nullable: true
end_page_number:
type: number
start_page_number:
type: number
type:
type: string
enum:
- page_location
required:
- cited_text
- document_index
- document_title
- end_page_number
- start_page_number
- type
additionalProperties: false
- type: object
properties:
cited_text:
type: string
document_index:
type: number
document_title:
type: string
nullable: true
# --- truncated at 32 KB (120 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/openpipe/refs/heads/main/openapi/openpipe-report-anthropic-api-openapi.yml