> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# EnterpriseConsumptionClient

## Constructor

```typescript
EnterpriseConsumptionClient(options: BaseClientOptions): ConsumptionClient
```

### Parameters

**options** `BaseClientOptions` *required*

### Returns

`ConsumptionClient`

## Methods

### getConsumptionCycles()

```typescript
getConsumptionCycles(request?: GetConsumptionCyclesConsumptionRequest, requestOptions?: RequestOptions): Promise<Page<ConsumptionCycle, PaginatedResponseConsumptionCycle>>
```

#### Parameters

**request** `GetConsumptionCyclesConsumptionRequest`

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`Promise<Page<ConsumptionCycle, PaginatedResponseConsumptionCycle>>`

### getConsumptionDaily()

```typescript
getConsumptionDaily(request?: GetConsumptionDailyConsumptionRequest, requestOptions?: RequestOptions): HttpResponsePromise<ConsumptionResponse>
```

Get daily ACU consumption for the entire enterprise.

Returns total ACUs and consumption broken down by date.

**Timezone behavior**: Billing cycles use midnight PST (Pacific Standard Time)
as the day boundary, which corresponds to 08:00:00 UTC. To match the consumption
data shown in the Devin dashboard, pass Unix timestamps that align with this
timezone offset (e.g., 1733385600 for December 5, 2025 at midnight PST).

```ts
await client.enterprise.consumption.getConsumptionDaily()
```

#### Parameters

**request** `GetConsumptionDailyConsumptionRequest`

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<ConsumptionResponse>`

### getOrgConsumptionDaily()

```typescript
getOrgConsumptionDaily(request: GetOrgConsumptionDailyConsumptionRequest, requestOptions?: RequestOptions): HttpResponsePromise<ConsumptionResponse>
```

Get daily ACU consumption for a specific organization.

Returns total ACUs and consumption broken down by date for the org.

**Timezone behavior**: Billing cycles use midnight PST (Pacific Standard Time)
as the day boundary, which corresponds to 08:00:00 UTC. To match the consumption
data shown in the Devin dashboard, pass Unix timestamps that align with this
timezone offset (e.g., 1733385600 for December 5, 2025 at midnight PST).

```ts
await client.enterprise.consumption.getOrgConsumptionDaily({
        org_id: "org-abc123def456"
    })
```

#### Parameters

**request** `GetOrgConsumptionDailyConsumptionRequest` *required*

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<ConsumptionResponse>`

### getServiceUserConsumptionDaily()

```typescript
getServiceUserConsumptionDaily(request: GetServiceUserConsumptionDailyConsumptionRequest, requestOptions?: RequestOptions): HttpResponsePromise<ConsumptionResponse>
```

Get daily ACU consumption for a specific service user.

Returns total ACUs and consumption broken down by date for sessions
created by the given service user.

**Timezone behavior**: Billing cycles use midnight PST (Pacific Standard Time)
as the day boundary, which corresponds to 08:00:00 UTC. To match the consumption
data shown in the Devin dashboard, pass Unix timestamps that align with this
timezone offset (e.g., 1733385600 for December 5, 2025 at midnight PST).

```ts
await client.enterprise.consumption.getServiceUserConsumptionDaily({
        service_user_id: "service-user-abc123def456"
    })
```

#### Parameters

**request** `GetServiceUserConsumptionDailyConsumptionRequest` *required*

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<ConsumptionResponse>`

### getSessionConsumptionDaily()

```typescript
getSessionConsumptionDaily(request: GetSessionConsumptionDailyConsumptionRequest, requestOptions?: RequestOptions): HttpResponsePromise<ConsumptionResponse>
```

Get daily ACU consumption for a specific session.

Returns total ACUs and consumption broken down by date for the session.

**Timezone behavior**: Billing cycles use midnight PST (Pacific Standard Time)
as the day boundary, which corresponds to 08:00:00 UTC. To match the consumption
data shown in the Devin dashboard, pass Unix timestamps that align with this
timezone offset (e.g., 1733385600 for December 5, 2025 at midnight PST).

```ts
await client.enterprise.consumption.getSessionConsumptionDaily({
        session_id: "devin-abc123def456"
    })
```

#### Parameters

**request** `GetSessionConsumptionDailyConsumptionRequest` *required*

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<ConsumptionResponse>`

### getUserConsumptionDaily()

```typescript
getUserConsumptionDaily(request: GetUserConsumptionDailyConsumptionRequest, requestOptions?: RequestOptions): HttpResponsePromise<ConsumptionResponse>
```

Get daily ACU consumption for a specific user.

Returns total ACUs and consumption broken down by date for the user.

**Timezone behavior**: Billing cycles use midnight PST (Pacific Standard Time)
as the day boundary, which corresponds to 08:00:00 UTC. To match the consumption
data shown in the Devin dashboard, pass Unix timestamps that align with this
timezone offset (e.g., 1733385600 for December 5, 2025 at midnight PST).

```ts
await client.enterprise.consumption.getUserConsumptionDaily({
        user_id: "user_id"
    })
```

#### Parameters

**request** `GetUserConsumptionDailyConsumptionRequest` *required*

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<ConsumptionResponse>`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.