usage-limits

Upsert Usage Limit

Changed on

Create a new usage limit.

put/api/v1/usage-limits

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/api/v1/usage-limits
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Request body

limit_type'monthly_traces' | 'monthly_longlived_traces' required

Type of usage limit.

limit_valueinteger required
idstring uuid
scope'workspace' | 'project' | 'user'

Granularity a limit applies to within a tenant.

session_idstring uuid nullable
identity_idstring uuid nullable

Response

Successful Response

limit_type'monthly_traces' | 'monthly_longlived_traces' required

Type of usage limit.

limit_valueinteger required
idstring uuid
scope'workspace' | 'project' | 'user'

Granularity a limit applies to within a tenant.

session_idstring uuid nullable
identity_idstring uuid nullable
tenant_idstring uuid required
created_atstring date-time required
updated_atstring date-time required

Changes

    • breaking

      the / response's property type changed from object to string for status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status