Skip to content

ai

For users and admins: the ai routes cover this part of the API. Every route lives under the one public origin, https://venturenetwork.ai, and answers errors as problem types. The interactive version of this page is the live Scalar reference at https://venturenetwork.ai/docs. This page is generated from packages/sdk/openapi.json on every build.

Operation id MeAiController_credential.

200

Field Type Required Notes
available boolean yes
credential object or null yes

Derived from the source scan (handler, one level of service calls, guards and pipes): membership_pending, membership_suspended.

Operation id MeAiController_saveCredential.

Field Type Required Notes
apiKey string yes pattern ^sk-or-[A-Za-z0-9_-]{16,200}$
label string yes max length 60, default ""

200

Field Type Required Notes
id string yes
ownerKind string, one of user, org yes
source string, one of byok, minted yes
label string yes
last4 string yes
status string, one of active, disabled, invalid yes
createdAt string yes
lastUsedAt string or null yes

Derived from the source scan (handler, one level of service calls, guards and pipes): membership_pending, membership_suspended, validation_failed.

Operation id MeAiController_removeCredential.

204

No body.

Derived from the source scan (handler, one level of service calls, guards and pipes): membership_pending, membership_suspended.

Operation id MeAiController_usageSummary.

Name In Required Type Notes
to query no string (date-time)
from query no string (date-time)

200

Field Type Required Notes
from string yes
to string yes
totals object yes
totals.runs integer yes
totals.succeeded integer yes
totals.failed integer yes
totals.denied integer yes
totals.inputTokens integer yes
totals.outputTokens integer yes
totals.costUsd number yes
byAgent array of object yes
byKeySource array of object yes

Derived from the source scan (handler, one level of service calls, guards and pipes): membership_pending, membership_suspended, validation_failed.

Operation id OrgAiController_credential.

Name In Required Type Notes
slug path yes string

200

Field Type Required Notes
available boolean yes
credential object or null yes

Derived from the source scan (handler, one level of service calls, guards and pipes): membership_pending, membership_suspended, org_not_found.

Operation id OrgAiController_saveCredential.

Name In Required Type Notes
slug path yes string
Field Type Required Notes
apiKey string yes pattern ^sk-or-[A-Za-z0-9_-]{16,200}$
label string yes max length 60, default ""

200

Field Type Required Notes
id string yes
ownerKind string, one of user, org yes
source string, one of byok, minted yes
label string yes
last4 string yes
status string, one of active, disabled, invalid yes
createdAt string yes
lastUsedAt string or null yes

Derived from the source scan (handler, one level of service calls, guards and pipes): membership_pending, membership_suspended, org_not_found, validation_failed.

Operation id OrgAiController_removeCredential.

Name In Required Type Notes
slug path yes string

204

No body.

Derived from the source scan (handler, one level of service calls, guards and pipes): membership_pending, membership_suspended, org_not_found.

Operation id OrgAiController_usageSummary.

Name In Required Type Notes
to query no string (date-time)
from query no string (date-time)
slug path yes string

200

Field Type Required Notes
from string yes
to string yes
totals object yes
totals.runs integer yes
totals.succeeded integer yes
totals.failed integer yes
totals.denied integer yes
totals.inputTokens integer yes
totals.outputTokens integer yes
totals.costUsd number yes
byAgent array of object yes
byKeySource array of object yes
byMember array of object yes

Derived from the source scan (handler, one level of service calls, guards and pipes): membership_pending, membership_suspended, org_not_found, validation_failed.