Monthly Tracked Users

Get Daily Per Source MTU Usage

Provides daily cumulative per-source MTU counts for a usage period.

Securitytoken
Request
query Parameters
period
required
string (period)

The start of the usage month, in the ISO-8601 format.

This parameter exists in v1.

Example: period=2021-02-01
object (PaginationInput)

Pagination input for per Source MTU counts.

This parameter exists in v1.

Example: pagination=pagination.count=10
Responses
200

OK

404

Resource not found

422

Validation failure

429

Too many requests

get/usage/mtu/sources/daily
Request samples
import { configureApis, unwrap } from '@segment/public-api-sdk-typescript'

const api = configureApis('/* Insert your Public API token here */')

try {
  const result = await unwrap(api.monthlyTrackedUsers.getDailyPerSourceMTUUsage('2021-02-01'))
  console.log(JSON.stringify(result))
} catch (e) {
  console.log('ERROR:', e)
}
Response samples
{
  • "data": {
    }
}

Get Daily Workspace MTU Usage

Provides daily cumulative MTU counts for a usage period.

Securitytoken
Request
query Parameters
period
required
string (period)

The start of the usage month, in the ISO-8601 format.

This parameter exists in v1.

Example: period=2021-02-01
object (PaginationInput)

Pagination input for Workspace MTU counts.

This parameter exists in v1.

Example: pagination=pagination.count=10
Responses
200

OK

404

Resource not found

422

Validation failure

429

Too many requests

get/usage/mtu/daily
Request samples
import { configureApis, unwrap } from '@segment/public-api-sdk-typescript'

const api = configureApis('/* Insert your Public API token here */')

try {
  const result = await unwrap(api.monthlyTrackedUsers.getDailyWorkspaceMTUUsage('2021-02-01'))
  console.log(JSON.stringify(result))
} catch (e) {
  console.log('ERROR:', e)
}
Response samples
{
  • "data": {
    }
}