API Reference
Log In
API Reference

Attribute session to ticket

Record a point-in-time attribution between a coding-assistant session and a ticket. A different ticket opens a new time interval; re-posting the same ticket as the current interval (without effectiveFrom) is a no-op. An explicit effectiveFrom is idempotent on (org, sessionId, effectiveFrom): it updates that interval in place (last-write-wins).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Opaque identifier for the coding-assistant session (e.g. Claude Code session UUID).

Query Params
string

Unique identifier of the team (organization). Format: Revenium hashid (URL-safe encoded string). Optional when authenticating with a metering API key: the team is then derived from the key's own organization, and an explicit value that names a different organization is rejected. Required when authenticating on the management plane (WRITE-scoped API key or JWT session).

Body Params

Session → ticket attribution payload

Session → ticket attribution payload

string | null
string | null
string | null
string
enum
Allowed:
string | null
string | null
string | null
date-time | null
splits
array of objects | null

Weighted multi-ticket split (PRODUCT-2656 PR5), 1-10 entries. Mutually exclusive with ticketId; exactly one of the two must be supplied. Weights are normalized server-side to sum to 1.0 (tolerance ±0.01) and apportion the SERVER-MOVABLE cost subset only — rows already customer-attributed are left out of both the assignment and the denominator. Gated behind the coding-assistant-splits-enabled feature flag.

splits
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/hal+json
*/*