> This page is for Postman API Docs.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt.

# Get analytics data

GET https://api.postman.com/analytics

Gets analytics data based on the specified resource, metrics, and given filters for team, internal, and public workspaces, as well as Partner Workspaces.

**Note:**

This endpoint only accepts the following resource:metric query parameter combinations:
- `user` — `workspace_active_users`, `active_users`
- `workspace` — `elements_in_workspace`, `active_workspaces`, `api_calls`, `active_collections`, `response_status`, `pending_invites`, `needs_attention`, `success_rate`, `user_requests`, `collection_error_aggregate`
- `team` — `user_api_journey`, `workspace_distribution`, `internal_workspace_distribution`, `license_consumption`, `members`, `last_autoflex_cycle`, `partner_engagement_funnel` `members_overtime` , `member_invites`, `invites_sent` , `invites_accepted`
- `ai` — `top_agent_models_by_usage`, `activity_distribution`, `peak_activity`, `usage_leaderboard`, `credit_usage_by_model`, `messages_sent`, `credit_usage`, `agent_mode_sessions`, `new_vs_returning_users`, `agent_mode_users`
- `api_development` — `active_workspaces`, `entity_activity`, `top_entities`
- `api_testing` — `runs`, `functional_test_runs`, `performance_test_runs`
- `api_production` — `monitor_runs`, `flow_executions`
- `api_distribution` — `active_workspaces`, `pvt_network`, `partner`, `public`
- `api_management` — `workspace_activity`

The `view` query parameter only accepts the following values when called with the following resource:metric pairs:
`detailed` or `summary` — `user:active_users`, `workspace:active_workspaces`, `workspace:pending_invites`, `workspace:needs_attention`, `workspace:success_rate`, `team:partner_engagement_funnel`, `api_distribution:pvt_network`, `api_distribution:partner`, `api_distribution:public`
- `detailed`, `summary`, or `trends` — `api_development:entity_activity`, `api_testing:functional_test_runs` , `api_testing:performance_test_runs`, `api_production:monitor_runs`, `api_production:flow_executions`
- `summary` or `trend` — `api_development:active_workspaces`, `api_testing:runs`, `api_distribution:active_workspaces`, `api_management:workspace_activity`
- `summary` only — `workspace:elements_in_workspace`, `workspace:workspace_active_users`, `workspace:api_calls`, `workspace:response_status`, `team:user_api_journey`, `team:workspace_distribution`, `team:internal_workspace_distribution`, `team:license_consumption`
- `detailed` only — `workspace:active_collections`, `workspace:user_requests`, `api_development:top_entities`, `api_management:popular_workspaces` , `team:invites_sent` , `team:invites_accepted`
- `trend` only — `team:members_overtime`, `team:member_invites`


Reference: https://learning.postman.com/api-docs/api-reference/analytics/get-analytics-data

## Authentication

- `x-api-key` header (required) — API Key authentication via header

## Servers

- `https://api.postman.com` (https://api.postman.com, default)
- `https://api.eu.postman.com` (https://api.eu.postman.com)

## Request

### Query parameters

- `resource` (enum, required) — Returns metrics and insights for API usage, success, and workspace/team trends in Postman: - `user` — Data related to individual user activities and engagement within Postman workspaces. - `team` — Team-level analytics, license consumption, and organizational trends. - `workspace` — Workspace-level activities, elements, and collaboration patterns. - `ai` — Analytics related to Agent Mode usage across workspaces, covering user activity, model usage, and credit consumption patterns. - `api_development` — API development activity metrics that include workspace counts, entity activity by type (collection, flow, mock, specification, sdk), and top entities. - `api_testing` — API testing metrics such as total test runs, functional test runs (Collection Runner), and performance test runs. - `api_production` — API production metrics, including monitor run activity and production flow execution activity. - `api_distribution` — API distribution metrics, such as active workspace counts across distribution channels. - `api_management` — API management metrics, such as workspace activity, active counts, trends, and top workspaces.
  - Allowed values: `user`, `team`, `workspace`, `ai`, `api_development`, `api_testing`, `api_production`, `api_distribution`, `api_management`
- `metrics` (enum, required) — Filters the response by only the given metrics. The metric must match the given `resource` value. For a list of metrics and their related `resource` value, call the GET `/analytics-metadata` endpoint.
  - Allowed values: `active_users`, `workspace_active_users`, `elements_in_workspace`, `active_workspaces`, `api_calls`, `active_collections`, `response_status`, `pending_invites`, `needs_attention`, `success_rate`, `user_requests`, `user_api_journey`, `workspace_distribution`, `internal_workspace_distribution`, `license_consumption`, `members`, `last_autoflex_cycle`, `partner_engagement_funnel`, `collection_error_aggregate`, `agent_mode_users`, `new_vs_returning_users`, `agent_mode_sessions`, `messages_sent`, `credit_usage`, `credit_usage_by_model`, `usage_leaderboard`, `peak_activity`, `activity_distribution`, `top_agent_models_by_usage`, `entity_activity`, `top_entities`, `runs`, `functional_test_runs`, `performance_test_runs`, `monitor_runs`, `flow_executions`, `pvt_network`, `partner`, `public`, `workspace_activity`, `members_overtime`, `member_invites`, `invites_sent`, `invites_accepted`
- `view` (enum, optional) — The view type for the analytics data: - `detailed` — Return extensive information. - `summary` — Return aggregated information. - `trend` — Return trend information over a duration.
  - Allowed values: `detailed`, `summary`, `trend`
- `workspaceType` (string, optional) — A comma-separated list of `internal`, `public`, and `partner` workspace types to filter the results by.
- `userId` (string, optional) — A comma-separated list of user IDs to filter the results by. Only pass this parameter when calling the `user_requests` metric for the `workspace` resource.
- `duration` (enum, optional) — Filters the response by the given duration.
  - Allowed values: `last_30_days`, `last_180_days`, `last_month`, `last_6_months`, `last_7_days`, `last_1_year`
- `requestId` (string, optional) — A comma-separated list of unique request IDs (`userId`-`requestId`) to filter the response by. Only pass this parameter when using the `user_requests` metric.
- `responseStatus` (string, optional) — A comma-separated list of HTTP response status codes to filter the results by. Accepts values `100` through `600`. Only pass this parameter when using the `user_requests` metric.
- `attentionType` (string, optional) — A comma-separated list of issues types to filter the results by. Attention types provide details about issues users or partners are facing. Accepts the `high_non_200OK_rate_for_partner` and `no_success_on_tried_request` values. Only pass this parameter when using the `needs_attention` metric.
- `period` (string, optional) — Filters results for a given period of time (as opposed to a range) for supported views. Use a YEAR-MONTH value for month filtering or YEAR-MONTH-DAY day filtering.
- `userType` (enum, optional) — Filters results by a specific user type for supported views.
  - Allowed values: `new`, `returning`
- `entityType` (enum, optional) — The type of Postman entity to filter results by.
  - Allowed values: `collection`, `specification`, `mock`, `flow`, `sdk-collection`, `sdk-specification`
- `limit` (integer, optional, default: 100) — The maximum number of rows to return in the response.
- `offset` (integer, optional, default: 0) — The zero-based offset of the first item to return.

## Response

### 200

Successful Response

- `data` (GetAnalyticsDataData, required) — The analytics data returned for the requested metric.

## Errors

### 400 Bad Request Error

Bad Request

- `type` (CommonErrorTypeTitleDetailStatusType, optional) — The type of error.
- `title` (string, optional) — A short summary of the problem.
- `detail` (string, optional) — Information about the error.
- `status` (integer, optional) — The error's HTTP status code.

### 401 Unauthorized Error

Unauthorized

- `type` (string, optional) — The [URI reference](https://www.rfc-editor.org/rfc/rfc3986) that identifies the type of problem.
- `title` (string, optional) — A short summary of the problem.
- `detail` (string, optional) — An explanation about the problem.
- `status` (integer, optional) — The HTTP status code generated by the origin server.
- `instance` (string, optional) — The URI reference that identifies the specific occurrence of the problem.

### 403 Forbidden Error

Forbidden

- `type` (string, optional) — The [URI reference](https://www.rfc-editor.org/rfc/rfc3986) that identifies the type of problem.
- `title` (string, optional) — A short summary of the problem.
- `detail` (string, optional) — An explanation about the problem.
- `status` (integer, optional) — The HTTP status code generated by the origin server.
- `instance` (string, optional) — The URI reference that identifies the specific occurrence of the problem.

### 500 Internal Server Error

Internal Server Error

- `GetAnalyticsDataRequestInternalServerError`
  - Error (Type, Title, Detail): commonErrorTypeTitleDetail
  - Error (Type, Title, Detail, Status): commonErrorTypeTitleDetailStatus
  - Error (Name, Message): commonErrorNameMessage

## Types

### GetAnalyticsDataData

The analytics data returned for the requested metric.

- Analytics Data Summary: getAnalyticsDataSummary
- Analytics Data Partner Engagement Funnel: getAnalyticsDataPartnerEngagmentFunnel

### CommonErrorTypeTitleDetailStatusType

The type of error.

- string
- string

### commonErrorTypeTitleDetail

- `type` (string, optional) — The type of error.
- `title` (string, optional) — A short summary of the problem.
- `detail` (CommonErrorTypeTitleDetailDetail, optional) — Information about the error.

### commonErrorTypeTitleDetailStatus

- `type` (CommonErrorTypeTitleDetailStatusType, optional) — The type of error.
- `title` (string, optional) — A short summary of the problem.
- `detail` (string, optional) — Information about the error.
- `status` (integer, optional) — The error's HTTP status code.

### commonErrorNameMessage

- `error` (CommonErrorNameMessageError, optional) — Information about the error.

### getAnalyticsDataSummary

- `summary` (getAnalyticsDataObject, required) — Data analytics information.

### getAnalyticsDataPartnerEngagmentFunnel

- `all_partners` (getAnalyticsDataAllPartners, optional) — Information about partner users and their activity.
- `workspace_visited` (getAnalyticsDataPartnerWorkspaceVisited, optional) — Information about partner users' workspace visits.
- `viewed_collection` (getAnalyticsDataPartnersViewedCollection, optional) — Information about partner users' views of collections in a workspace.
- `request_sent` (getAnalyticsDataPartnerRequestSent, optional) — Information about requests sent by partner users.
- `successful_requests_200OK` (getAnalyticsDataPartnerRequestSent200OK, optional) — Information about partner users' successful request calls in a workspace.

### CommonErrorTypeTitleDetailDetail

Information about the error.

- string
- map from string to any

### CommonErrorNameMessageError

Information about the error.

- `name` (string, optional) — The error name.
- `message` (string, optional) — The error message.

### getAnalyticsDataObject

Data analytics information.

- `schema` (getAnalyticsDataSchema, optional) — The shape of the analytics data (column definitions).
- `rows` (list of list of GetAnalyticsDataRowsDataItemsItems, optional) — A list of data row entries. Each row is an array of values that correspond to the columns defined in the schema.
- `pagination` (getAnalyticsDataPaginationData, optional) — Information about the response pagination.

### getAnalyticsDataAllPartners

Information about partner users and their activity.

- `schema` (getAnalyticsDataSchema, optional) — The shape of the analytics data (column definitions).
- `rows` (list of list of GetAnalyticsDataRowsDataItemsItems, optional) — A list of data row entries. Each row is an array of values that correspond to the columns defined in the schema.
- `pagination` (getAnalyticsDataPaginationData, optional) — Information about the response pagination.

### getAnalyticsDataPartnerWorkspaceVisited

Information about partner users' workspace visits.

- `schema` (getAnalyticsDataSchema, optional) — The shape of the analytics data (column definitions).
- `rows` (list of list of GetAnalyticsDataRowsDataItemsItems, optional) — A list of data row entries. Each row is an array of values that correspond to the columns defined in the schema.
- `pagination` (getAnalyticsDataPaginationData, optional) — Information about the response pagination.

### getAnalyticsDataPartnersViewedCollection

Information about partner users' views of collections in a workspace.

- `schema` (GetAnalyticsDataPartnersViewedCollectionSchema, optional) — The shape of the analytics data (column definitions).
- `rows` (list of list of GetAnalyticsDataRowsDataItemsItems, optional) — A list of data row entries. Each row is an array of values that correspond to the columns defined in the schema.
- `pagination` (getAnalyticsDataPaginationData, optional) — Information about the response pagination.

### getAnalyticsDataPartnerRequestSent

Information about requests sent by partner users.

- `schema` (GetAnalyticsDataPartnerRequestSentSchema, optional) — The shape of the analytics data (column definitions).
- `rows` (list of list of GetAnalyticsDataRowsDataItemsItems, optional) — A list of data row entries. Each row is an array of values that correspond to the columns defined in the schema.
- `pagination` (getAnalyticsDataPaginationData, optional) — Information about the response pagination.

### getAnalyticsDataPartnerRequestSent200OK

Information about partner users' successful request calls in a workspace.

- `schema` (GetAnalyticsDataPartnerRequestSent200OkSchema, optional) — The shape of the analytics data (column definitions).
- `rows` (list of list of GetAnalyticsDataRowsDataItemsItems, optional) — A list of data row entries. Each row is an array of values that correspond to the columns defined in the schema.
- `pagination` (getAnalyticsDataPaginationData, optional) — Information about the response pagination.

### getAnalyticsDataSchema

The shape of the analytics data (column definitions).

- `columns` (list of GetAnalyticsDataColumnsDataItems, optional) — A list of column entries.

### GetAnalyticsDataRowsDataItemsItems

- string
- integer
- double
- boolean

### getAnalyticsDataPaginationData

Information about the response pagination.

- `total` (integer, optional) — The total number of records available.
- `limit` (integer, optional) — The maximum number of records returned in the response.
- `offset` (integer, optional) — The number of records skipped.
- `has_more` (boolean, optional) — Indicates whether more are records available.

### GetAnalyticsDataPartnersViewedCollectionSchema

The shape of the analytics data (column definitions).

- `columns` (list of GetAnalyticsDataColumnsDataItems, optional) — A list of column entries.

### GetAnalyticsDataPartnerRequestSentSchema

The shape of the analytics data (column definitions).

- `columns` (list of GetAnalyticsDataColumnsDataItems, optional) — A list of column entries.

### GetAnalyticsDataPartnerRequestSent200OkSchema

The shape of the analytics data (column definitions).

- `columns` (list of GetAnalyticsDataColumnsDataItems, optional) — A list of column entries.

### GetAnalyticsDataColumnsDataItems

- `name` (string, optional) — The name of the column.
- `type` (enum, optional) — The data type of the column.
  - Allowed values: `DATE`, `STRING`, `INTEGER`, `TIMESTAMP`, `BOOLEAN`, `NUMBER`, `FLOAT`
- `format` (string, optional) — The data type's format.
- `description` (string, optional) — A description of what the column represents.

## Examples

### Users - Active Users - Top 5 Users

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 5,
        "offset": 0,
        "total": 573
      },
      "rows": [
        [
          "55894978",
          "2026-06-14",
          "2026-07-25",
          21,
          11,
          "Development, Testing"
        ],
        [
          "10009000",
          "2020-01-08",
          "2026-07-28",
          0,
          173,
          "Development"
        ],
        [
          "10020575",
          "2020-01-09",
          "2026-07-23",
          0,
          25,
          "Development, API Management"
        ],
        [
          "10102115",
          "2020-01-16",
          "2026-07-27",
          0,
          1,
          "API Management"
        ],
        [
          "10497157",
          "2020-02-25",
          "2026-07-28",
          0,
          42,
          "Development, API Management"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier assigned to the user.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Date when the user joined the team.",
            "name": "team_joining_date",
            "type": "DATE"
          },
          {
            "description": "Timestamp of the user's most recent activity.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "last_active_ts",
            "type": "TIMESTAMP"
          },
          {
            "description": "Total number of API requests made by the user.",
            "name": "api_requests_count",
            "type": "INTEGER"
          },
          {
            "description": "Total number of system actions made by the user.",
            "name": "system_actions_count",
            "type": "INTEGER"
          },
          {
            "description": "Primary tasks made by the user.",
            "name": "primary_tasks",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Users - Active Users - Top 5 Users
import requests

url = "https://api.postman.com/analytics"

querystring = {"limit":"5","metrics":"active_users","offset":"0","resource":"user","view":"detailed","workspaceType":"all"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Users - Active Users - Top 5 Users
const url = 'https://api.postman.com/analytics?limit=5&metrics=active_users&offset=0&resource=user&view=detailed&workspaceType=all';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Users - Active Users - Top 5 Users
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?limit=5&metrics=active_users&offset=0&resource=user&view=detailed&workspaceType=all"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Users - Active Users - Top 5 Users
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?limit=5&metrics=active_users&offset=0&resource=user&view=detailed&workspaceType=all")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Users - Active Users - Top 5 Users
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?limit=5&metrics=active_users&offset=0&resource=user&view=detailed&workspaceType=all")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Users - Active Users - Top 5 Users
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?limit=5&metrics=active_users&offset=0&resource=user&view=detailed&workspaceType=all', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Users - Active Users - Top 5 Users
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?limit=5&metrics=active_users&offset=0&resource=user&view=detailed&workspaceType=all");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Users - Active Users - Top 5 Users
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?limit=5&metrics=active_users&offset=0&resource=user&view=detailed&workspaceType=all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Users - Active Users - Count Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          360,
          800,
          "increase"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Total number of active users.",
            "name": "count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change from the previous period.",
            "name": "change",
            "type": "FLOAT"
          },
          {
            "description": "Indicates whether the change is an increase or decrease.",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Users - Active Users - Count Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"active_users","resource":"user","view":"summary","workspaceType":"all"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Users - Active Users - Count Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=active_users&resource=user&view=summary&workspaceType=all';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Users - Active Users - Count Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=active_users&resource=user&view=summary&workspaceType=all"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Users - Active Users - Count Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=active_users&resource=user&view=summary&workspaceType=all")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Users - Active Users - Count Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=active_users&resource=user&view=summary&workspaceType=all")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Users - Active Users - Count Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=active_users&resource=user&view=summary&workspaceType=all', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Users - Active Users - Count Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=active_users&resource=user&view=summary&workspaceType=all");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Users - Active Users - Count Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=active_users&resource=user&view=summary&workspaceType=all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace Active Users - Count - Internal Workspace

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          149
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Total number for the summarized metric.",
            "name": "count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace Active Users - Count - Internal Workspace
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"workspace_active_users","resource":"user","view":"summary","workspaceType":"internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace Active Users - Count - Internal Workspace
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace Active Users - Count - Internal Workspace
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace Active Users - Count - Internal Workspace
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace Active Users - Count - Internal Workspace
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace Active Users - Count - Internal Workspace
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace Active Users - Count - Internal Workspace
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace Active Users - Count - Internal Workspace
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Elements

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2025-03-01",
          420,
          310,
          150,
          190,
          120
        ],
        [
          "2025-04-01",
          450,
          320,
          160,
          200,
          125
        ],
        [
          "2025-05-01",
          470,
          335,
          170,
          215,
          130
        ],
        [
          "2025-06-01",
          500,
          345,
          185,
          230,
          140
        ],
        [
          "2025-07-01",
          520,
          355,
          195,
          240,
          145
        ],
        [
          "2025-08-01",
          540,
          370,
          205,
          255,
          150
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date for the aggregated metrics.",
            "format": "YYYY-MM-DD",
            "name": "timestamp",
            "type": "DATE"
          },
          {
            "description": "Total number of collections at the given time.",
            "name": "collections_count",
            "type": "INTEGER"
          },
          {
            "description": "Total number of environments at the given time.",
            "name": "environments_count",
            "type": "INTEGER"
          },
          {
            "description": "Total number of mock servers at the given time.",
            "name": "mocks_count",
            "type": "INTEGER"
          },
          {
            "description": "Total number of monitors at the given time.",
            "name": "monitors_count",
            "type": "INTEGER"
          },
          {
            "description": "Total number of flows created at the given time.",
            "name": "flows_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Elements
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_6_months","metrics":"elements_in_workspace","resource":"workspace","view":"summary","workspaceType":"public,partner,internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Elements
const url = 'https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Elements
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Elements
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Elements
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Elements
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Elements
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Elements
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Elements - Internal Workspaces

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2025-03-01",
          420,
          310,
          150,
          190,
          120
        ],
        [
          "2025-04-01",
          450,
          320,
          160,
          200,
          125
        ],
        [
          "2025-05-01",
          470,
          335,
          170,
          215,
          130
        ],
        [
          "2025-06-01",
          500,
          345,
          185,
          230,
          140
        ],
        [
          "2025-07-01",
          520,
          355,
          195,
          240,
          145
        ],
        [
          "2025-08-01",
          540,
          370,
          205,
          255,
          150
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date for the aggregated metrics.",
            "format": "YYYY-MM-DD",
            "name": "timestamp",
            "type": "DATE"
          },
          {
            "description": "Total number of collections at the given time.",
            "name": "collections_count",
            "type": "INTEGER"
          },
          {
            "description": "Total number of environments at the given time.",
            "name": "environments_count",
            "type": "INTEGER"
          },
          {
            "description": "Total number of mock servers at the given time.",
            "name": "mocks_count",
            "type": "INTEGER"
          },
          {
            "description": "Total number of monitors at the given time.",
            "name": "monitors_count",
            "type": "INTEGER"
          },
          {
            "description": "Total number of flows created at the given time.",
            "name": "flows_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Elements - Internal Workspaces
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_6_months","metrics":"elements_in_workspace","resource":"workspace","view":"summary","workspaceType":"internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Elements - Internal Workspaces
const url = 'https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=internal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Elements - Internal Workspaces
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=internal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Elements - Internal Workspaces
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=internal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Elements - Internal Workspaces
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=internal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Elements - Internal Workspaces
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=internal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Elements - Internal Workspaces
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=internal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Elements - Internal Workspaces
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_6_months&metrics=elements_in_workspace&resource=workspace&view=summary&workspaceType=internal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Active Workspace

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 5,
        "offset": 0,
        "total": 238
      },
      "rows": [
        [
          true,
          "2792cd99-7c05-43fa-90ad-5e2bf098ae14",
          null,
          "12345678",
          "internal",
          1,
          56
        ],
        [
          true,
          "e7c2871e-c9cc-4e39-a541-41bfdebbea7f",
          null,
          "12345678",
          "internal",
          0,
          32
        ],
        [
          true,
          "6e97104e-01cd-4ae0-991e-6a7905f6252d",
          null,
          "56781234",
          "internal",
          3,
          32
        ],
        [
          false,
          "36c18c9f-e942-4119-bef8-2cf0ebede4e9",
          "User Authentication API",
          "12345678",
          "internal",
          2,
          95
        ],
        [
          false,
          "66764399-25d0-4dc5-9e9d-30a433c1df63",
          "Performance Monitors",
          "56781234",
          "internal",
          0,
          15
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Indicates whether the workspace is hidden.",
            "name": "is_hidden",
            "type": "BOOLEAN"
          },
          {
            "description": "Unique identifier of the workspace.",
            "name": "workspace_id",
            "type": "STRING"
          },
          {
            "description": "Display name of the workspace.",
            "name": "workspace_name",
            "type": "STRING"
          },
          {
            "description": "Name of the user who created the workspace.",
            "name": "created_by",
            "type": "STRING"
          },
          {
            "description": "Category of the workspace such as internal or partner.",
            "name": "type",
            "type": "STRING"
          },
          {
            "description": "Number of contributors in the workspace.",
            "name": "contributors",
            "type": "INTEGER"
          },
          {
            "description": "Total number of API calls made within the workspace.",
            "name": "api_calls",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Active Workspace
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"5","metrics":"active_workspaces","offset":"0","resource":"workspace","view":"summary","workspaceType":"public,partner,internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Active Workspace
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Active Workspace
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Active Workspace
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Active Workspace
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Active Workspace
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Active Workspace
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Active Workspace
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Active Workspaces - Internal Workspaces

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 3,
        "offset": 0,
        "total": 214
      },
      "rows": [
        [
          true,
          "2792cd99-7c05-43fa-90ad-5e2bf098ae14",
          null,
          "12345678",
          "internal",
          1,
          56
        ],
        [
          true,
          "e7c2871e-c9cc-4e39-a541-41bfdebbea7f",
          null,
          "12345678",
          "internal",
          0,
          32
        ],
        [
          true,
          "6e97104e-01cd-4ae0-991e-6a7905f6252d",
          null,
          "56781234",
          "internal",
          1,
          32
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Indicates whether the workspace is hidden.",
            "name": "is_hidden",
            "type": "BOOLEAN"
          },
          {
            "description": "Unique identifier of the workspace.",
            "name": "workspace_id",
            "type": "STRING"
          },
          {
            "description": "Display name of the workspace.",
            "name": "workspace_name",
            "type": "STRING"
          },
          {
            "description": "Name of the user who created the workspace.",
            "name": "created_by",
            "type": "STRING"
          },
          {
            "description": "Category of the workspace such as internal or partner.",
            "name": "type",
            "type": "STRING"
          },
          {
            "description": "Number of contributors in the workspace.",
            "name": "contributors",
            "type": "INTEGER"
          },
          {
            "description": "Total number of API calls made within the workspace.",
            "name": "api_calls",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Active Workspaces - Internal Workspaces
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"3","metrics":"active_workspaces","offset":"0","resource":"workspace","view":"summary","workspaceType":"internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Active Workspaces - Internal Workspaces
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Active Workspaces - Internal Workspaces
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Active Workspaces - Internal Workspaces
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Active Workspaces - Internal Workspaces
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Active Workspaces - Internal Workspaces
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Active Workspaces - Internal Workspaces
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Active Workspaces - Internal Workspaces
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Active - Count Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          312,
          4.69,
          "increase"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Total number for the summarized metric.",
            "name": "count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage or numeric change from the previous value.",
            "name": "change",
            "type": "FLOAT"
          },
          {
            "description": "Indicates whether the change is an increase or decrease.",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Active - Count Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"5","metrics":"active_workspaces","offset":"0","resource":"workspace","view":"summary","workspaceType":"public,partner,internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Active - Count Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Active - Count Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Active - Count Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Active - Count Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Active - Count Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Active - Count Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Active - Count Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Active - Count Trend - Internal Workspace

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          312,
          4.69,
          "increase"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Total number for the summarized metric.",
            "name": "count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage or numeric change from the previous value.",
            "name": "change",
            "type": "FLOAT"
          },
          {
            "description": "Indicates whether the change is an increase or decrease.",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Active - Count Trend - Internal Workspace
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"5","metrics":"active_workspaces","offset":"0","resource":"workspace","view":"summary","workspaceType":"internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Active - Count Trend - Internal Workspace
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Active - Count Trend - Internal Workspace
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Active - Count Trend - Internal Workspace
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Active - Count Trend - Internal Workspace
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Active - Count Trend - Internal Workspace
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Active - Count Trend - Internal Workspace
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Active - Count Trend - Internal Workspace
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=active_workspaces&offset=0&resource=workspace&view=summary&workspaceType=internal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Active Users - Count - Internal Workspace

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          149
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Total number for the summarized metric.",
            "name": "count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Active Users - Count - Internal Workspace
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"workspace_active_users","resource":"user","view":"summary","workspaceType":"internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Active Users - Count - Internal Workspace
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Active Users - Count - Internal Workspace
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Active Users - Count - Internal Workspace
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Active Users - Count - Internal Workspace
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Active Users - Count - Internal Workspace
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Active Users - Count - Internal Workspace
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Active Users - Count - Internal Workspace
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_active_users&resource=user&view=summary&workspaceType=internal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - API Calls - Count Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          120546,
          3.74,
          "increase"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Total number for the summarized metric.",
            "name": "count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage or numeric change from the previous value.",
            "name": "change",
            "type": "FLOAT"
          },
          {
            "description": "Indicates whether the change is an increase or decrease.",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - API Calls - Count Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"api_calls","resource":"workspace","view":"summary","workspaceType":"all"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - API Calls - Count Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=all';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - API Calls - Count Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=all"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - API Calls - Count Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=all")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - API Calls - Count Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=all")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - API Calls - Count Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=all', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - API Calls - Count Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=all");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - API Calls - Count Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - API Calls - Count Trend - Internal Workspace

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          120546,
          3.74,
          "increase"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Total number for the summarized metric.",
            "name": "count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage or numeric change from the previous value.",
            "name": "change",
            "type": "FLOAT"
          },
          {
            "description": "Indicates whether the change is an increase or decrease.",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - API Calls - Count Trend - Internal Workspace
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"api_calls","resource":"workspace","view":"summary","workspaceType":"internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - API Calls - Count Trend - Internal Workspace
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=internal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - API Calls - Count Trend - Internal Workspace
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=internal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - API Calls - Count Trend - Internal Workspace
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=internal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - API Calls - Count Trend - Internal Workspace
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=internal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - API Calls - Count Trend - Internal Workspace
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=internal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - API Calls - Count Trend - Internal Workspace
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=internal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - API Calls - Count Trend - Internal Workspace
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=api_calls&resource=workspace&view=summary&workspaceType=internal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Active Collections

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 3,
        "offset": 0,
        "total": 38
      },
      "rows": [
        [
          false,
          "12345678-f5c93a94-8981-4005-a75a-a02d5a4e5235",
          "Service Monitoring API",
          "Engineering Hub",
          "12345678",
          152
        ],
        [
          false,
          "975a340d-5911-486c-8382-8d952ac4f336",
          "Import Tools",
          "Gateway Tools",
          "12345678",
          100
        ],
        [
          false,
          "36c18c9f-e942-4119-bef8-2cf0ebede4e9",
          "User Authentication API",
          "Partner API Hub",
          "12345678",
          95
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Indicates whether the collection is hidden.",
            "name": "is_hidden",
            "type": "BOOLEAN"
          },
          {
            "description": "Unique identifier of the collection.",
            "name": "collection_id",
            "type": "STRING"
          },
          {
            "description": "Display name of the collection.",
            "name": "collection_name",
            "type": "STRING"
          },
          {
            "description": "Name of the workspace containing the collection.",
            "name": "workspace_name",
            "type": "STRING"
          },
          {
            "description": "Unique identifier assigned to the user.",
            "name": "created_by",
            "type": "STRING"
          },
          {
            "description": "Total number of API calls made using requests in this collection.",
            "name": "api_calls_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Active Collections
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"3","metrics":"active_collections","resource":"workspace","view":"detailed","workspaceType":"public,partner,internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Active Collections
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=public%2Cpartner%2Cinternal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Active Collections
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=public%2Cpartner%2Cinternal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Active Collections
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=public%2Cpartner%2Cinternal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Active Collections
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=public%2Cpartner%2Cinternal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Active Collections
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=public%2Cpartner%2Cinternal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Active Collections
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=public%2Cpartner%2Cinternal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Active Collections
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=public%2Cpartner%2Cinternal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Active Collections - Internal Workspaces

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 3,
        "offset": 0,
        "total": 38
      },
      "rows": [
        [
          false,
          "56781234-dd14b810-bb36-4549-9410-1c30728fb417",
          "Service Monitoring API",
          "Engineering Hub",
          "56781234",
          39
        ],
        [
          false,
          "56781234-dd14b810-bb36-4549-9410-1c30728fb417",
          "Service Monitoring API",
          "Engineering Hub",
          "56781234",
          109
        ],
        [
          false,
          "12345678-975a340d-5911-486c-8382-8d952ac4f336",
          "Import Tools",
          "Gateway Tools",
          "12345678",
          29
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Indicates whether the collection is hidden.",
            "name": "is_hidden",
            "type": "BOOLEAN"
          },
          {
            "description": "Unique identifier of the collection.",
            "name": "collection_id",
            "type": "STRING"
          },
          {
            "description": "Display name of the collection.",
            "name": "collection_name",
            "type": "STRING"
          },
          {
            "description": "Name of the workspace containing the collection.",
            "name": "workspace_name",
            "type": "STRING"
          },
          {
            "description": "Unique identifier assigned to the user.",
            "name": "created_by",
            "type": "STRING"
          },
          {
            "description": "Total number of API calls made using requests in this collection.",
            "name": "api_calls_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Active Collections - Internal Workspaces
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"3","metrics":"active_collections","resource":"workspace","view":"detailed","workspaceType":"internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Active Collections - Internal Workspaces
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=internal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Active Collections - Internal Workspaces
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=internal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Active Collections - Internal Workspaces
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=internal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Active Collections - Internal Workspaces
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=internal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Active Collections - Internal Workspaces
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=internal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Active Collections - Internal Workspaces
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=internal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Active Collections - Internal Workspaces
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=active_collections&resource=workspace&view=detailed&workspaceType=internal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Response Status Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2025-03-01",
          102340,
          74480,
          3120,
          23100,
          4760
        ],
        [
          "2025-04-01",
          110540,
          80210,
          2990,
          25340,
          4990
        ],
        [
          "2025-05-01",
          125780,
          92410,
          3200,
          28200,
          5170
        ],
        [
          "2025-06-01",
          118420,
          86540,
          3030,
          27050,
          4830
        ],
        [
          "2025-07-01",
          121360,
          88250,
          3300,
          28210,
          4900
        ],
        [
          "2025-08-01",
          130550,
          95400,
          3530,
          29620,
          5530
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date for the aggregated API metrics.",
            "format": "YYYY-MM-DD",
            "name": "timestamp",
            "type": "DATE"
          },
          {
            "description": "Total number of API requests for the given date.",
            "name": "total_count",
            "type": "INTEGER"
          },
          {
            "description": "Number of successful API responses (2xx).",
            "name": "count_2xx",
            "type": "INTEGER"
          },
          {
            "description": "Number of redirection responses (3xx).",
            "name": "count_3xx",
            "type": "INTEGER"
          },
          {
            "description": "Number of client error responses (4xx).",
            "name": "count_4xx",
            "type": "INTEGER"
          },
          {
            "description": "Number of server error responses (5xx).",
            "name": "count_5xx",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Response Status Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_6_months","metrics":"response_status","resource":"workspace","view":"summary","workspaceType":"public,partner,internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Response Status Trend
const url = 'https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Response Status Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Response Status Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Response Status Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Response Status Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Response Status Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Response Status Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=public%2Cpartner%2Cinternal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Response Status Trend - Internal WS

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2025-03-01",
          102340,
          74480,
          3120,
          23100,
          4760
        ],
        [
          "2025-04-01",
          110540,
          80210,
          2990,
          25340,
          4990
        ],
        [
          "2025-05-01",
          125780,
          92410,
          3200,
          28200,
          5170
        ],
        [
          "2025-06-01",
          118420,
          86540,
          3030,
          27050,
          4830
        ],
        [
          "2025-07-01",
          121360,
          88250,
          3300,
          28210,
          4900
        ],
        [
          "2025-08-01",
          130550,
          95400,
          3530,
          29620,
          5530
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date for the aggregated API metrics.",
            "format": "YYYY-MM-DD",
            "name": "timestamp",
            "type": "DATE"
          },
          {
            "description": "Total number of API requests for the given date.",
            "name": "total_count",
            "type": "INTEGER"
          },
          {
            "description": "Number of successful API responses (2xx).",
            "name": "count_2xx",
            "type": "INTEGER"
          },
          {
            "description": "Number of redirection responses (3xx).",
            "name": "count_3xx",
            "type": "INTEGER"
          },
          {
            "description": "Number of client error responses (4xx).",
            "name": "count_4xx",
            "type": "INTEGER"
          },
          {
            "description": "Number of server error responses (5xx).",
            "name": "count_5xx",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Response Status Trend - Internal WS
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_6_months","metrics":"response_status","resource":"workspace","view":"summary","workspaceType":"internal"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Response Status Trend - Internal WS
const url = 'https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=internal';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Response Status Trend - Internal WS
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=internal"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Response Status Trend - Internal WS
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=internal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Response Status Trend - Internal WS
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=internal")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Response Status Trend - Internal WS
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=internal', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Response Status Trend - Internal WS
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=internal");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Response Status Trend - Internal WS
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_6_months&metrics=response_status&resource=workspace&view=summary&workspaceType=internal")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Workspace - Collection Error Rate

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 3,
        "offset": 0,
        "total": 453
      },
      "rows": [
        [
          "56781234-dd14b810-bb36-4549-9410-1c30728fb417",
          "Demo requests",
          "ca858e90-131c-44a1-a132-03903fb1ab35",
          0,
          0,
          1
        ],
        [
          "12345678-36c18c9f-e942-4119-bef8-2cf0ebede4e9",
          "Testing composasble",
          "4540d410-ef72-4977-afb8-d7f53705f379",
          0,
          0,
          1
        ],
        [
          "87654321-13f603d8-4cb2-45d1-92f8-e39891fdf387",
          "New Collection",
          "b63a8c9d-fac3-47b9-85b1-7ba9237ce62f",
          0,
          0,
          1
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Indicates whether the collection is hidden.",
            "name": "is_hidden",
            "type": "BOOLEAN"
          },
          {
            "description": "Unique identifier of the collection.",
            "name": "collection_id",
            "type": "STRING"
          },
          {
            "description": "Name of the collection.",
            "name": "collection_name",
            "type": "STRING"
          },
          {
            "description": "Unique identifier of the workspace owning the collection.",
            "name": "workspace_id",
            "type": "STRING"
          },
          {
            "description": "Total number of 4xx responses for the collection in the selected duration.",
            "name": "count_4xx",
            "type": "INTEGER"
          },
          {
            "description": "Total number of 5xx responses for the collection in the selected duration.",
            "name": "count_5xx",
            "type": "INTEGER"
          },
          {
            "description": "Total API calls for the collection in the selected duration.",
            "name": "total_api_calls",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Workspace - Collection Error Rate
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_6_months","limit":"3","metrics":"collection_error_aggregate","resource":"workspace","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Workspace - Collection Error Rate
const url = 'https://api.postman.com/analytics?duration=last_6_months&limit=3&metrics=collection_error_aggregate&resource=workspace&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Workspace - Collection Error Rate
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_6_months&limit=3&metrics=collection_error_aggregate&resource=workspace&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Workspace - Collection Error Rate
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_6_months&limit=3&metrics=collection_error_aggregate&resource=workspace&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Workspace - Collection Error Rate
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_6_months&limit=3&metrics=collection_error_aggregate&resource=workspace&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Workspace - Collection Error Rate
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_6_months&limit=3&metrics=collection_error_aggregate&resource=workspace&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Workspace - Collection Error Rate
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_6_months&limit=3&metrics=collection_error_aggregate&resource=workspace&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Workspace - Collection Error Rate
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_6_months&limit=3&metrics=collection_error_aggregate&resource=workspace&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Team - User API Journey Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2025-03-01",
          812,
          654,
          120,
          590,
          64
        ],
        [
          "2025-04-01",
          920,
          710,
          145,
          620,
          90
        ],
        [
          "2025-05-01",
          845,
          692,
          100,
          640,
          52
        ],
        [
          "2025-06-01",
          900,
          730,
          130,
          670,
          60
        ],
        [
          "2025-07-01",
          870,
          710,
          110,
          660,
          50
        ],
        [
          "2025-08-01",
          890,
          740,
          140,
          690,
          50
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date for aggregated user activity metrics.",
            "format": "YYYY-MM-DD",
            "name": "timestamp",
            "type": "DATE"
          },
          {
            "description": "Total number of users active on the given date.",
            "name": "active_user",
            "type": "INTEGER"
          },
          {
            "description": "Number of users who made at least one API call.",
            "name": "api_user",
            "type": "INTEGER"
          },
          {
            "description": "Number of users making API calls for the first time.",
            "name": "new_api_user",
            "type": "INTEGER"
          },
          {
            "description": "Number of users whose API calls were mostly successful.",
            "name": "successful",
            "type": "INTEGER"
          },
          {
            "description": "Number of users who encountered only error responses.",
            "name": "error_only",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Team - User API Journey Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_6_months","metrics":"user_api_journey","resource":"team","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Team - User API Journey Trend
const url = 'https://api.postman.com/analytics?duration=last_6_months&metrics=user_api_journey&resource=team&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Team - User API Journey Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_6_months&metrics=user_api_journey&resource=team&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Team - User API Journey Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_6_months&metrics=user_api_journey&resource=team&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Team - User API Journey Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_6_months&metrics=user_api_journey&resource=team&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Team - User API Journey Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_6_months&metrics=user_api_journey&resource=team&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Team - User API Journey Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_6_months&metrics=user_api_journey&resource=team&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Team - User API Journey Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_6_months&metrics=user_api_journey&resource=team&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Team - Workspace Distribution Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2025-02-01",
          1300,
          950,
          200,
          150
        ],
        [
          "2025-03-01",
          1350,
          980,
          210,
          160
        ],
        [
          "2025-04-01",
          1370,
          995,
          215,
          160
        ],
        [
          "2025-05-01",
          1380,
          1000,
          220,
          160
        ],
        [
          "2025-06-01",
          1400,
          1020,
          225,
          155
        ],
        [
          "2025-07-01",
          1420,
          1035,
          230,
          155
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date for the aggregated workspace counts.",
            "format": "YYYY-MM-DD",
            "name": "date",
            "type": "DATE"
          },
          {
            "description": "Total number of workspaces for the given date.",
            "name": "total",
            "type": "INTEGER"
          },
          {
            "description": "Number of internal workspaces.",
            "name": "internal",
            "type": "INTEGER"
          },
          {
            "description": "Number of partner workspaces.",
            "name": "partner",
            "type": "INTEGER"
          },
          {
            "description": "Number of public workspaces.",
            "name": "public",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Team - Workspace Distribution Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_6_months","metrics":"workspace_distribution","resource":"team","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Team - Workspace Distribution Trend
const url = 'https://api.postman.com/analytics?duration=last_6_months&metrics=workspace_distribution&resource=team&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Team - Workspace Distribution Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_6_months&metrics=workspace_distribution&resource=team&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Team - Workspace Distribution Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_6_months&metrics=workspace_distribution&resource=team&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Team - Workspace Distribution Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_6_months&metrics=workspace_distribution&resource=team&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Team - Workspace Distribution Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_6_months&metrics=workspace_distribution&resource=team&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Team - Workspace Distribution Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_6_months&metrics=workspace_distribution&resource=team&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Team - Workspace Distribution Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_6_months&metrics=workspace_distribution&resource=team&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Team - Internal Workspace Distribution Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2025-02-01",
          520,
          380
        ],
        [
          "2025-03-01",
          540,
          395
        ],
        [
          "2025-04-01",
          555,
          405
        ],
        [
          "2025-05-01",
          565,
          415
        ],
        [
          "2025-06-01",
          575,
          425
        ],
        [
          "2025-07-01",
          590,
          440
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date for internal workspace distribution.",
            "format": "YYYY-MM-DD",
            "name": "date",
            "type": "DATE"
          },
          {
            "description": "Count of internal team-shared workspaces.",
            "name": "internal_team_shared",
            "type": "INTEGER"
          },
          {
            "description": "Count of internal private workspaces.",
            "name": "internal_private",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Team - Internal Workspace Distribution Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_6_months","metrics":"internal_workspace_distribution","resource":"team","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Team - Internal Workspace Distribution Trend
const url = 'https://api.postman.com/analytics?duration=last_6_months&metrics=internal_workspace_distribution&resource=team&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Team - Internal Workspace Distribution Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_6_months&metrics=internal_workspace_distribution&resource=team&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Team - Internal Workspace Distribution Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_6_months&metrics=internal_workspace_distribution&resource=team&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Team - Internal Workspace Distribution Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_6_months&metrics=internal_workspace_distribution&resource=team&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Team - Internal Workspace Distribution Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_6_months&metrics=internal_workspace_distribution&resource=team&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Team - Internal Workspace Distribution Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_6_months&metrics=internal_workspace_distribution&resource=team&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Team - Internal Workspace Distribution Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_6_months&metrics=internal_workspace_distribution&resource=team&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Team - License Consumption Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2025-02-01",
          600,
          430,
          170,
          85,
          25
        ],
        [
          "2025-03-01",
          620,
          450,
          180,
          90,
          20
        ],
        [
          "2025-04-01",
          635,
          460,
          185,
          92,
          18
        ],
        [
          "2025-05-01",
          640,
          475,
          190,
          95,
          15
        ],
        [
          "2025-06-01",
          655,
          490,
          195,
          98,
          12
        ],
        [
          "2025-07-01",
          670,
          505,
          200,
          100,
          10
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date for team and license metrics.",
            "format": "YYYY-MM-DD",
            "name": "date",
            "type": "DATE"
          },
          {
            "description": "Total number of members in the team.",
            "name": "team_members",
            "type": "INTEGER"
          },
          {
            "description": "Count of team members actively using Postman.",
            "name": "active_postman_users",
            "type": "INTEGER"
          },
          {
            "description": "Number of partner users associated with the team.",
            "name": "partners",
            "type": "INTEGER"
          },
          {
            "description": "Number of guest users with limited access.",
            "name": "guests",
            "type": "INTEGER"
          },
          {
            "description": "Number of licenses assigned but not actively used.",
            "name": "unused_licenses",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Team - License Consumption Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_6_months","metrics":"license_consumption","resource":"team","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Team - License Consumption Trend
const url = 'https://api.postman.com/analytics?duration=last_6_months&metrics=license_consumption&resource=team&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Team - License Consumption Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_6_months&metrics=license_consumption&resource=team&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Team - License Consumption Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_6_months&metrics=license_consumption&resource=team&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Team - License Consumption Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_6_months&metrics=license_consumption&resource=team&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Team - License Consumption Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_6_months&metrics=license_consumption&resource=team&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Team - License Consumption Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_6_months&metrics=license_consumption&resource=team&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Team - License Consumption Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_6_months&metrics=license_consumption&resource=team&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Team - Last Autoflex Cycle - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 2,
        "offset": 3,
        "total": 10
      },
      "rows": [
        [
          "taylor-lee",
          "taylor.lee@example.com",
          "2025-05-14T00:00:00.000Z",
          "",
          "2024-12-20T08:37:08.000Z",
          "Developer"
        ],
        [
          "alex-cruz",
          "alex-cruz@example.com",
          "2025-10-30T00:00:00.000Z",
          "taylor.lee@example.com",
          "2025-05-13T08:30:45.000Z",
          "Developer"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "User's name.",
            "name": "name",
            "type": "STRING"
          },
          {
            "description": "Email ID of user.",
            "name": "email",
            "type": "STRING"
          },
          {
            "description": "Timestamp when user was last active.",
            "name": "last_active",
            "type": "DATE"
          },
          {
            "description": "Email ID that invited this user.",
            "name": "invited_by",
            "type": "STRING"
          },
          {
            "description": "Timestamp when user joined team.",
            "name": "joined_date",
            "type": "DATE"
          },
          {
            "description": "Concatenated list of roles that user has.",
            "name": "user_role",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Team - Last Autoflex Cycle - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"limit":"5","metrics":"last_autoflex_cycle","offset":"3","resource":"team","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Team - Last Autoflex Cycle - Detailed
const url = 'https://api.postman.com/analytics?limit=5&metrics=last_autoflex_cycle&offset=3&resource=team&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Team - Last Autoflex Cycle - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?limit=5&metrics=last_autoflex_cycle&offset=3&resource=team&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Team - Last Autoflex Cycle - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?limit=5&metrics=last_autoflex_cycle&offset=3&resource=team&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Team - Last Autoflex Cycle - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?limit=5&metrics=last_autoflex_cycle&offset=3&resource=team&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Team - Last Autoflex Cycle - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?limit=5&metrics=last_autoflex_cycle&offset=3&resource=team&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Team - Last Autoflex Cycle - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?limit=5&metrics=last_autoflex_cycle&offset=3&resource=team&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Team - Last Autoflex Cycle - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?limit=5&metrics=last_autoflex_cycle&offset=3&resource=team&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Team - Members - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 2,
        "offset": 3,
        "total": 10
      },
      "rows": [
        [
          "taylor-lee",
          "taylor.lee@example.com",
          "2025-09-02",
          "2025-09-02",
          "Developer",
          "",
          "",
          "Yes"
        ],
        [
          "alex-cruz",
          "alex.cruz@example.com",
          "2025-09-02",
          "2025-09-02",
          "Developer",
          "",
          "",
          "Yes"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Username of the user.",
            "name": "user_name",
            "type": "STRING"
          },
          {
            "description": "Email ID of user.",
            "name": "email",
            "type": "STRING"
          },
          {
            "description": "Timestamp when user was added to team.",
            "name": "added_in_team",
            "type": "DATE"
          },
          {
            "description": "Timestamp when user was last active.",
            "name": "last_active",
            "type": "DATE"
          },
          {
            "description": "Concatenated list of roles that user has.",
            "name": "user_role",
            "type": "STRING"
          },
          {
            "description": "Email ID that invited this user.",
            "name": "invited_by",
            "type": "STRING"
          },
          {
            "description": "Type of invitation.",
            "name": "invite_type",
            "type": "STRING"
          },
          {
            "description": "Describes whether the public profile of the user is enabled or not.",
            "name": "public_profile_enabled",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Team - Members - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"limit":"2","metrics":"members","offset":"3","resource":"team","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Team - Members - Detailed
const url = 'https://api.postman.com/analytics?limit=2&metrics=members&offset=3&resource=team&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Team - Members - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?limit=2&metrics=members&offset=3&resource=team&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Team - Members - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?limit=2&metrics=members&offset=3&resource=team&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Team - Members - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?limit=2&metrics=members&offset=3&resource=team&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Team - Members - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?limit=2&metrics=members&offset=3&resource=team&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Team - Members - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?limit=2&metrics=members&offset=3&resource=team&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Team - Members - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?limit=2&metrics=members&offset=3&resource=team&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - Pending Invites Count

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          65
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Total number Pending invites.",
            "name": "count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - Pending Invites Count
import requests

url = "https://api.postman.com/analytics"

querystring = {"metrics":"pending_invites","resource":"workspace","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - Pending Invites Count
const url = 'https://api.postman.com/analytics?metrics=pending_invites&resource=workspace&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - Pending Invites Count
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?metrics=pending_invites&resource=workspace&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - Pending Invites Count
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?metrics=pending_invites&resource=workspace&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - Pending Invites Count
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?metrics=pending_invites&resource=workspace&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - Pending Invites Count
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?metrics=pending_invites&resource=workspace&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - Pending Invites Count
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?metrics=pending_invites&resource=workspace&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - Pending Invites Count
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?metrics=pending_invites&resource=workspace&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - Pending Invites

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 3,
        "offset": 0,
        "total": 65
      },
      "rows": [
        [
          "taylor.lee@example.com",
          "759126",
          "2025-08-17T15:00:00Z"
        ],
        [
          "alex.cruz@example.com",
          "759127",
          "2025-08-17T12:30:00Z"
        ],
        [
          "ava.foster@example.com",
          "759128",
          "2025-08-16T10:45:00Z"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Target email of pending invite",
            "name": "email_id",
            "type": "STRING"
          },
          {
            "description": "Unique identifier for the invite",
            "name": "invite_id",
            "type": "STRING"
          },
          {
            "description": "Time when the invite was created",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "timestamp",
            "type": "TIMESTAMP"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - Pending Invites
import requests

url = "https://api.postman.com/analytics"

querystring = {"limit":"3","metrics":"pending_invites","offset":"0","resource":"workspace","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - Pending Invites
const url = 'https://api.postman.com/analytics?limit=3&metrics=pending_invites&offset=0&resource=workspace&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - Pending Invites
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?limit=3&metrics=pending_invites&offset=0&resource=workspace&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - Pending Invites
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?limit=3&metrics=pending_invites&offset=0&resource=workspace&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - Pending Invites
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?limit=3&metrics=pending_invites&offset=0&resource=workspace&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - Pending Invites
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?limit=3&metrics=pending_invites&offset=0&resource=workspace&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - Pending Invites
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?limit=3&metrics=pending_invites&offset=0&resource=workspace&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - Pending Invites
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?limit=3&metrics=pending_invites&offset=0&resource=workspace&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - Needs Attention - Count

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          65
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Number of partners that need attention.",
            "name": "count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - Needs Attention - Count
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"needs_attention","resource":"workspace","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - Needs Attention - Count
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=needs_attention&resource=workspace&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - Needs Attention - Count
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=needs_attention&resource=workspace&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - Needs Attention - Count
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=needs_attention&resource=workspace&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - Needs Attention - Count
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=needs_attention&resource=workspace&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - Needs Attention - Count
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=needs_attention&resource=workspace&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - Needs Attention - Count
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=needs_attention&resource=workspace&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - Needs Attention - Count
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=needs_attention&resource=workspace&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - Needs Attention

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 3,
        "offset": 0,
        "total": 110
      },
      "rows": [
        [
          "12345678",
          "no_success_on_tried_request",
          "2025-08-20T14:32:00Z",
          "Payments Gateway API",
          "Create Payment",
          "12345678-850fc79d-c756-480d-83ea-b0c05683088e",
          null
        ],
        [
          "87654321",
          "high_non_200OK_rate_for_partner",
          "2025-08-20T13:50:00Z",
          null,
          null,
          null,
          "56781234"
        ],
        [
          "12345678",
          "no_success_on_tried_request",
          "2025-08-19T21:40:00Z",
          "Integration API",
          "Rotate Integration Key",
          "12345678-7ac0f3bb-025b-48c4-adfa-e73bc0c00a32",
          null
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier of the user.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Type of issue or request pattern detected for the user.",
            "name": "request_type",
            "type": "STRING"
          },
          {
            "description": "Time when the request event was recorded.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "timestamp",
            "type": "TIMESTAMP"
          },
          {
            "description": "Name of the collection associated with the request, if available.",
            "name": "collection_name",
            "type": "STRING"
          },
          {
            "description": "Display name of the request attempted by the user.",
            "name": "request_name",
            "type": "STRING"
          },
          {
            "description": "Unique identifier for the specific request instance.",
            "name": "request_identifier_id",
            "type": "STRING"
          },
          {
            "description": "Identifier of the partner associated with the request, if applicable.",
            "name": "partner_id",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - Needs Attention
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"3","metrics":"needs_attention","resource":"workspace","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - Needs Attention
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=needs_attention&resource=workspace&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - Needs Attention
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=needs_attention&resource=workspace&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - Needs Attention
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=needs_attention&resource=workspace&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - Needs Attention
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=needs_attention&resource=workspace&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - Needs Attention
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=needs_attention&resource=workspace&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - Needs Attention
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=needs_attention&resource=workspace&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - Needs Attention
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=needs_attention&resource=workspace&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - API Success Rate - Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          0.962,
          0.012,
          "increase"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Overall percentage of successful requests.",
            "name": "success_rate",
            "type": "FLOAT"
          },
          {
            "description": "Numeric change in success rate compared to the previous period.",
            "name": "change",
            "type": "FLOAT"
          },
          {
            "description": "Indicates whether the success rate increased or decreased.",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - API Success Rate - Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"success_rate","resource":"workspace","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - API Success Rate - Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=success_rate&resource=workspace&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - API Success Rate - Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=success_rate&resource=workspace&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - API Success Rate - Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=success_rate&resource=workspace&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - API Success Rate - Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=success_rate&resource=workspace&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - API Success Rate - Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=success_rate&resource=workspace&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - API Success Rate - Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=success_rate&resource=workspace&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - API Success Rate - Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=success_rate&resource=workspace&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - API Success Rate - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 3,
        "offset": 0,
        "total": 42
      },
      "rows": [
        [
          "2025-10-10T10:10:00Z",
          "87654321-3346d4bb-c3f5-4f37-a80b-4e77eeb6055a",
          "GET",
          "Get User Profile",
          1200,
          1080,
          120,
          90,
          "User Management API",
          "87654321-ff0b2687-2617-48f9-8a50-7bc5bf8ef8b0",
          "Partner Portal",
          "13f603d8-4cb2-45d1-92f8-e39891fdf387"
        ],
        [
          "2025-10-10T10:10:00Z",
          "12345678-6f719613-acee-44d2-a9b5-e9be639add94",
          "POST",
          "Create Workspace",
          980,
          850,
          130,
          86.7,
          "Workspace Admin API",
          "12345678-c50b4c83-f39c-4812-9a3e-5e9785011e76",
          "Partner Portal",
          "50903db2-6d98-4564-8da9-631caa258c17"
        ],
        [
          "2025-10-10T10:10:00Z",
          "56781234-4cc757c2-ffba-431d-90b2-7242cedb47f3",
          "PATCH",
          "Update Member Role",
          760,
          690,
          70,
          90.8,
          "Team Management API",
          "56781234-4badbb68-830b-40c8-94b7-4c195c852995",
          "Partner Hub",
          "d100a067-b604-44c4-a1c1-bf414cc7b2c0"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Time when the request metrics snapshot was recorded.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "timestamp",
            "type": "TIMESTAMP"
          },
          {
            "description": "Unique identifier for the specific request definition.",
            "name": "request_identifier_id",
            "type": "STRING"
          },
          {
            "description": "HTTP method used for the request.",
            "name": "request_method",
            "type": "STRING"
          },
          {
            "description": "Human-readable name of the request.",
            "name": "request_name",
            "type": "STRING"
          },
          {
            "description": "Total number of request attempts.",
            "name": "total_requests",
            "type": "INTEGER"
          },
          {
            "description": "Number of successful responses received.",
            "name": "success_count",
            "type": "INTEGER"
          },
          {
            "description": "Number of failed responses received.",
            "name": "failure_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage of successful requests.",
            "name": "success_percent",
            "type": "FLOAT"
          },
          {
            "description": "Name of the collection the request belongs to.",
            "name": "collection_name",
            "type": "STRING"
          },
          {
            "description": "Identifier of the collection the request belongs to.",
            "name": "collection_id",
            "type": "STRING"
          },
          {
            "description": "Name of the workspace containing the collection.",
            "name": "workspace_name",
            "type": "STRING"
          },
          {
            "description": "Identifier of the workspace containing the collection.",
            "name": "workspace_id",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - API Success Rate - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"3","metrics":"success_rate","resource":"workspace","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - API Success Rate - Detailed
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=success_rate&resource=workspace&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - API Success Rate - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=success_rate&resource=workspace&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - API Success Rate - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=success_rate&resource=workspace&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - API Success Rate - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=success_rate&resource=workspace&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - API Success Rate - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=success_rate&resource=workspace&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - API Success Rate - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=success_rate&resource=workspace&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - API Success Rate - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=success_rate&resource=workspace&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - User Requests - Selected Users

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 3,
        "offset": 0,
        "total": 25
      },
      "rows": [
        [
          "12345678",
          "Get Workspace Summary",
          "12345678-82b01bb6-062c-4bdc-9e09-710bc8f66e75",
          "Workspace Insights API",
          "12345678-57d32d78-2d30-4fd7-9e33-4ac2213b4499",
          "Engineering Hub",
          "6755660d-38f1-4366-848b-df9f2008620d",
          200,
          "2025-10-10T09:55:00Z"
        ],
        [
          "87654321",
          "Fetch Collection Details",
          "87654321-bcea09cd-cab7-4744-a971-45af229bc1ef",
          "Collection Metrics API",
          "87654321-43270cfc-92d2-426e-8c1b-4f85bc8dea0a",
          "Partner API Hub",
          "cc7b80be-89dd-4506-912d-c27945fea4b2",
          404,
          "2025-10-10T10:00:00Z"
        ],
        [
          "56781234",
          "Get User Profile",
          "56781234-2b6d42fa-6183-4747-9a5b-d685c18487a0",
          "User Management API",
          "56781234-6a07486a-2005-4ef1-a32b-15331ae2c9b0",
          "Internal Tools",
          "19efb285-462f-4e15-94ba-3322657b5c1d",
          202,
          "2025-10-10T10:10:00Z"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier of the user who sent the request.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Human-readable name of the request made by the user.",
            "name": "request_name",
            "type": "STRING"
          },
          {
            "description": "Unique identifier referencing the specific request definition.",
            "name": "request_identifier_id",
            "type": "STRING"
          },
          {
            "description": "Name of the collection associated with the request.",
            "name": "collection_name",
            "type": "STRING"
          },
          {
            "description": "Identifier of the collection associated with the request.",
            "name": "collection_id",
            "type": "STRING"
          },
          {
            "description": "Name of the workspace containing the request’s collection.",
            "name": "workspace_name",
            "type": "STRING"
          },
          {
            "description": "Identifier of the workspace containing the collection.",
            "name": "workspace_id",
            "type": "STRING"
          },
          {
            "description": "HTTP status code returned for the request.",
            "name": "response_status",
            "type": "INTEGER"
          },
          {
            "description": "Timestamp when the request was made.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "request_ts",
            "type": "TIMESTAMP"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - User Requests - Selected Users
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_180_days","limit":"3","metrics":"user_requests","resource":"workspace","userId":"12345678","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - User Requests - Selected Users
const url = 'https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&userId=12345678&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - User Requests - Selected Users
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&userId=12345678&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - User Requests - Selected Users
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&userId=12345678&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - User Requests - Selected Users
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&userId=12345678&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - User Requests - Selected Users
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&userId=12345678&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - User Requests - Selected Users
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&userId=12345678&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - User Requests - Selected Users
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&userId=12345678&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - User Requests - Selected Requests

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 100,
        "offset": 0,
        "total": 4
      },
      "rows": [
        [
          "87654321",
          "New Request",
          "87654321-37fc31e2-f0bb-42ee-8651-b0fd0115d68a",
          "New Collection",
          "87654321-91e11daa-8fe1-4e1a-a6da-6cca43251595",
          "c303c5b6-066f-4c58-a9ef-cb0c710ccf02",
          200,
          "2025-07-30T21:55:19.000Z"
        ],
        [
          "12345678",
          "Test API",
          "12345678-ae30eef1-e330-4666-bad2-e48bb22d8790",
          "Test APIs",
          "12345678-2f9170b4-a59f-4b44-aa93-e25cafdaa2d1",
          "583a1633-d0e5-4890-be85-628c52916152",
          200,
          "2026-01-13T03:57:18.000Z"
        ],
        [
          "12345678",
          "Test API",
          "12345678-ae30eef1-e330-4666-bad2-e48bb22d8790",
          "Test APIs",
          "12345678-2f9170b4-a59f-4b44-aa93-e25cafdaa2d1",
          "583a1633-d0e5-4890-be85-628c52916152",
          404,
          "2026-01-13T03:57:29.000Z"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier of the user who sent the request.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Human-readable name of the request made by the user.",
            "name": "request_name",
            "type": "STRING"
          },
          {
            "description": "Unique identifier referencing the specific request definition.",
            "name": "request_id",
            "type": "STRING"
          },
          {
            "description": "Name of the collection associated with the request.",
            "name": "collection_name",
            "type": "STRING"
          },
          {
            "description": "Identifier of the collection associated with the request.",
            "name": "collection_id",
            "type": "STRING"
          },
          {
            "description": "Identifier of the workspace containing the collection.",
            "name": "workspace_id",
            "type": "STRING"
          },
          {
            "description": "HTTP status code returned for the request.",
            "name": "response_status",
            "type": "INTEGER"
          },
          {
            "description": "Timestamp when the request was made.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "request_ts",
            "type": "TIMESTAMP"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - User Requests - Selected Requests
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_180_days","limit":"3","metrics":"user_requests","requestId":"12345678-ae30eef1-e330-4666-bad2-e48bb22d8790,87654321-37fc31e2-f0bb-42ee-8651-b0fd0115d68a","resource":"workspace","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - User Requests - Selected Requests
const url = 'https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&requestId=12345678-ae30eef1-e330-4666-bad2-e48bb22d8790%2C87654321-37fc31e2-f0bb-42ee-8651-b0fd0115d68a&resource=workspace&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - User Requests - Selected Requests
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&requestId=12345678-ae30eef1-e330-4666-bad2-e48bb22d8790%2C87654321-37fc31e2-f0bb-42ee-8651-b0fd0115d68a&resource=workspace&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - User Requests - Selected Requests
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&requestId=12345678-ae30eef1-e330-4666-bad2-e48bb22d8790%2C87654321-37fc31e2-f0bb-42ee-8651-b0fd0115d68a&resource=workspace&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - User Requests - Selected Requests
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&requestId=12345678-ae30eef1-e330-4666-bad2-e48bb22d8790%2C87654321-37fc31e2-f0bb-42ee-8651-b0fd0115d68a&resource=workspace&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - User Requests - Selected Requests
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&requestId=12345678-ae30eef1-e330-4666-bad2-e48bb22d8790%2C87654321-37fc31e2-f0bb-42ee-8651-b0fd0115d68a&resource=workspace&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - User Requests - Selected Requests
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&requestId=12345678-ae30eef1-e330-4666-bad2-e48bb22d8790%2C87654321-37fc31e2-f0bb-42ee-8651-b0fd0115d68a&resource=workspace&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - User Requests - Selected Requests
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&requestId=12345678-ae30eef1-e330-4666-bad2-e48bb22d8790%2C87654321-37fc31e2-f0bb-42ee-8651-b0fd0115d68a&resource=workspace&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - User Requests - Selected Response Status

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 100,
        "offset": 0,
        "total": 3
      },
      "rows": [
        [
          "12345678",
          "404 Request",
          "12345678-8e261547-04be-427d-b6df-db9beb7f09df",
          "test collection",
          "12345678-76e46801-4e4f-4731-9203-52e6defdd7ca",
          "3506c6f4-c37e-4fd5-8d3f-2e69d70e9d03",
          404,
          "2026-01-20T09:30:43.000Z"
        ],
        [
          "12345678",
          "404 Request",
          "12345678-8e261547-04be-427d-b6df-db9beb7f09df",
          "test collection",
          "12345678-76e46801-4e4f-4731-9203-52e6defdd7ca",
          "3506c6f4-c37e-4fd5-8d3f-2e69d70e9d03",
          404,
          "2026-01-20T09:32:58.000Z"
        ],
        [
          "12345678",
          "Success Request",
          "12345678-fbacb0ad-0838-45d9-a38a-2cd1a759aae2",
          "test collection",
          "12345678-76e46801-4e4f-4731-9203-52e6defdd7ca",
          "3506c6f4-c37e-4fd5-8d3f-2e69d70e9d03",
          200,
          "2026-01-19T11:07:44.000Z"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier of the user who sent the request.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Human-readable name of the request made by the user.",
            "name": "request_name",
            "type": "STRING"
          },
          {
            "description": "Unique identifier referencing the specific request definition.",
            "name": "request_id",
            "type": "STRING"
          },
          {
            "description": "Name of the collection associated with the request.",
            "name": "collection_name",
            "type": "STRING"
          },
          {
            "description": "Identifier of the collection associated with the request.",
            "name": "collection_id",
            "type": "STRING"
          },
          {
            "description": "Identifier of the workspace containing the collection.",
            "name": "workspace_id",
            "type": "STRING"
          },
          {
            "description": "HTTP status code returned for the request.",
            "name": "response_status",
            "type": "INTEGER"
          },
          {
            "description": "Timestamp when the request was made.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "request_ts",
            "type": "TIMESTAMP"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - User Requests - Selected Response Status
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_180_days","limit":"3","metrics":"user_requests","resource":"workspace","responseStatus":"200,404","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - User Requests - Selected Response Status
const url = 'https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&responseStatus=200%2C404&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - User Requests - Selected Response Status
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&responseStatus=200%2C404&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - User Requests - Selected Response Status
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&responseStatus=200%2C404&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - User Requests - Selected Response Status
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&responseStatus=200%2C404&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - User Requests - Selected Response Status
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&responseStatus=200%2C404&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - User Requests - Selected Response Status
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&responseStatus=200%2C404&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - User Requests - Selected Response Status
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=user_requests&resource=workspace&responseStatus=200%2C404&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - Needs Attention - Attention Type

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": false,
        "limit": 100,
        "offset": 0,
        "total": 4
      },
      "rows": [
        [
          "12345678",
          "high_non_200OK_rate_for_partner",
          "2026-01-21T00:00:00.000Z",
          "partner_id",
          "{\"partner_id\":\"12345678\"}"
        ],
        [
          "12345678",
          "high_non_200OK_rate_for_partner",
          "2026-01-23T00:00:00.000Z",
          "partner_id",
          "{\"partner_id\":\"12345678\"}"
        ],
        [
          "87654321",
          "high_non_200OK_rate_for_partner",
          "2026-01-21T00:00:00.000Z",
          "partner_id",
          "{\"partner_id\":\"87654321\"}"
        ],
        [
          "87654321",
          "high_non_200OK_rate_for_partner",
          "2026-01-23T00:00:00.000Z",
          "partner_id",
          "{\"partner_id\":\"87654321\"}"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier of the user.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Type of issue or request pattern detected for the user.",
            "name": "request_type",
            "type": "STRING"
          },
          {
            "description": "Time when the request event was recorded.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "timestamp",
            "type": "TIMESTAMP"
          },
          {
            "description": "Display name of the request. Present when request_type = no_success_on_tried_request.",
            "name": "request_name",
            "type": "STRING"
          },
          {
            "description": "Unique identifier for the request. Present when request_type = no_success_on_tried_request.",
            "name": "request_identifier_id",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - Needs Attention - Attention Type
import requests

url = "https://api.postman.com/analytics"

querystring = {"attentionType":"high_non_200OK_rate_for_partner","duration":"last_30_days","metrics":"needs_attention","resource":"workspace","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - Needs Attention - Attention Type
const url = 'https://api.postman.com/analytics?attentionType=high_non_200OK_rate_for_partner&duration=last_30_days&metrics=needs_attention&resource=workspace&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - Needs Attention - Attention Type
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?attentionType=high_non_200OK_rate_for_partner&duration=last_30_days&metrics=needs_attention&resource=workspace&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - Needs Attention - Attention Type
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?attentionType=high_non_200OK_rate_for_partner&duration=last_30_days&metrics=needs_attention&resource=workspace&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - Needs Attention - Attention Type
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?attentionType=high_non_200OK_rate_for_partner&duration=last_30_days&metrics=needs_attention&resource=workspace&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - Needs Attention - Attention Type
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?attentionType=high_non_200OK_rate_for_partner&duration=last_30_days&metrics=needs_attention&resource=workspace&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - Needs Attention - Attention Type
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?attentionType=high_non_200OK_rate_for_partner&duration=last_30_days&metrics=needs_attention&resource=workspace&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - Needs Attention - Attention Type
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?attentionType=high_non_200OK_rate_for_partner&duration=last_30_days&metrics=needs_attention&resource=workspace&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - Partner Engagement Funnel - Detailed

**Response**

```json
{
  "data": {
    "all_partners": {
      "pagination": {
        "has_more": true,
        "limit": 3,
        "offset": 0,
        "total": 131
      },
      "rows": [
        [
          "12345678",
          "2026-01-21T00:00:00.000Z"
        ],
        [
          "87654321",
          "2026-01-21T00:00:00.000Z"
        ],
        [
          "56781234",
          "2026-01-21T00:00:00.000Z"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier of the partner user.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Time when the partner activity was recorded.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "timestamp",
            "type": "TIMESTAMP"
          }
        ]
      }
    },
    "request_sent": {
      "pagination": {
        "has_more": false,
        "limit": 3,
        "offset": 0,
        "total": 3
      },
      "rows": [
        [
          "12345678",
          "2026-01-21T00:00:00.000Z"
        ],
        [
          "87654321",
          "2026-01-21T00:00:00.000Z"
        ],
        [
          "56781234",
          "2026-01-21T00:00:00.000Z"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier of the partner user.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Time when the partner activity was recorded.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "timestamp",
            "type": "TIMESTAMP"
          }
        ]
      }
    },
    "successful_requests_200OK": {
      "pagination": {
        "has_more": false,
        "limit": 3,
        "offset": 0,
        "total": 3
      },
      "rows": [
        [
          "12345678",
          "2026-01-21T00:00:00.000Z"
        ],
        [
          "87654321",
          "2026-01-21T00:00:00.000Z"
        ],
        [
          "56781234",
          "2026-01-21T00:00:00.000Z"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier of the partner user.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Time when the partner activity was recorded.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "timestamp",
            "type": "TIMESTAMP"
          }
        ]
      }
    },
    "viewed_collection": {
      "pagination": {
        "has_more": false,
        "limit": 3,
        "offset": 0,
        "total": 3
      },
      "rows": [
        [
          "12345678",
          "2026-01-21T00:00:00.000Z"
        ],
        [
          "87654321",
          "2026-01-21T00:00:00.000Z"
        ],
        [
          "56781234",
          "2026-01-21T00:00:00.000Z"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier of the partner user.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Time when the partner activity was recorded.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "timestamp",
            "type": "TIMESTAMP"
          }
        ]
      }
    },
    "workspace_visited": {
      "pagination": {
        "has_more": true,
        "limit": 3,
        "offset": 0,
        "total": 7
      },
      "rows": [
        [
          "12345678",
          "2026-01-21T00:00:00.000Z"
        ],
        [
          "87654321",
          "2026-01-21T00:00:00.000Z"
        ],
        [
          "56781234",
          "2026-01-21T00:00:00.000Z"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier of the partner user.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Time when the partner activity was recorded.",
            "format": "YYYY-MM-DDTHH:MM:SSZ",
            "name": "timestamp",
            "type": "TIMESTAMP"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - Partner Engagement Funnel - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_180_days","limit":"3","metrics":"partner_engagement_funnel","offset":"0","resource":"team","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - Partner Engagement Funnel - Detailed
const url = 'https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=partner_engagement_funnel&offset=0&resource=team&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - Partner Engagement Funnel - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=partner_engagement_funnel&offset=0&resource=team&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - Partner Engagement Funnel - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=partner_engagement_funnel&offset=0&resource=team&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - Partner Engagement Funnel - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=partner_engagement_funnel&offset=0&resource=team&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - Partner Engagement Funnel - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=partner_engagement_funnel&offset=0&resource=team&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - Partner Engagement Funnel - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=partner_engagement_funnel&offset=0&resource=team&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - Partner Engagement Funnel - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_180_days&limit=3&metrics=partner_engagement_funnel&offset=0&resource=team&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Partner Workspace - Partner Engagement Funnel - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "all_partners",
          131
        ],
        [
          "workspace_visited",
          7
        ],
        [
          "viewed_collection",
          6
        ],
        [
          "request_sent",
          3
        ],
        [
          "successful_requests_200OK",
          3
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Name of the partner engagement metric.",
            "name": "metric",
            "type": "STRING"
          },
          {
            "description": "Value associated with the specific engagement metric.",
            "name": "count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python Partner Workspace - Partner Engagement Funnel - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_180_days","metrics":"partner_engagement_funnel","resource":"team","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Partner Workspace - Partner Engagement Funnel - Summary
const url = 'https://api.postman.com/analytics?duration=last_180_days&metrics=partner_engagement_funnel&resource=team&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner Workspace - Partner Engagement Funnel - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_180_days&metrics=partner_engagement_funnel&resource=team&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner Workspace - Partner Engagement Funnel - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_180_days&metrics=partner_engagement_funnel&resource=team&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Partner Workspace - Partner Engagement Funnel - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_180_days&metrics=partner_engagement_funnel&resource=team&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Partner Workspace - Partner Engagement Funnel - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_180_days&metrics=partner_engagement_funnel&resource=team&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Partner Workspace - Partner Engagement Funnel - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_180_days&metrics=partner_engagement_funnel&resource=team&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Partner Workspace - Partner Engagement Funnel - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_180_days&metrics=partner_engagement_funnel&resource=team&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Top Models Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 10,
        "offset": 0,
        "total": 11
      },
      "rows": [
        [
          "claude-sonnet-4.6",
          "Anthropic",
          753.72,
          265
        ],
        [
          "gpt-5.4",
          "OpenAI",
          206.231,
          67
        ],
        [
          "claude-opus-4.6",
          "Anthropic",
          158.068,
          46
        ],
        [
          "gpt-5.5",
          "OpenAI",
          125.358,
          10
        ],
        [
          "claude-haiku-4.5",
          "Anthropic",
          108.582,
          51
        ],
        [
          "claude-sonnet-4.5",
          "Anthropic",
          56.641,
          11
        ],
        [
          "claude-opus-4.7",
          "Anthropic",
          25.361,
          14
        ],
        [
          "moonshotai.kimi-k2.5",
          "Moonshotai",
          5.232,
          3
        ],
        [
          "claude-opus-4.5",
          "Anthropic",
          3.431,
          5
        ],
        [
          "deepseek-chat-v3.0324",
          "DeepSeek",
          2.638,
          4
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "AI model name.",
            "name": "model",
            "type": "STRING"
          },
          {
            "description": "AI model provider.",
            "name": "provider",
            "type": "STRING"
          },
          {
            "description": "AI credits used.",
            "name": "ai_credits_used",
            "type": "FLOAT"
          },
          {
            "description": "Number of distinct messages.",
            "name": "message_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Top Models Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_7_days","limit":"10","metrics":"top_agent_models_by_usage","offset":"0","resource":"ai","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Top Models Detailed
const url = 'https://api.postman.com/analytics?duration=last_7_days&limit=10&metrics=top_agent_models_by_usage&offset=0&resource=ai&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Top Models Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_7_days&limit=10&metrics=top_agent_models_by_usage&offset=0&resource=ai&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Top Models Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_7_days&limit=10&metrics=top_agent_models_by_usage&offset=0&resource=ai&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Top Models Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_7_days&limit=10&metrics=top_agent_models_by_usage&offset=0&resource=ai&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Top Models Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_7_days&limit=10&metrics=top_agent_models_by_usage&offset=0&resource=ai&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Top Models Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_7_days&limit=10&metrics=top_agent_models_by_usage&offset=0&resource=ai&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Top Models Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_7_days&limit=10&metrics=top_agent_models_by_usage&offset=0&resource=ai&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Activity Distribution

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-04-26 05:00:00",
          1.398,
          1,
          "Low Usage"
        ],
        [
          "2026-04-27 03:00:00",
          1.339,
          1,
          "Low Usage"
        ],
        [
          "2026-04-27 05:00:00",
          58.509,
          1,
          "Moderate Usage"
        ],
        [
          "2026-04-27 06:00:00",
          3.047,
          2,
          "Low Usage"
        ],
        [
          "2026-04-27 07:00:00",
          313.551,
          3,
          "High Usage"
        ],
        [
          "2026-04-27 08:00:00",
          23.97,
          3,
          "Low Usage"
        ],
        [
          "2026-04-27 09:00:00",
          148.522,
          6,
          "Low Usage"
        ],
        [
          "2026-04-27 10:00:00",
          60.232,
          4,
          "Low Usage"
        ],
        [
          "2026-04-27 11:00:00",
          41.297,
          4,
          "Low Usage"
        ],
        [
          "2026-04-27 12:00:00",
          22.733,
          1,
          "Low Usage"
        ],
        [
          "2026-04-27 15:00:00",
          0.699,
          1,
          "Low Usage"
        ],
        [
          "2026-04-27 16:00:00",
          0.835,
          1,
          "Low Usage"
        ],
        [
          "2026-04-27 17:00:00",
          925.75,
          3,
          "High Usage"
        ],
        [
          "2026-04-27 18:00:00",
          67.065,
          2,
          "Low Usage"
        ],
        [
          "2026-04-27 19:00:00",
          13.501,
          3,
          "Low Usage"
        ],
        [
          "2026-04-27 20:00:00",
          46.812,
          2,
          "Low Usage"
        ],
        [
          "2026-04-27 21:00:00",
          6.852,
          1,
          "Low Usage"
        ],
        [
          "2026-04-28 03:00:00",
          318.591,
          1,
          "High Usage"
        ],
        [
          "2026-04-28 05:00:00",
          0.302,
          1,
          "Low Usage"
        ],
        [
          "2026-04-28 06:00:00",
          147.383,
          4,
          "Low Usage"
        ],
        [
          "2026-04-28 07:00:00",
          472.18,
          3,
          "High Usage"
        ],
        [
          "2026-04-28 08:00:00",
          34.198,
          2,
          "Low Usage"
        ],
        [
          "2026-04-28 09:00:00",
          13.104,
          4,
          "Low Usage"
        ],
        [
          "2026-04-28 10:00:00",
          33.33,
          7,
          "Low Usage"
        ],
        [
          "2026-04-28 11:00:00",
          39.761,
          3,
          "Low Usage"
        ],
        [
          "2026-04-28 12:00:00",
          26.326,
          3,
          "Low Usage"
        ],
        [
          "2026-04-28 13:00:00",
          16.37,
          1,
          "Low Usage"
        ],
        [
          "2026-04-28 15:00:00",
          4.308,
          1,
          "Low Usage"
        ],
        [
          "2026-04-28 16:00:00",
          58.582,
          2,
          "Low Usage"
        ],
        [
          "2026-04-28 17:00:00",
          8.746,
          3,
          "Low Usage"
        ],
        [
          "2026-04-28 18:00:00",
          13.899,
          1,
          "Low Usage"
        ],
        [
          "2026-04-28 19:00:00",
          0.27,
          1,
          "Low Usage"
        ],
        [
          "2026-04-28 20:00:00",
          0.872,
          1,
          "Low Usage"
        ],
        [
          "2026-04-28 21:00:00",
          1.08,
          1,
          "Low Usage"
        ],
        [
          "2026-04-28 22:00:00",
          0.883,
          1,
          "Low Usage"
        ],
        [
          "2026-04-28 23:00:00",
          1.368,
          1,
          "Low Usage"
        ],
        [
          "2026-04-29 00:00:00",
          1.48,
          1,
          "Low Usage"
        ],
        [
          "2026-04-29 01:00:00",
          3.065,
          1,
          "Low Usage"
        ],
        [
          "2026-04-29 02:00:00",
          5.328,
          2,
          "Low Usage"
        ],
        [
          "2026-04-29 03:00:00",
          4.167,
          3,
          "Low Usage"
        ],
        [
          "2026-04-29 04:00:00",
          27.279,
          3,
          "Low Usage"
        ],
        [
          "2026-04-29 05:00:00",
          2.07,
          2,
          "Low Usage"
        ],
        [
          "2026-04-29 06:00:00",
          19.894,
          3,
          "Low Usage"
        ],
        [
          "2026-04-29 07:00:00",
          160.454,
          4,
          "Moderate Usage"
        ],
        [
          "2026-04-29 08:00:00",
          46.599,
          4,
          "Low Usage"
        ],
        [
          "2026-04-29 09:00:00",
          28.277,
          8,
          "Low Usage"
        ],
        [
          "2026-04-29 10:00:00",
          15.97,
          3,
          "Low Usage"
        ],
        [
          "2026-04-29 11:00:00",
          75.737,
          2,
          "Low Usage"
        ],
        [
          "2026-04-29 12:00:00",
          2.885,
          2,
          "Low Usage"
        ],
        [
          "2026-04-29 13:00:00",
          17.399,
          1,
          "Low Usage"
        ],
        [
          "2026-04-29 16:00:00",
          1.775,
          1,
          "Low Usage"
        ],
        [
          "2026-04-29 18:00:00",
          61.568,
          3,
          "Low Usage"
        ],
        [
          "2026-04-29 19:00:00",
          18.85,
          1,
          "Low Usage"
        ],
        [
          "2026-04-29 20:00:00",
          67.431,
          1,
          "Moderate Usage"
        ],
        [
          "2026-04-29 21:00:00",
          1.357,
          1,
          "Low Usage"
        ],
        [
          "2026-04-30 02:00:00",
          19.683,
          1,
          "Low Usage"
        ],
        [
          "2026-04-30 03:00:00",
          12.191,
          1,
          "Low Usage"
        ],
        [
          "2026-04-30 04:00:00",
          1.057,
          1,
          "Low Usage"
        ],
        [
          "2026-04-30 06:00:00",
          13.711,
          2,
          "Low Usage"
        ],
        [
          "2026-04-30 07:00:00",
          1.358,
          1,
          "Low Usage"
        ],
        [
          "2026-04-30 08:00:00",
          0.91,
          1,
          "Low Usage"
        ],
        [
          "2026-04-30 10:00:00",
          8.425,
          1,
          "Low Usage"
        ],
        [
          "2026-04-30 11:00:00",
          44.282,
          2,
          "Low Usage"
        ],
        [
          "2026-04-30 12:00:00",
          7.489,
          2,
          "Low Usage"
        ],
        [
          "2026-04-30 13:00:00",
          2.842,
          1,
          "Low Usage"
        ],
        [
          "2026-04-30 14:00:00",
          12.007,
          1,
          "Low Usage"
        ],
        [
          "2026-04-30 15:00:00",
          76.631,
          3,
          "Low Usage"
        ],
        [
          "2026-04-30 16:00:00",
          38.362,
          2,
          "Low Usage"
        ],
        [
          "2026-04-30 20:00:00",
          12.58,
          2,
          "Low Usage"
        ],
        [
          "2026-04-30 21:00:00",
          6.732,
          1,
          "Low Usage"
        ],
        [
          "2026-04-30 22:00:00",
          0.27,
          1,
          "Low Usage"
        ],
        [
          "2026-04-30 23:00:00",
          0.693,
          1,
          "Low Usage"
        ],
        [
          "2026-05-01 01:00:00",
          22.895,
          1,
          "Low Usage"
        ],
        [
          "2026-05-01 02:00:00",
          0.685,
          1,
          "Low Usage"
        ],
        [
          "2026-05-01 15:00:00",
          0.54,
          1,
          "Low Usage"
        ],
        [
          "2026-05-01 16:00:00",
          90.991,
          1,
          "High Usage"
        ],
        [
          "2026-05-01 18:00:00",
          3.228,
          1,
          "Low Usage"
        ],
        [
          "2026-05-01 22:00:00",
          0.635,
          1,
          "Low Usage"
        ],
        [
          "2026-05-02 02:00:00",
          0.362,
          1,
          "Low Usage"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Bucket start timestamp.",
            "name": "timestamp",
            "type": "TIMESTAMP"
          },
          {
            "description": "Total credits consumed in the bucket.",
            "name": "total_credits",
            "type": "FLOAT"
          },
          {
            "description": "Total users active in the bucket.",
            "name": "total_users",
            "type": "INTEGER"
          },
          {
            "description": "Usage classification for the bucket.",
            "name": "usage_level",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Activity Distribution
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"activity_distribution","resource":"ai","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Activity Distribution
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=activity_distribution&resource=ai&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Activity Distribution
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=activity_distribution&resource=ai&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Activity Distribution
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=activity_distribution&resource=ai&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Activity Distribution
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=activity_distribution&resource=ai&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Activity Distribution
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=activity_distribution&resource=ai&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Activity Distribution
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=activity_distribution&resource=ai&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Activity Distribution
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=activity_distribution&resource=ai&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Peak Activity

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "Tue (May 12)",
          "2026-05-12 00:00:00",
          "2026-05-13 00:00:00",
          296.107
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Display-friendly label describing the peak window. Format depends on the requested duration filter.",
            "name": "most_active_window",
            "type": "STRING"
          },
          {
            "description": "Start of the peak activity window.",
            "name": "bucket_start",
            "type": "TIMESTAMP"
          },
          {
            "description": "End of the peak activity window (exclusive).",
            "name": "bucket_end",
            "type": "TIMESTAMP"
          },
          {
            "description": "Total credits consumed in the peak period.",
            "name": "credits_used",
            "type": "FLOAT"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Peak Activity
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_7_days","metrics":"peak_activity","resource":"ai","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Peak Activity
const url = 'https://api.postman.com/analytics?duration=last_7_days&metrics=peak_activity&resource=ai&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Peak Activity
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_7_days&metrics=peak_activity&resource=ai&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Peak Activity
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_7_days&metrics=peak_activity&resource=ai&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Peak Activity
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_7_days&metrics=peak_activity&resource=ai&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Peak Activity
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_7_days&metrics=peak_activity&resource=ai&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Peak Activity
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_7_days&metrics=peak_activity&resource=ai&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Peak Activity
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_7_days&metrics=peak_activity&resource=ai&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Ranked Usage Leaderboard - Filter User

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "12345678",
          "Taylor Lee",
          "taylor.lee@example.com",
          1,
          70,
          226,
          7597.144
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier for the user.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Display name of the user.",
            "name": "user_name",
            "type": "STRING"
          },
          {
            "description": "Email address of the user.",
            "name": "user_email",
            "type": "STRING"
          },
          {
            "description": "Leaderboard rank.",
            "name": "rank",
            "type": "INTEGER"
          },
          {
            "description": "Number of agent mode sessions.",
            "name": "agent_mode_sessions",
            "type": "INTEGER"
          },
          {
            "description": "Number of messages sent.",
            "name": "messages_sent",
            "type": "INTEGER"
          },
          {
            "description": "Total AI credits consumed.",
            "name": "ai_credits_used",
            "type": "FLOAT"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Ranked Usage Leaderboard - Filter User
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"usage_leaderboard","resource":"ai","userId":"12345678","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Ranked Usage Leaderboard - Filter User
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=usage_leaderboard&resource=ai&userId=12345678&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Ranked Usage Leaderboard - Filter User
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=usage_leaderboard&resource=ai&userId=12345678&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Ranked Usage Leaderboard - Filter User
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=usage_leaderboard&resource=ai&userId=12345678&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Ranked Usage Leaderboard - Filter User
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=usage_leaderboard&resource=ai&userId=12345678&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Ranked Usage Leaderboard - Filter User
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=usage_leaderboard&resource=ai&userId=12345678&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Ranked Usage Leaderboard - Filter User
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=usage_leaderboard&resource=ai&userId=12345678&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Ranked Usage Leaderboard - Filter User
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=usage_leaderboard&resource=ai&userId=12345678&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Ranked Usage Leaderboard

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "12345678",
          "Taylor Lee",
          "taylor.lee@example.com",
          1,
          70,
          226,
          7597.144
        ],
        [
          "56781234",
          "Alex Cruz",
          "alex.cruz@example.com",
          2,
          41,
          117,
          1949.872
        ],
        [
          "43218765",
          "Kim Allen",
          "kim.allen@example.com",
          3,
          50,
          73,
          1881.436
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Unique identifier for the user.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Display name of the user.",
            "name": "user_name",
            "type": "STRING"
          },
          {
            "description": "Email address of the user.",
            "name": "user_email",
            "type": "STRING"
          },
          {
            "description": "Leaderboard rank.",
            "name": "rank",
            "type": "INTEGER"
          },
          {
            "description": "Number of agent mode sessions.",
            "name": "agent_mode_sessions",
            "type": "INTEGER"
          },
          {
            "description": "Number of messages sent.",
            "name": "messages_sent",
            "type": "INTEGER"
          },
          {
            "description": "Total AI credits consumed.",
            "name": "ai_credits_used",
            "type": "FLOAT"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Ranked Usage Leaderboard
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"3","metrics":"usage_leaderboard","offset":"0","resource":"ai","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Ranked Usage Leaderboard
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=usage_leaderboard&offset=0&resource=ai&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Ranked Usage Leaderboard
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=usage_leaderboard&offset=0&resource=ai&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Ranked Usage Leaderboard
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=usage_leaderboard&offset=0&resource=ai&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Ranked Usage Leaderboard
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=usage_leaderboard&offset=0&resource=ai&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Ranked Usage Leaderboard
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=usage_leaderboard&offset=0&resource=ai&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Ranked Usage Leaderboard
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=usage_leaderboard&offset=0&resource=ai&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Ranked Usage Leaderboard
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=3&metrics=usage_leaderboard&offset=0&resource=ai&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Model Credit Usage by Model Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-04-01",
          "claude-3.7-sonnet",
          588.156,
          156
        ],
        [
          "2026-04-01",
          "claude-opus-4.6",
          156.589,
          17
        ],
        [
          "2026-04-01",
          "claude-sonnet-4.5",
          188.21,
          19
        ],
        [
          "2026-04-01",
          "claude-sonnet-4.6",
          2226.067,
          92
        ],
        [
          "2026-04-01",
          "deepseek-chat-v3.0324",
          0.551,
          1
        ],
        [
          "2026-04-01",
          "deepseek-r1",
          1.324,
          1
        ],
        [
          "2026-04-01",
          "gemini-3.1-pro-preview",
          2.913,
          4
        ],
        [
          "2026-04-01",
          "gpt-4.1",
          31.608,
          43
        ],
        [
          "2026-04-01",
          "gpt-5",
          30.598,
          34
        ],
        [
          "2026-04-01",
          "gpt-5.2",
          0.5,
          1
        ],
        [
          "2026-04-01",
          "gpt-5.3-codex",
          6.362,
          6
        ],
        [
          "2026-04-01",
          "gpt-5.4",
          303.824,
          65
        ],
        [
          "2026-04-01",
          "llama-4-maverick",
          1.196,
          2
        ],
        [
          "2026-04-01",
          "llama-4-scout",
          0.597,
          1
        ],
        [
          "2026-04-02",
          "claude-3.7-sonnet",
          33.084,
          12
        ],
        [
          "2026-04-02",
          "claude-haiku-4.5",
          38.917,
          15
        ],
        [
          "2026-04-02",
          "claude-opus-4.5",
          8.239,
          4
        ],
        [
          "2026-04-02",
          "claude-opus-4.6",
          526.387,
          73
        ],
        [
          "2026-04-02",
          "claude-sonnet-4",
          55.897,
          9
        ],
        [
          "2026-04-02",
          "claude-sonnet-4.5",
          0.522,
          1
        ],
        [
          "2026-04-02",
          "claude-sonnet-4.6",
          785.882,
          104
        ],
        [
          "2026-04-02",
          "deepseek-r1",
          1.97,
          3
        ],
        [
          "2026-04-02",
          "gemini-3-flash-preview",
          1.038,
          2
        ],
        [
          "2026-04-02",
          "gemini-3.1-pro-preview",
          0.401,
          1
        ],
        [
          "2026-04-02",
          "gpt-4.1",
          19.404,
          31
        ],
        [
          "2026-04-02",
          "gpt-5",
          18.375,
          17
        ],
        [
          "2026-04-02",
          "gpt-5.4",
          93.286,
          26
        ],
        [
          "2026-04-02",
          "moonshotai.kimi-k2.5",
          6.027,
          8
        ],
        [
          "2026-04-03",
          "claude-opus-4.6",
          52.262,
          23
        ],
        [
          "2026-04-03",
          "gpt-4.1",
          0.375,
          1
        ],
        [
          "2026-04-05",
          "gpt-4.1",
          0.388,
          2
        ],
        [
          "2026-04-05",
          "gpt-5",
          0.205,
          1
        ],
        [
          "2026-04-06",
          "claude-opus-4.6",
          2286.821,
          97
        ],
        [
          "2026-04-06",
          "claude-sonnet-4.6",
          877.569,
          105
        ],
        [
          "2026-04-06",
          "gpt-4.1",
          74.659,
          49
        ],
        [
          "2026-04-06",
          "gpt-5",
          97.274,
          47
        ],
        [
          "2026-04-06",
          "gpt-5.3-codex",
          0.955,
          2
        ],
        [
          "2026-04-06",
          "moonshotai.kimi-k2.5",
          202.63,
          98
        ],
        [
          "2026-04-07",
          "claude-haiku-4.5",
          9.201,
          1
        ],
        [
          "2026-04-07",
          "claude-opus-4.6",
          247.089,
          18
        ],
        [
          "2026-04-07",
          "claude-sonnet-4.6",
          306.646,
          38
        ],
        [
          "2026-04-07",
          "gpt-4.1",
          16.899,
          22
        ],
        [
          "2026-04-07",
          "gpt-5",
          23.35,
          23
        ],
        [
          "2026-04-07",
          "gpt-5.4",
          21.699,
          13
        ],
        [
          "2026-04-07",
          "moonshotai.kimi-k2.5",
          7.89,
          3
        ],
        [
          "2026-04-08",
          "claude-haiku-4.5",
          20.168,
          9
        ],
        [
          "2026-04-08",
          "claude-opus-4.5",
          8.933,
          1
        ],
        [
          "2026-04-08",
          "claude-opus-4.6",
          425.127,
          21
        ],
        [
          "2026-04-08",
          "claude-sonnet-4.6",
          5.451,
          1
        ],
        [
          "2026-04-08",
          "deepseek-r1",
          1.423,
          1
        ],
        [
          "2026-04-08",
          "gpt-4.1",
          53.944,
          50
        ],
        [
          "2026-04-08",
          "gpt-5",
          82.26,
          44
        ],
        [
          "2026-04-08",
          "gpt-5.2",
          6.223,
          1
        ],
        [
          "2026-04-08",
          "gpt-5.4",
          17.699,
          9
        ],
        [
          "2026-04-08",
          "moonshotai.kimi-k2.5",
          0.651,
          1
        ],
        [
          "2026-04-09",
          "claude-haiku-4.5",
          21.707,
          11
        ],
        [
          "2026-04-09",
          "claude-opus-4.5",
          2.138,
          1
        ],
        [
          "2026-04-09",
          "claude-opus-4.6",
          480.012,
          28
        ],
        [
          "2026-04-09",
          "claude-sonnet-4.6",
          41.86,
          8
        ],
        [
          "2026-04-09",
          "gpt-4.1",
          64.967,
          30
        ],
        [
          "2026-04-09",
          "gpt-5",
          69.022,
          36
        ],
        [
          "2026-04-09",
          "gpt-5.2",
          11.96,
          2
        ],
        [
          "2026-04-09",
          "gpt-5.4",
          22.189,
          9
        ],
        [
          "2026-04-09",
          "moonshotai.kimi-k2.5",
          3.743,
          4
        ],
        [
          "2026-04-10",
          "claude-opus-4.6",
          30.134,
          7
        ],
        [
          "2026-04-10",
          "claude-sonnet-4.6",
          179.096,
          7
        ],
        [
          "2026-04-10",
          "gpt-4.1",
          10.72,
          13
        ],
        [
          "2026-04-10",
          "gpt-5",
          4.874,
          8
        ],
        [
          "2026-04-10",
          "gpt-5.2",
          36.792,
          8
        ],
        [
          "2026-04-10",
          "gpt-5.4",
          0.501,
          1
        ],
        [
          "2026-04-13",
          "claude-haiku-4.5",
          4.298,
          5
        ],
        [
          "2026-04-13",
          "claude-opus-4.6",
          23.538,
          5
        ],
        [
          "2026-04-13",
          "claude-sonnet-4.6",
          106.863,
          17
        ],
        [
          "2026-04-13",
          "gpt-4.1",
          53.926,
          54
        ],
        [
          "2026-04-13",
          "gpt-5",
          71.772,
          45
        ],
        [
          "2026-04-13",
          "gpt-5.2",
          3.596,
          4
        ],
        [
          "2026-04-13",
          "gpt-5.4",
          0.569,
          1
        ],
        [
          "2026-04-14",
          "claude-haiku-4.5",
          132.068,
          45
        ],
        [
          "2026-04-14",
          "claude-opus-4.5",
          223.275,
          72
        ],
        [
          "2026-04-14",
          "claude-opus-4.6",
          328.479,
          66
        ],
        [
          "2026-04-14",
          "claude-sonnet-4.5",
          74.737,
          24
        ],
        [
          "2026-04-14",
          "claude-sonnet-4.6",
          173.166,
          51
        ],
        [
          "2026-04-14",
          "gemini-3.1-pro-preview",
          11.691,
          25
        ],
        [
          "2026-04-14",
          "gpt-4.1",
          40.794,
          41
        ],
        [
          "2026-04-14",
          "gpt-5",
          50.524,
          30
        ],
        [
          "2026-04-14",
          "gpt-5.2",
          251.219,
          79
        ],
        [
          "2026-04-14",
          "gpt-5.3-codex",
          19.071,
          39
        ],
        [
          "2026-04-14",
          "gpt-5.4",
          99.139,
          49
        ],
        [
          "2026-04-14",
          "moonshotai.kimi-k2.5",
          121.888,
          48
        ],
        [
          "2026-04-15",
          "claude-3.5-haiku",
          2.547,
          1
        ],
        [
          "2026-04-15",
          "claude-haiku-4.5",
          115.676,
          40
        ],
        [
          "2026-04-15",
          "claude-opus-4.5",
          9.508,
          1
        ],
        [
          "2026-04-15",
          "claude-opus-4.6",
          204.807,
          44
        ],
        [
          "2026-04-15",
          "claude-sonnet-4.5",
          46.104,
          6
        ],
        [
          "2026-04-15",
          "claude-sonnet-4.6",
          134.635,
          49
        ],
        [
          "2026-04-15",
          "gpt-4.1",
          82.783,
          39
        ],
        [
          "2026-04-15",
          "gpt-5",
          77.188,
          40
        ],
        [
          "2026-04-15",
          "gpt-5.2",
          91.789,
          17
        ],
        [
          "2026-04-15",
          "gpt-5.4",
          66.957,
          45
        ],
        [
          "2026-04-15",
          "moonshotai.kimi-k2.5",
          12.027,
          7
        ],
        [
          "2026-04-16",
          "claude-opus-4.6",
          256.961,
          37
        ],
        [
          "2026-04-16",
          "claude-sonnet-4.5",
          29.072,
          11
        ],
        [
          "2026-04-16",
          "claude-sonnet-4.6",
          205.515,
          21
        ],
        [
          "2026-04-16",
          "gpt-4.1",
          114.482,
          78
        ],
        [
          "2026-04-16",
          "gpt-5",
          142.534,
          69
        ],
        [
          "2026-04-16",
          "gpt-5.2",
          86.089,
          16
        ],
        [
          "2026-04-16",
          "gpt-5.4",
          3.29,
          1
        ],
        [
          "2026-04-16",
          "moonshotai.kimi-k2.5",
          1.719,
          2
        ],
        [
          "2026-04-17",
          "claude-haiku-4.5",
          2.431,
          3
        ],
        [
          "2026-04-17",
          "claude-opus-4.6",
          119.087,
          16
        ],
        [
          "2026-04-17",
          "claude-sonnet-4.5",
          4.959,
          2
        ],
        [
          "2026-04-17",
          "claude-sonnet-4.6",
          984.411,
          101
        ],
        [
          "2026-04-17",
          "gpt-4.1",
          77.319,
          46
        ],
        [
          "2026-04-17",
          "gpt-5",
          91.512,
          50
        ],
        [
          "2026-04-17",
          "gpt-5.2",
          0.605,
          1
        ],
        [
          "2026-04-17",
          "gpt-5.4",
          3.874,
          2
        ],
        [
          "2026-04-18",
          "claude-opus-4.6",
          243.951,
          45
        ],
        [
          "2026-04-19",
          "claude-opus-4.6",
          9.307,
          4
        ],
        [
          "2026-04-19",
          "gpt-4.1",
          0.685,
          2
        ],
        [
          "2026-04-19",
          "gpt-5",
          1.525,
          4
        ],
        [
          "2026-04-19",
          "gpt-5.4",
          4.108,
          1
        ],
        [
          "2026-04-20",
          "claude-opus-4.6",
          1528.047,
          82
        ],
        [
          "2026-04-20",
          "claude-sonnet-4.5",
          4.709,
          4
        ],
        [
          "2026-04-20",
          "claude-sonnet-4.6",
          779.813,
          9
        ],
        [
          "2026-04-20",
          "gpt-4.1",
          35.513,
          42
        ],
        [
          "2026-04-20",
          "gpt-5",
          35.678,
          38
        ],
        [
          "2026-04-20",
          "gpt-5.2",
          0.623,
          1
        ],
        [
          "2026-04-20",
          "gpt-5.4",
          66.727,
          17
        ],
        [
          "2026-04-21",
          "claude-3.5-haiku",
          21.347,
          8
        ],
        [
          "2026-04-21",
          "claude-haiku-4.5",
          163.323,
          49
        ],
        [
          "2026-04-21",
          "claude-opus-4.5",
          180.281,
          48
        ],
        [
          "2026-04-21",
          "claude-opus-4.6",
          417.854,
          57
        ],
        [
          "2026-04-21",
          "claude-opus-4.7",
          253.986,
          54
        ],
        [
          "2026-04-21",
          "claude-sonnet-4",
          96.813,
          30
        ],
        [
          "2026-04-21",
          "claude-sonnet-4.5",
          171.291,
          56
        ],
        [
          "2026-04-21",
          "claude-sonnet-4.6",
          433.23,
          88
        ],
        [
          "2026-04-21",
          "gpt-4.1",
          47.454,
          35
        ],
        [
          "2026-04-21",
          "gpt-5",
          58.548,
          31
        ],
        [
          "2026-04-21",
          "gpt-5.2",
          13.155,
          7
        ],
        [
          "2026-04-21",
          "gpt-5.4",
          18.852,
          8
        ],
        [
          "2026-04-22",
          "claude-3.5-haiku",
          130.951,
          40
        ],
        [
          "2026-04-22",
          "claude-haiku-4.5",
          0.855,
          1
        ],
        [
          "2026-04-22",
          "claude-opus-4.6",
          55.081,
          17
        ],
        [
          "2026-04-22",
          "claude-opus-4.7",
          400.241,
          71
        ],
        [
          "2026-04-22",
          "claude-sonnet-4",
          120.595,
          18
        ],
        [
          "2026-04-22",
          "claude-sonnet-4.6",
          78.811,
          40
        ],
        [
          "2026-04-22",
          "deepseek-chat-v3.0324",
          3.436,
          2
        ],
        [
          "2026-04-22",
          "gpt-4.1",
          76.501,
          43
        ],
        [
          "2026-04-22",
          "gpt-5",
          95.02,
          39
        ],
        [
          "2026-04-22",
          "gpt-5.2",
          81.543,
          41
        ],
        [
          "2026-04-22",
          "gpt-5.4",
          101.625,
          40
        ],
        [
          "2026-04-22",
          "moonshotai.kimi-k2.5",
          1.801,
          1
        ],
        [
          "2026-04-23",
          "claude-opus-4.5",
          4.897,
          1
        ],
        [
          "2026-04-23",
          "claude-opus-4.6",
          396.819,
          28
        ],
        [
          "2026-04-23",
          "claude-opus-4.7",
          29.402,
          5
        ],
        [
          "2026-04-23",
          "claude-sonnet-4.6",
          17.755,
          15
        ],
        [
          "2026-04-23",
          "gpt-4.1",
          30.032,
          24
        ],
        [
          "2026-04-23",
          "gpt-5",
          41.294,
          19
        ],
        [
          "2026-04-23",
          "gpt-5.4",
          7.803,
          3
        ],
        [
          "2026-04-24",
          "claude-opus-4.6",
          163.618,
          7
        ],
        [
          "2026-04-24",
          "claude-opus-4.7",
          61.245,
          46
        ],
        [
          "2026-04-24",
          "claude-sonnet-4.5",
          98.622,
          38
        ],
        [
          "2026-04-24",
          "claude-sonnet-4.6",
          17.564,
          18
        ],
        [
          "2026-04-24",
          "deepseek-r1",
          0.811,
          1
        ],
        [
          "2026-04-24",
          "gpt-4.1",
          36.651,
          23
        ],
        [
          "2026-04-24",
          "gpt-5",
          43.459,
          24
        ],
        [
          "2026-04-24",
          "gpt-5.4",
          1.287,
          2
        ],
        [
          "2026-04-25",
          "claude-opus-4.7",
          55.359,
          9
        ],
        [
          "2026-04-25",
          "gpt-5",
          0.769,
          2
        ],
        [
          "2026-04-26",
          "gpt-4.1",
          1.398,
          2
        ],
        [
          "2026-04-27",
          "claude-haiku-4.5",
          107.275,
          29
        ],
        [
          "2026-04-27",
          "claude-opus-4.6",
          0.935,
          1
        ],
        [
          "2026-04-27",
          "claude-opus-4.7",
          1271.763,
          23
        ],
        [
          "2026-04-27",
          "claude-sonnet-4.5",
          7.337,
          3
        ],
        [
          "2026-04-27",
          "claude-sonnet-4.6",
          188.273,
          44
        ],
        [
          "2026-04-27",
          "gpt-4.1",
          72.707,
          55
        ],
        [
          "2026-04-27",
          "gpt-5",
          82.27,
          45
        ],
        [
          "2026-04-27",
          "gpt-5.2",
          0.835,
          1
        ],
        [
          "2026-04-27",
          "gpt-5.4",
          3.319,
          2
        ],
        [
          "2026-04-28",
          "claude-haiku-4.5",
          57.449,
          15
        ],
        [
          "2026-04-28",
          "claude-opus-4.6",
          15.961,
          9
        ],
        [
          "2026-04-28",
          "claude-opus-4.7",
          929.728,
          31
        ],
        [
          "2026-04-28",
          "claude-sonnet-4.6",
          117.642,
          56
        ],
        [
          "2026-04-28",
          "gpt-4.1",
          27.737,
          39
        ],
        [
          "2026-04-28",
          "gpt-5",
          23.636,
          25
        ],
        [
          "2026-04-28",
          "gpt-5.2",
          1.201,
          2
        ],
        [
          "2026-04-28",
          "gpt-5.4",
          17.366,
          8
        ],
        [
          "2026-04-28",
          "moonshotai.kimi-k2.5",
          0.833,
          1
        ],
        [
          "2026-04-29",
          "claude-haiku-4.5",
          4.674,
          1
        ],
        [
          "2026-04-29",
          "claude-opus-4.6",
          61.7,
          16
        ],
        [
          "2026-04-29",
          "claude-sonnet-4.6",
          318.873,
          62
        ],
        [
          "2026-04-29",
          "gpt-4.1",
          83.266,
          71
        ],
        [
          "2026-04-29",
          "gpt-5",
          93.072,
          57
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Date of credit usage.",
            "name": "created_at",
            "type": "DATE"
          },
          {
            "description": "AI model name.",
            "name": "model",
            "type": "STRING"
          },
          {
            "description": "AI credits used.",
            "name": "ai_credits_used",
            "type": "FLOAT"
          },
          {
            "description": "Number of distinct messages.",
            "name": "message_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Model Credit Usage by Model Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_6_months","metrics":"credit_usage_by_model","resource":"ai","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Model Credit Usage by Model Trend
const url = 'https://api.postman.com/analytics?duration=last_6_months&metrics=credit_usage_by_model&resource=ai&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Model Credit Usage by Model Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_6_months&metrics=credit_usage_by_model&resource=ai&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Model Credit Usage by Model Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_6_months&metrics=credit_usage_by_model&resource=ai&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Model Credit Usage by Model Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_6_months&metrics=credit_usage_by_model&resource=ai&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Model Credit Usage by Model Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_6_months&metrics=credit_usage_by_model&resource=ai&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Model Credit Usage by Model Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_6_months&metrics=credit_usage_by_model&resource=ai&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Model Credit Usage by Model Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_6_months&metrics=credit_usage_by_model&resource=ai&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Credit Usage Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          18926.453,
          1025600
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Current credit usage (in millicredits).",
            "name": "usage",
            "type": "FLOAT"
          },
          {
            "description": "Credit limit for the team (in millicredits).",
            "name": "limit",
            "type": "FLOAT"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Credit Usage Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"metrics":"credit_usage_by_model","resource":"ai","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Credit Usage Summary
const url = 'https://api.postman.com/analytics?metrics=credit_usage_by_model&resource=ai&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Credit Usage Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?metrics=credit_usage_by_model&resource=ai&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Credit Usage Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?metrics=credit_usage_by_model&resource=ai&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Credit Usage Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?metrics=credit_usage_by_model&resource=ai&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Credit Usage Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?metrics=credit_usage_by_model&resource=ai&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Credit Usage Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?metrics=credit_usage_by_model&resource=ai&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Credit Usage Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?metrics=credit_usage_by_model&resource=ai&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Messages Sent Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-04-06",
          248
        ],
        [
          "2026-04-07",
          312
        ],
        [
          "2026-04-08",
          289
        ],
        [
          "2026-04-09",
          275
        ],
        [
          "2026-04-10",
          198
        ],
        [
          "2026-04-13",
          341
        ],
        [
          "2026-04-14",
          305
        ],
        [
          "2026-04-15",
          267
        ],
        [
          "2026-04-16",
          389
        ],
        [
          "2026-04-17",
          215
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Date of the messages.",
            "name": "created_date",
            "type": "DATE"
          },
          {
            "description": "Distinct messages sent on this date.",
            "name": "messages_sent",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Messages Sent Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_1_year","metrics":"messages_sent","resource":"ai","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Messages Sent Trend
const url = 'https://api.postman.com/analytics?duration=last_1_year&metrics=messages_sent&resource=ai&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Messages Sent Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_1_year&metrics=messages_sent&resource=ai&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Messages Sent Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_1_year&metrics=messages_sent&resource=ai&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Messages Sent Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_1_year&metrics=messages_sent&resource=ai&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Messages Sent Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_1_year&metrics=messages_sent&resource=ai&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Messages Sent Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_1_year&metrics=messages_sent&resource=ai&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Messages Sent Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_1_year&metrics=messages_sent&resource=ai&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Messages Sent Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          4792,
          127.97335870599,
          "increase"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Distinct messages sent.",
            "name": "messages_sent",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change from the previous period.",
            "name": "change",
            "type": "FLOAT"
          },
          {
            "description": "Indicates whether the change is an increase, decrease, no_change, or new_data.",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Messages Sent Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"messages_sent","resource":"ai","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Messages Sent Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=messages_sent&resource=ai&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Messages Sent Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=messages_sent&resource=ai&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Messages Sent Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=messages_sent&resource=ai&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Messages Sent Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=messages_sent&resource=ai&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Messages Sent Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=messages_sent&resource=ai&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Messages Sent Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=messages_sent&resource=ai&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Messages Sent Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=messages_sent&resource=ai&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Agent Mode Sessions Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-04-06",
          156
        ],
        [
          "2026-04-07",
          189
        ],
        [
          "2026-04-08",
          172
        ],
        [
          "2026-04-09",
          164
        ],
        [
          "2026-04-10",
          118
        ],
        [
          "2026-04-13",
          201
        ],
        [
          "2026-04-14",
          195
        ],
        [
          "2026-04-15",
          148
        ],
        [
          "2026-04-16",
          225
        ],
        [
          "2026-04-17",
          134
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Date of the sessions.",
            "name": "created_date",
            "type": "DATE"
          },
          {
            "description": "Distinct agent mode sessions on this date.",
            "name": "agent_mode_sessions",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Agent Mode Sessions Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"agent_mode_sessions","resource":"ai","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Agent Mode Sessions Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=agent_mode_sessions&resource=ai&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Agent Mode Sessions Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=agent_mode_sessions&resource=ai&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Agent Mode Sessions Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=agent_mode_sessions&resource=ai&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Agent Mode Sessions Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=agent_mode_sessions&resource=ai&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Agent Mode Sessions Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=agent_mode_sessions&resource=ai&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Agent Mode Sessions Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=agent_mode_sessions&resource=ai&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Agent Mode Sessions Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=agent_mode_sessions&resource=ai&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Agent Mode Sessions Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          300,
          -66.024915062288,
          "decrease"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Distinct agent mode sessions.",
            "name": "agent_mode_sessions",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change from the previous period.",
            "name": "change",
            "type": "FLOAT"
          },
          {
            "description": "Indicates whether the change is an increase, decrease, no_change, or new_data.",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Agent Mode Sessions Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_7_days","metrics":"agent_mode_sessions","resource":"ai","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Agent Mode Sessions Summary
const url = 'https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_sessions&resource=ai&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Agent Mode Sessions Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_sessions&resource=ai&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Agent Mode Sessions Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_sessions&resource=ai&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Agent Mode Sessions Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_sessions&resource=ai&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Agent Mode Sessions Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_sessions&resource=ai&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Agent Mode Sessions Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_sessions&resource=ai&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Agent Mode Sessions Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_sessions&resource=ai&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - New vs Returning Users Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-04-06",
          "returning",
          "12345678",
          "Taylor Lee",
          "taylor.lee@example.com",
          24,
          75,
          2290.794
        ],
        [
          "2026-04-27",
          "returning",
          "56781234",
          "Alex Cruz",
          "alex.cruz@example.com",
          4,
          13,
          1124.856
        ],
        [
          "2026-04-20",
          "returning",
          "43218765",
          "Kim Allen",
          "kim.allen@example.com",
          7,
          18,
          1102.369
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Start of the aggregation period.",
            "name": "period_start",
            "type": "DATE"
          },
          {
            "description": "Whether the user is new or returning.",
            "name": "user_type",
            "type": "STRING"
          },
          {
            "description": "Unique identifier for the user.",
            "name": "user_id",
            "type": "STRING"
          },
          {
            "description": "Display name of the user.",
            "name": "user_name",
            "type": "STRING"
          },
          {
            "description": "Email address of the user.",
            "name": "user_email",
            "type": "STRING"
          },
          {
            "description": "Number of agent mode sessions.",
            "name": "agent_mode_sessions",
            "type": "INTEGER"
          },
          {
            "description": "Number of messages sent.",
            "name": "messages_sent",
            "type": "INTEGER"
          },
          {
            "description": "Total AI credits consumed.",
            "name": "ai_credits_used",
            "type": "FLOAT"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - New vs Returning Users Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"metrics":"new_vs_returning_users","period":"2026-04","resource":"ai","userType":"returning","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - New vs Returning Users Detailed
const url = 'https://api.postman.com/analytics?metrics=new_vs_returning_users&period=2026-04&resource=ai&userType=returning&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - New vs Returning Users Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?metrics=new_vs_returning_users&period=2026-04&resource=ai&userType=returning&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - New vs Returning Users Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?metrics=new_vs_returning_users&period=2026-04&resource=ai&userType=returning&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - New vs Returning Users Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?metrics=new_vs_returning_users&period=2026-04&resource=ai&userType=returning&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - New vs Returning Users Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?metrics=new_vs_returning_users&period=2026-04&resource=ai&userType=returning&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - New vs Returning Users Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?metrics=new_vs_returning_users&period=2026-04&resource=ai&userType=returning&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - New vs Returning Users Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?metrics=new_vs_returning_users&period=2026-04&resource=ai&userType=returning&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - New vs Returning Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "new",
          7,
          516,
          545,
          2025.834
        ],
        [
          "returning",
          57,
          988,
          1698,
          10289.229000000005
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Whether the user is new or returning.",
            "name": "user_type",
            "type": "STRING"
          },
          {
            "description": "Distinct users in the segment over the duration.",
            "name": "total_users",
            "type": "INTEGER"
          },
          {
            "description": "Total agent mode sessions for the segment.",
            "name": "agent_mode_sessions",
            "type": "INTEGER"
          },
          {
            "description": "Total messages sent for the segment.",
            "name": "messages_sent",
            "type": "INTEGER"
          },
          {
            "description": "Total AI credits consumed by the segment.",
            "name": "ai_credits_used",
            "type": "FLOAT"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - New vs Returning Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"new_vs_returning_users","resource":"ai","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - New vs Returning Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - New vs Returning Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - New vs Returning Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - New vs Returning Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - New vs Returning Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - New vs Returning Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - New vs Returning Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - New vs Returning Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-04-03",
          0,
          2,
          2
        ],
        [
          "2026-04-05",
          1,
          1,
          2
        ],
        [
          "2026-04-06",
          0,
          13,
          13
        ],
        [
          "2026-04-07",
          1,
          16,
          17
        ],
        [
          "2026-04-08",
          2,
          16,
          18
        ],
        [
          "2026-04-09",
          0,
          19,
          19
        ],
        [
          "2026-04-10",
          0,
          12,
          12
        ],
        [
          "2026-04-13",
          0,
          18,
          18
        ],
        [
          "2026-04-14",
          1,
          18,
          19
        ],
        [
          "2026-04-15",
          1,
          16,
          17
        ],
        [
          "2026-04-16",
          1,
          24,
          25
        ],
        [
          "2026-04-17",
          0,
          15,
          15
        ],
        [
          "2026-04-18",
          0,
          1,
          1
        ],
        [
          "2026-04-19",
          0,
          3,
          3
        ],
        [
          "2026-04-20",
          1,
          20,
          21
        ],
        [
          "2026-04-21",
          1,
          19,
          20
        ],
        [
          "2026-04-22",
          2,
          15,
          17
        ],
        [
          "2026-04-23",
          0,
          18,
          18
        ],
        [
          "2026-04-24",
          0,
          11,
          11
        ],
        [
          "2026-04-25",
          0,
          2,
          2
        ],
        [
          "2026-04-26",
          0,
          1,
          1
        ],
        [
          "2026-04-27",
          1,
          13,
          14
        ],
        [
          "2026-04-28",
          0,
          11,
          11
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Start of the aggregation period.",
            "name": "period_start",
            "type": "DATE"
          },
          {
            "description": "Count of new users in the period.",
            "name": "new_users",
            "type": "INTEGER"
          },
          {
            "description": "Count of returning users in the period.",
            "name": "returning_users",
            "type": "INTEGER"
          },
          {
            "description": "Total distinct users in the period.",
            "name": "total_users",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - New vs Returning Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"new_vs_returning_users","resource":"ai","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - New vs Returning Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - New vs Returning Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - New vs Returning Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - New vs Returning Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - New vs Returning Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - New vs Returning Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - New vs Returning Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=new_vs_returning_users&resource=ai&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Agent Mode Users Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          41,
          -8.8888888888889,
          "decrease"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Distinct users who used agent mode.",
            "name": "agent_mode_users",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change from the previous period.",
            "name": "change",
            "type": "FLOAT"
          },
          {
            "description": "Indicates whether the change is an increase, decrease, no_change, or new_data.",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Agent Mode Users Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_7_days","metrics":"agent_mode_users","resource":"ai","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Agent Mode Users Trend
const url = 'https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Agent Mode Users Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Agent Mode Users Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Agent Mode Users Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Agent Mode Users Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Agent Mode Users Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Agent Mode Users Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### AI - Agent Mode Users Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          41,
          -8.8888888888889,
          "decrease"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Distinct users who used agent mode.",
            "name": "agent_mode_users",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change from the previous period.",
            "name": "change",
            "type": "FLOAT"
          },
          {
            "description": "Indicates whether the change is an increase, decrease, no_change, or new_data.",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python AI - Agent Mode Users Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_7_days","metrics":"agent_mode_users","resource":"ai","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript AI - Agent Mode Users Summary
const url = 'https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go AI - Agent Mode Users Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby AI - Agent Mode Users Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java AI - Agent Mode Users Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php AI - Agent Mode Users Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp AI - Agent Mode Users Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift AI - Agent Mode Users Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_7_days&metrics=agent_mode_users&resource=ai&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Management - Popular Workspaces - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 5,
        "offset": 0,
        "total": 102
      },
      "rows": [
        [
          "3e0ff5e0-f10c-4536-89b2-ae14375c166f",
          null,
          1632
        ],
        [
          "6040522a-4b9a-45b1-b65c-21c06a49ddf3",
          null,
          1632
        ],
        [
          "533ebc3f-58a4-40eb-a743-32a9025f9719",
          null,
          1632
        ],
        [
          "15809062-19f9-4b6e-9d98-4260a24928b7",
          null,
          1632
        ],
        [
          "cfea8b39-dee1-43a8-a6f9-133eee99a184",
          null,
          408
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Workspace entity identifier.",
            "name": "entity_id",
            "type": "STRING"
          },
          {
            "description": "Resolved workspace display name.",
            "name": "entity_name",
            "type": "STRING"
          },
          {
            "description": "Sum of workspace active actions for this workspace.",
            "name": "action_value",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Management - Popular Workspaces - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"5","metrics":"popular_workspaces","offset":"0","resource":"api_management","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Management - Popular Workspaces - Detailed
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=popular_workspaces&offset=0&resource=api_management&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Management - Popular Workspaces - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=popular_workspaces&offset=0&resource=api_management&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Management - Popular Workspaces - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=popular_workspaces&offset=0&resource=api_management&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Management - Popular Workspaces - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=popular_workspaces&offset=0&resource=api_management&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Management - Popular Workspaces - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=popular_workspaces&offset=0&resource=api_management&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Management - Popular Workspaces - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=popular_workspaces&offset=0&resource=api_management&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Management - Popular Workspaces - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=popular_workspaces&offset=0&resource=api_management&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Management - Workspace Activity - Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-05-06",
          2
        ],
        [
          "2026-05-07",
          3
        ],
        [
          "2026-05-08",
          2
        ],
        [
          "2026-05-09",
          2
        ],
        [
          "2026-05-12",
          1
        ],
        [
          "2026-05-13",
          1
        ],
        [
          "2026-05-16",
          2
        ],
        [
          "2026-05-17",
          1
        ],
        [
          "2026-05-18",
          1
        ],
        [
          "2026-05-20",
          2
        ],
        [
          "2026-05-21",
          3
        ],
        [
          "2026-05-23",
          1
        ],
        [
          "2026-05-26",
          1
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Date bucket.",
            "name": "timestamp_date",
            "type": "DATE"
          },
          {
            "description": "Distinct workspace count on this date.",
            "name": "entity_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Management - Workspace Activity - Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"workspace_activity","resource":"api_management","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Management - Workspace Activity - Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Management - Workspace Activity - Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Management - Workspace Activity - Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Management - Workspace Activity - Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Management - Workspace Activity - Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Management - Workspace Activity - Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Management - Workspace Activity - Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Management - Workspace Activity - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          22,
          -21.428571428571,
          "decrease"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Distinct active workspace count for API management.",
            "name": "entity_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change vs previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "increase | decrease | no_change | new_data",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Management - Workspace Activity - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"workspace_activity","resource":"api_management","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Management - Workspace Activity - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Management - Workspace Activity - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Management - Workspace Activity - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Management - Workspace Activity - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Management - Workspace Activity - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Management - Workspace Activity - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Management - Workspace Activity - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=workspace_activity&resource=api_management&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Distribution - Public - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 5,
        "offset": 0,
        "total": 96
      },
      "rows": [
        [
          "b31f38d4-4ba8-4233-b4b5-fbddb9953459",
          "API Test",
          3278
        ],
        [
          "19dc35bf-b693-4fe9-a744-96ac99491d7d",
          "Testing",
          3278
        ],
        [
          "d12f7f46-fee0-4aee-bfa8-52055a511b86",
          "Testing 2",
          3278
        ],
        [
          "06e81de5-d31e-4ea6-8ab7-3934c3692b2f",
          "TESTING WORKSPACE",
          3278
        ],
        [
          "75e3a36f-b3a8-4315-a371-499439d5fd72",
          "Governance RBAC",
          3278
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Workspace entity identifier.",
            "name": "entity_id",
            "type": "STRING"
          },
          {
            "description": "Resolved workspace display name.",
            "name": "entity_name",
            "type": "STRING"
          },
          {
            "description": "Sum of view actions for this workspace.",
            "name": "action_value",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Distribution - Public - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"5","metrics":"public","resource":"api_distribution","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Distribution - Public - Detailed
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=public&resource=api_distribution&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Distribution - Public - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=public&resource=api_distribution&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Distribution - Public - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=public&resource=api_distribution&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Distribution - Public - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=public&resource=api_distribution&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Distribution - Public - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=public&resource=api_distribution&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Distribution - Public - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=public&resource=api_distribution&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Distribution - Public - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=public&resource=api_distribution&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Distribution - Public - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          24,
          -4,
          "decrease"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Distinct workspace count in Public API Network.",
            "name": "entity_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change vs previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "increase | decrease | no_change | new_data",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Distribution - Public - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"public","resource":"api_distribution","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Distribution - Public - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=public&resource=api_distribution&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Distribution - Public - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=public&resource=api_distribution&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Distribution - Public - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=public&resource=api_distribution&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Distribution - Public - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=public&resource=api_distribution&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Distribution - Public - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=public&resource=api_distribution&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Distribution - Public - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=public&resource=api_distribution&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Distribution - Public - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=public&resource=api_distribution&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Distribution - Partner - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 5,
        "offset": 0,
        "total": 100
      },
      "rows": [
        [
          "6e40d823-f4e7-42ef-8198-418b7478b68e",
          "API Testing",
          2828
        ],
        [
          "758665b9-a206-4c64-b108-698e26bc9de2",
          "API Bug Testing",
          2828
        ],
        [
          "52fb3f71-5ff6-42bd-a5a3-fb3809324666",
          "Testing Demo",
          2828
        ],
        [
          "3acdb8b3-46df-4446-bcf5-64849cb25172",
          "[BETA] Performance",
          2828
        ],
        [
          "659e5716-e35e-4c9b-8462-dda58c5166c7",
          "[BETA] Workspace",
          2828
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Workspace entity identifier.",
            "name": "entity_id",
            "type": "STRING"
          },
          {
            "description": "Resolved workspace display name.",
            "name": "entity_name",
            "type": "STRING"
          },
          {
            "description": "Sum of view actions for this workspace.",
            "name": "action_value",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Distribution - Partner - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"5","metrics":"partner","offset":"0","resource":"api_distribution","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Distribution - Partner - Detailed
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=partner&offset=0&resource=api_distribution&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Distribution - Partner - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=partner&offset=0&resource=api_distribution&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Distribution - Partner - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=partner&offset=0&resource=api_distribution&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Distribution - Partner - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=partner&offset=0&resource=api_distribution&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Distribution - Partner - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=partner&offset=0&resource=api_distribution&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Distribution - Partner - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=partner&offset=0&resource=api_distribution&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Distribution - Partner - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=partner&offset=0&resource=api_distribution&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Distribution - Partner - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          25,
          -3.8461538461538,
          "decrease"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Distinct workspace count in Partner Network.",
            "name": "entity_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change vs previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "increase | decrease | no_change | new_data",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Distribution - Partner - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"partner","resource":"api_distribution","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Distribution - Partner - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=partner&resource=api_distribution&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Distribution - Partner - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=partner&resource=api_distribution&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Distribution - Partner - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=partner&resource=api_distribution&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Distribution - Partner - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=partner&resource=api_distribution&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Distribution - Partner - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=partner&resource=api_distribution&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Distribution - Partner - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=partner&resource=api_distribution&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Distribution - Partner - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=partner&resource=api_distribution&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Distribution - Private Network - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": false,
        "limit": 100,
        "offset": 0,
        "total": 96
      },
      "rows": [
        [
          "609ad43c-7add-4328-a53d-49022e13690a",
          "Feature Usage Testing",
          2558
        ],
        [
          "81416a94-6323-45b9-a236-40a25c626b84",
          "[gitV2]GLC",
          2558
        ],
        [
          "56db54b0-dc2d-4101-9cd3-0c0c791e226e",
          "[Jia] v12 Testing",
          2558
        ],
        [
          "27aed3e8-65a3-4ac7-94df-acde41fafe1a",
          "[cbrehm] testing 2",
          2558
        ],
        [
          "d6f15d19-1fbb-4706-a576-9ffd6d5a371a",
          "[2MAY] SHREYANSH TESTING WORKSPACE",
          2558
        ],
        [
          "980fbe8b-8a1a-4fee-b697-ba05d8d959e6",
          "[Public] Governance RBAC",
          2558
        ],
        [
          "6f6bcbf1-8673-42df-bccf-dd03c81c1a64",
          "[Beta] Watch Service",
          2558
        ],
        [
          "e31d000d-b21e-4b3a-85cf-9a924a1e5765",
          "[BETA] Public workspace OGGGG",
          2558
        ],
        [
          "480a9003-84a7-46f1-8925-ddaad65418e1",
          "[DANGER] Do not join sup hahahha",
          2558
        ],
        [
          "b343ee30-7926-4afa-950c-bc5b098eee49",
          "!!!!!! A Public Workspace",
          2558
        ],
        [
          "01f0bfee-7368-40c4-9699-b1fd273a9b31",
          "Live Debugging",
          2558
        ],
        [
          "165dea5f-1c89-411b-a8e1-78265d91b6c4",
          "[Adwait] public ws creation testing",
          2558
        ],
        [
          "4540d410-ef72-4977-afb8-d7f53705f379",
          " Composable Flows",
          2558
        ],
        [
          "61ac1b37-a9ed-4638-9362-cd65a79ec792",
          "[Private workspace]",
          2558
        ],
        [
          "d675f1df-b006-4c4b-b011-086f8773f7e7",
          "[Adwait] Testing Org role on public ws creation",
          2558
        ],
        [
          "2cd62de7-beb7-4300-95d0-81dff4d5f421",
          "[Jia] v12",
          2558
        ],
        [
          "40ed1dc9-dc30-4cb8-960a-c94598053e81",
          "[Destroy] New Public Workspace",
          2558
        ],
        [
          "33727e8a-5b5b-4958-83f5-d61b792a48e0",
          "[DO NOT JOIN] Workspace with a lot of history",
          2558
        ],
        [
          "280000f6-25e8-4963-9f85-1a97ffcb53cb",
          "[cbrehm] testing",
          2558
        ],
        [
          "f063ce0f-a648-49d4-9d8a-e3f878529afa",
          "[Shub's] Workpsace to test History",
          2558
        ],
        [
          "301bf21f-a374-4c10-8050-5702f1b50ff6",
          "[APISEC-158] | RG | tmp workspace",
          2558
        ],
        [
          "764d1ae2-820d-448e-83de-a9d749222c46",
          "[gitV1]GLC Demo",
          2558
        ],
        [
          "b8d176eb-c850-4cae-864d-c356cfdea436",
          "[BETA] SpecHub Performance",
          2558
        ],
        [
          "917ab30c-2918-4a91-bc9e-ead7cf9c483c",
          "[Jia] v12 testing but public",
          2558
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Workspace entity identifier.",
            "name": "entity_id",
            "type": "STRING"
          },
          {
            "description": "Resolved workspace display name.",
            "name": "entity_name",
            "type": "STRING"
          },
          {
            "description": "Sum of view actions for this workspace.",
            "name": "action_value",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Distribution - Private Network - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"pvt_network","resource":"api_distribution","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Distribution - Private Network - Detailed
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Distribution - Private Network - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Distribution - Private Network - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Distribution - Private Network - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Distribution - Private Network - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Distribution - Private Network - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Distribution - Private Network - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Distribution - Private Network - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          24,
          -7.6923076923077,
          "decrease"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Distinct workspace count in Private API Network.",
            "name": "entity_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change vs previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "increase | decrease | no_change | new_data",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Distribution - Private Network - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"pvt_network","resource":"api_distribution","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Distribution - Private Network - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Distribution - Private Network - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Distribution - Private Network - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Distribution - Private Network - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Distribution - Private Network - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Distribution - Private Network - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Distribution - Private Network - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=pvt_network&resource=api_distribution&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Distribution - Active Workspaces - Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "partner",
          "2026-05-06",
          8484
        ],
        [
          "partner",
          "2026-05-07",
          8484
        ],
        [
          "partner",
          "2026-05-08",
          8484
        ],
        [
          "partner",
          "2026-05-09",
          16968
        ],
        [
          "partner",
          "2026-05-10",
          25452
        ],
        [
          "partner",
          "2026-05-12",
          8484
        ],
        [
          "partner",
          "2026-05-15",
          8484
        ],
        [
          "partner",
          "2026-05-16",
          16968
        ],
        [
          "partner",
          "2026-05-17",
          8484
        ],
        [
          "partner",
          "2026-05-18",
          16968
        ],
        [
          "partner",
          "2026-05-20",
          8484
        ],
        [
          "partner",
          "2026-05-21",
          8484
        ],
        [
          "partner",
          "2026-05-22",
          16968
        ],
        [
          "partner",
          "2026-05-25",
          8484
        ],
        [
          "partner",
          "2026-05-26",
          16968
        ],
        [
          "partner",
          "2026-05-27",
          8484
        ],
        [
          "partner",
          "2026-05-28",
          16968
        ],
        [
          "public",
          "2026-05-06",
          19668
        ],
        [
          "public",
          "2026-05-07",
          9834
        ],
        [
          "public",
          "2026-05-10",
          19668
        ],
        [
          "public",
          "2026-05-12",
          19668
        ],
        [
          "public",
          "2026-05-14",
          19668
        ],
        [
          "public",
          "2026-05-15",
          19668
        ],
        [
          "public",
          "2026-05-17",
          9834
        ],
        [
          "public",
          "2026-05-20",
          9834
        ],
        [
          "public",
          "2026-05-21",
          9834
        ],
        [
          "public",
          "2026-05-22",
          29502
        ],
        [
          "public",
          "2026-05-24",
          9834
        ],
        [
          "public",
          "2026-05-25",
          9834
        ],
        [
          "public",
          "2026-05-26",
          9834
        ],
        [
          "public",
          "2026-05-27",
          19668
        ],
        [
          "public",
          "2026-05-28",
          19668
        ],
        [
          "pvt-network",
          "2026-05-07",
          23022
        ],
        [
          "pvt-network",
          "2026-05-09",
          7674
        ],
        [
          "pvt-network",
          "2026-05-13",
          7674
        ],
        [
          "pvt-network",
          "2026-05-15",
          7674
        ],
        [
          "pvt-network",
          "2026-05-17",
          30696
        ],
        [
          "pvt-network",
          "2026-05-20",
          7674
        ],
        [
          "pvt-network",
          "2026-05-21",
          7674
        ],
        [
          "pvt-network",
          "2026-05-22",
          7674
        ],
        [
          "pvt-network",
          "2026-05-23",
          15348
        ],
        [
          "pvt-network",
          "2026-05-24",
          15348
        ],
        [
          "pvt-network",
          "2026-05-25",
          15348
        ],
        [
          "pvt-network",
          "2026-05-26",
          7674
        ],
        [
          "pvt-network",
          "2026-05-27",
          7674
        ],
        [
          "pvt-network",
          "2026-05-28",
          23022
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Date bucket.",
            "name": "timestamp_date",
            "type": "DATE"
          },
          {
            "description": "Distribution channel (pvt-network, partner, public, etc.).",
            "name": "channel",
            "type": "STRING"
          },
          {
            "description": "Sum of workspace active actions on this date.",
            "name": "action_value",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Distribution - Active Workspaces - Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"active_workspaces","resource":"api_distribution","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Distribution - Active Workspaces - Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Distribution - Active Workspaces - Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Distribution - Active Workspaces - Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Distribution - Active Workspaces - Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Distribution - Active Workspaces - Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Distribution - Active Workspaces - Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Distribution - Active Workspaces - Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Distribution - Active Workspaces - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          31,
          3.3333333333333,
          "increase"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Distinct active workspace count across all distribution channels.",
            "name": "entity_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change vs previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "increase | decrease | no_change | new_data",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Distribution - Active Workspaces - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"active_workspaces","resource":"api_distribution","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Distribution - Active Workspaces - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Distribution - Active Workspaces - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Distribution - Active Workspaces - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Distribution - Active Workspaces - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Distribution - Active Workspaces - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Distribution - Active Workspaces - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Distribution - Active Workspaces - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_distribution&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Production - Flow Runs - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 3,
        "offset": 0,
        "total": 7
      },
      "rows": [
        [
          "688a38fee455890013be4293",
          "New flow module",
          2374
        ],
        [
          "688a162be455890013be4242",
          "Generate personalized greeting response",
          2374
        ],
        [
          "68b01c90ab62a6001365f3b1",
          "Payment Flow",
          2374
        ],
        [
          "69f3a8fe43af796d09399272",
          "Test",
          1966
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Flow entity identifier.",
            "name": "entity_id",
            "type": "STRING"
          },
          {
            "description": "Resolved flow display name.",
            "name": "entity_name",
            "type": "STRING"
          },
          {
            "description": "Sum of flow execution actions for this flow.",
            "name": "action_value",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Production - Flow Runs - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"4","metrics":"flow_executions","offset":"0","resource":"api_production","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Production - Flow Runs - Detailed
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=4&metrics=flow_executions&offset=0&resource=api_production&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Production - Flow Runs - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=4&metrics=flow_executions&offset=0&resource=api_production&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Production - Flow Runs - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=4&metrics=flow_executions&offset=0&resource=api_production&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Production - Flow Runs - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=4&metrics=flow_executions&offset=0&resource=api_production&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Production - Flow Runs - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=4&metrics=flow_executions&offset=0&resource=api_production&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Production - Flow Runs - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=4&metrics=flow_executions&offset=0&resource=api_production&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Production - Flow Runs - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=4&metrics=flow_executions&offset=0&resource=api_production&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Production - Flow Runs - Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-05-11",
          1966
        ],
        [
          "2026-05-15",
          1966
        ],
        [
          "2026-05-17",
          1966
        ],
        [
          "2026-05-19",
          408
        ],
        [
          "2026-05-20",
          408
        ],
        [
          "2026-05-21",
          1966
        ],
        [
          "2026-05-24",
          408
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Date bucket.",
            "name": "timestamp_date",
            "type": "DATE"
          },
          {
            "description": "Sum of flow execution actions on this date.",
            "name": "action_value",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Production - Flow Runs - Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"flow_executions","resource":"api_production","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Production - Flow Runs - Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Production - Flow Runs - Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Production - Flow Runs - Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Production - Flow Runs - Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Production - Flow Runs - Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Production - Flow Runs - Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Production - Flow Runs - Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Production - Flow Runs - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          4,
          100,
          "increase"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Distinct production flow count for the current period.",
            "name": "entity_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change vs previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "increase | decrease | no_change | new_data",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Production - Flow Runs - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"flow_executions","resource":"api_production","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Production - Flow Runs - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Production - Flow Runs - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Production - Flow Runs - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Production - Flow Runs - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Production - Flow Runs - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Production - Flow Runs - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Production - Flow Runs - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=flow_executions&resource=api_production&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Production - Monitor Runs - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 5,
        "offset": 0,
        "total": 6
      },
      "rows": [
        [
          "d80999e1-f3bb-468f-8c7d-acc215276f5f",
          "Usage Monitor",
          408
        ],
        [
          "98e7e8d7-1335-4bf3-bcdf-e72cf354690c",
          "Integration Testing",
          408
        ],
        [
          "243f42a3-81d8-42ab-9bb6-5a88f7e99362",
          "Uptime Monitor",
          408
        ],
        [
          "08fa842a-73ab-4e8c-b8aa-2bd681cd0c18",
          "API",
          408
        ],
        [
          "64b9d758-a81a-4bd7-aeae-54542ece5424",
          "Testing",
          408
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Monitor entity identifier.",
            "name": "entity_id",
            "type": "STRING"
          },
          {
            "description": "Resolved monitor display name.",
            "name": "entity_name",
            "type": "STRING"
          },
          {
            "description": "Sum of monitor run actions for this monitor.",
            "name": "action_value",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Production - Monitor Runs - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"5","metrics":"monitor_runs","offset":"0","resource":"api_production","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Production - Monitor Runs - Detailed
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=monitor_runs&offset=0&resource=api_production&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Production - Monitor Runs - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=monitor_runs&offset=0&resource=api_production&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Production - Monitor Runs - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=monitor_runs&offset=0&resource=api_production&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Production - Monitor Runs - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=monitor_runs&offset=0&resource=api_production&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Production - Monitor Runs - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=monitor_runs&offset=0&resource=api_production&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Production - Monitor Runs - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=monitor_runs&offset=0&resource=api_production&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Production - Monitor Runs - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=monitor_runs&offset=0&resource=api_production&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Production - Monitor Runs - Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-05-06",
          408
        ],
        [
          "2026-05-07",
          408
        ],
        [
          "2026-05-11",
          408
        ],
        [
          "2026-05-18",
          408
        ],
        [
          "2026-05-22",
          408
        ],
        [
          "2026-05-25",
          408
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Date bucket.",
            "name": "timestamp_date",
            "type": "DATE"
          },
          {
            "description": "Sum of monitor run actions on this date.",
            "name": "action_value",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Production - Monitor Runs - Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"monitor_runs","resource":"api_production","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Production - Monitor Runs - Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Production - Monitor Runs - Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Production - Monitor Runs - Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Production - Monitor Runs - Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Production - Monitor Runs - Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Production - Monitor Runs - Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Production - Monitor Runs - Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Production - Monitor Runs - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          6,
          20,
          "increase"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Distinct entity count for the current period.",
            "name": "entity_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change vs previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "increase | decrease | no_change | new_data",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Production - Monitor Runs - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"monitor_runs","resource":"api_production","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Production - Monitor Runs - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Production - Monitor Runs - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Production - Monitor Runs - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Production - Monitor Runs - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Production - Monitor Runs - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Production - Monitor Runs - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Production - Monitor Runs - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=monitor_runs&resource=api_production&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Testing - Performance Test Runs - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": false,
        "limit": 5,
        "offset": 0,
        "total": 94
      },
      "rows": [
        [
          "12345678-a06b31a7-8bf7-4bda-a6ec-f364d76cb9b5",
          "New Collection",
          1046
        ],
        [
          "12345678-0c0905f9-caf8-47f0-a941-18a6a2a0ddd7",
          "Demo Testing",
          1046
        ],
        [
          "56781234-1cf19e91-39bc-470f-a671-4dd6b3eff72b",
          "Testing",
          1046
        ],
        [
          "43215678-281f1bfb-e2fd-4dbf-86df-8190bcef8095",
          "New Collection",
          1046
        ],
        [
          "12345678-2cde66bf-204a-4c83-84cb-cf61eba169b8",
          "API Testing",
          1046
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Collection entity identifier.",
            "name": "entity_id",
            "type": "STRING"
          },
          {
            "description": "Resolved collection display name.",
            "name": "entity_name",
            "type": "STRING"
          },
          {
            "description": "Total test runs in the current period.",
            "name": "run_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Testing - Performance Test Runs - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"5","metrics":"performance_test_runs","offset":"0","resource":"api_testing","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Testing - Performance Test Runs - Detailed
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=performance_test_runs&offset=0&resource=api_testing&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Testing - Performance Test Runs - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=performance_test_runs&offset=0&resource=api_testing&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Testing - Performance Test Runs - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=performance_test_runs&offset=0&resource=api_testing&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Testing - Performance Test Runs - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=performance_test_runs&offset=0&resource=api_testing&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Testing - Performance Test Runs - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=performance_test_runs&offset=0&resource=api_testing&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Testing - Performance Test Runs - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=performance_test_runs&offset=0&resource=api_testing&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Testing - Performance Test Runs - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=performance_test_runs&offset=0&resource=api_testing&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Testing - Performance Test Runs - Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-05-06",
          "manual",
          1046
        ],
        [
          "2026-05-06",
          "performance",
          1046
        ],
        [
          "2026-05-07",
          "manual",
          523
        ],
        [
          "2026-05-07",
          "performance",
          523
        ],
        [
          "2026-05-08",
          "manual",
          1046
        ],
        [
          "2026-05-08",
          "performance",
          1046
        ],
        [
          "2026-05-09",
          "manual",
          2092
        ],
        [
          "2026-05-09",
          "performance",
          2092
        ],
        [
          "2026-05-10",
          "manual",
          523
        ],
        [
          "2026-05-10",
          "performance",
          523
        ],
        [
          "2026-05-11",
          "manual",
          523
        ],
        [
          "2026-05-11",
          "performance",
          523
        ],
        [
          "2026-05-12",
          "manual",
          1046
        ],
        [
          "2026-05-12",
          "performance",
          1046
        ],
        [
          "2026-05-13",
          "manual",
          2092
        ],
        [
          "2026-05-13",
          "performance",
          2092
        ],
        [
          "2026-05-15",
          "manual",
          2615
        ],
        [
          "2026-05-15",
          "performance",
          2615
        ],
        [
          "2026-05-16",
          "manual",
          523
        ],
        [
          "2026-05-16",
          "performance",
          523
        ],
        [
          "2026-05-17",
          "manual",
          1046
        ],
        [
          "2026-05-17",
          "performance",
          1046
        ],
        [
          "2026-05-19",
          "manual",
          1569
        ],
        [
          "2026-05-19",
          "performance",
          1569
        ],
        [
          "2026-05-20",
          "manual",
          1046
        ],
        [
          "2026-05-20",
          "performance",
          1046
        ],
        [
          "2026-05-21",
          "manual",
          1046
        ],
        [
          "2026-05-21",
          "performance",
          1046
        ],
        [
          "2026-05-22",
          "manual",
          2092
        ],
        [
          "2026-05-22",
          "performance",
          2092
        ],
        [
          "2026-05-24",
          "manual",
          1046
        ],
        [
          "2026-05-24",
          "performance",
          1046
        ],
        [
          "2026-05-25",
          "manual",
          1569
        ],
        [
          "2026-05-25",
          "performance",
          1569
        ],
        [
          "2026-05-26",
          "manual",
          1569
        ],
        [
          "2026-05-26",
          "performance",
          1569
        ],
        [
          "2026-05-27",
          "manual",
          523
        ],
        [
          "2026-05-27",
          "performance",
          523
        ],
        [
          "2026-05-28",
          "manual",
          1046
        ],
        [
          "2026-05-28",
          "performance",
          1046
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date.",
            "format": "YYYY-MM-DD",
            "name": "timestamp_date",
            "type": "DATE"
          },
          {
            "description": "Run type (e.g. Performance Test).",
            "name": "type",
            "type": "STRING"
          },
          {
            "description": "Total test runs in the current period.",
            "name": "run_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Testing - Performance Test Runs - Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"performance_test_runs","resource":"api_testing","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Testing - Performance Test Runs - Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Testing - Performance Test Runs - Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Testing - Performance Test Runs - Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Testing - Performance Test Runs - Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Testing - Performance Test Runs - Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Testing - Performance Test Runs - Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Testing - Performance Test Runs - Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Testing - Performance Test Runs - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          49162,
          -14.034412813877,
          "decrease"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Total test runs in the current period.",
            "name": "run_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change in run count vs the previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "Direction of change (increase / decrease / new_data).",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Testing - Performance Test Runs - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"performance_test_runs","resource":"api_testing","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Testing - Performance Test Runs - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Testing - Performance Test Runs - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Testing - Performance Test Runs - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Testing - Performance Test Runs - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Testing - Performance Test Runs - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Testing - Performance Test Runs - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Testing - Performance Test Runs - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=performance_test_runs&resource=api_testing&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Testing - Functional Test Runs - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 5,
        "offset": 0,
        "total": 2092
      },
      "rows": [
        [
          "56781234-f92420a2-0dcb-44f3-b095-97acc0a9fd47",
          "New Collection",
          12552
        ],
        [
          "43215678-06e27c7f-0804-40a8-a18c-1df5f87b47e6",
          "New Collection",
          23012
        ],
        [
          "12345678-097c0264-2e8a-4a2c-8146-bf205664f272",
          "New Collection",
          23012
        ],
        [
          "12345678-0c0905f9-caf8-47f0-a941-18a6a2a0ddd7",
          "Demo Test",
          23012
        ],
        [
          "43215678-0ff97bf1-e18e-4261-83fc-f29b749099b5",
          "New Collection",
          23012
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Collection entity identifier.",
            "name": "entity_id",
            "type": "STRING"
          },
          {
            "description": "Resolved collection display name.",
            "name": "entity_name",
            "type": "STRING"
          },
          {
            "description": "Total test runs in the current period.",
            "name": "run_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Testing - Functional Test Runs - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","limit":"5","metrics":"functional_test_runs","offset":"0","resource":"api_testing","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Testing - Functional Test Runs - Detailed
const url = 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=functional_test_runs&offset=0&resource=api_testing&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Testing - Functional Test Runs - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=functional_test_runs&offset=0&resource=api_testing&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Testing - Functional Test Runs - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=functional_test_runs&offset=0&resource=api_testing&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Testing - Functional Test Runs - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=functional_test_runs&offset=0&resource=api_testing&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Testing - Functional Test Runs - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=functional_test_runs&offset=0&resource=api_testing&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Testing - Functional Test Runs - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=functional_test_runs&offset=0&resource=api_testing&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Testing - Functional Test Runs - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&limit=5&metrics=functional_test_runs&offset=0&resource=api_testing&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Testing - Functional Test Runs - Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-05-06",
          "CI/CD",
          32426
        ],
        [
          "2026-05-06",
          "CLI",
          16213
        ],
        [
          "2026-05-06",
          "manual",
          523
        ],
        [
          "2026-05-06",
          "scheduled",
          5230
        ],
        [
          "2026-05-07",
          "CI/CD",
          35564
        ],
        [
          "2026-05-07",
          "CLI",
          17782
        ],
        [
          "2026-05-07",
          "manual",
          2092
        ],
        [
          "2026-05-07",
          "scheduled",
          5230
        ],
        [
          "2026-05-09",
          "CI/CD",
          26150
        ],
        [
          "2026-05-09",
          "CLI",
          13075
        ],
        [
          "2026-05-09",
          "manual",
          523
        ],
        [
          "2026-05-09",
          "scheduled",
          4184
        ],
        [
          "2026-05-10",
          "CI/CD",
          53346
        ],
        [
          "2026-05-10",
          "CLI",
          26673
        ],
        [
          "2026-05-10",
          "manual",
          1569
        ],
        [
          "2026-05-10",
          "scheduled",
          8368
        ],
        [
          "2026-05-11",
          "CI/CD",
          40794
        ],
        [
          "2026-05-11",
          "CLI",
          20397
        ],
        [
          "2026-05-11",
          "manual",
          1569
        ],
        [
          "2026-05-11",
          "scheduled",
          6276
        ],
        [
          "2026-05-12",
          "CI/CD",
          32426
        ],
        [
          "2026-05-12",
          "CLI",
          16213
        ],
        [
          "2026-05-12",
          "manual",
          523
        ],
        [
          "2026-05-12",
          "scheduled",
          5230
        ],
        [
          "2026-05-13",
          "CI/CD",
          19874
        ],
        [
          "2026-05-13",
          "CLI",
          9937
        ],
        [
          "2026-05-13",
          "manual",
          523
        ],
        [
          "2026-05-13",
          "scheduled",
          3138
        ],
        [
          "2026-05-14",
          "CI/CD",
          27196
        ],
        [
          "2026-05-14",
          "CLI",
          13598
        ],
        [
          "2026-05-14",
          "manual",
          1046
        ],
        [
          "2026-05-14",
          "scheduled",
          4184
        ],
        [
          "2026-05-15",
          "CI/CD",
          28242
        ],
        [
          "2026-05-15",
          "CLI",
          14121
        ],
        [
          "2026-05-15",
          "manual",
          1569
        ],
        [
          "2026-05-15",
          "scheduled",
          4184
        ],
        [
          "2026-05-16",
          "CI/CD",
          20920
        ],
        [
          "2026-05-16",
          "CLI",
          10460
        ],
        [
          "2026-05-16",
          "manual",
          1046
        ],
        [
          "2026-05-16",
          "scheduled",
          3138
        ],
        [
          "2026-05-17",
          "CI/CD",
          40794
        ],
        [
          "2026-05-17",
          "CLI",
          20397
        ],
        [
          "2026-05-17",
          "manual",
          1569
        ],
        [
          "2026-05-17",
          "scheduled",
          6276
        ],
        [
          "2026-05-18",
          "CI/CD",
          12552
        ],
        [
          "2026-05-18",
          "CLI",
          6276
        ],
        [
          "2026-05-18",
          "scheduled",
          2092
        ],
        [
          "2026-05-19",
          "CI/CD",
          42886
        ],
        [
          "2026-05-19",
          "CLI",
          21443
        ],
        [
          "2026-05-19",
          "manual",
          2615
        ],
        [
          "2026-05-19",
          "scheduled",
          6276
        ],
        [
          "2026-05-20",
          "CI/CD",
          28242
        ],
        [
          "2026-05-20",
          "CLI",
          14121
        ],
        [
          "2026-05-20",
          "manual",
          1569
        ],
        [
          "2026-05-20",
          "scheduled",
          4184
        ],
        [
          "2026-05-21",
          "CI/CD",
          13598
        ],
        [
          "2026-05-21",
          "CLI",
          6799
        ],
        [
          "2026-05-21",
          "manual",
          523
        ],
        [
          "2026-05-21",
          "scheduled",
          2092
        ],
        [
          "2026-05-22",
          "CI/CD",
          13598
        ],
        [
          "2026-05-22",
          "CLI",
          6799
        ],
        [
          "2026-05-22",
          "manual",
          523
        ],
        [
          "2026-05-22",
          "scheduled",
          2092
        ],
        [
          "2026-05-23",
          "CI/CD",
          41840
        ],
        [
          "2026-05-23",
          "CLI",
          20920
        ],
        [
          "2026-05-23",
          "manual",
          2092
        ],
        [
          "2026-05-23",
          "scheduled",
          6276
        ],
        [
          "2026-05-24",
          "CI/CD",
          12552
        ],
        [
          "2026-05-24",
          "CLI",
          6276
        ],
        [
          "2026-05-24",
          "scheduled",
          2092
        ],
        [
          "2026-05-25",
          "CI/CD",
          34518
        ],
        [
          "2026-05-25",
          "CLI",
          17259
        ],
        [
          "2026-05-25",
          "manual",
          1569
        ],
        [
          "2026-05-25",
          "scheduled",
          5230
        ],
        [
          "2026-05-26",
          "CI/CD",
          39748
        ],
        [
          "2026-05-26",
          "CLI",
          19874
        ],
        [
          "2026-05-26",
          "manual",
          1046
        ],
        [
          "2026-05-26",
          "scheduled",
          6276
        ],
        [
          "2026-05-27",
          "CI/CD",
          20920
        ],
        [
          "2026-05-27",
          "CLI",
          10460
        ],
        [
          "2026-05-27",
          "manual",
          1046
        ],
        [
          "2026-05-27",
          "scheduled",
          3138
        ],
        [
          "2026-05-28",
          "CI/CD",
          28242
        ],
        [
          "2026-05-28",
          "CLI",
          14121
        ],
        [
          "2026-05-28",
          "manual",
          1569
        ],
        [
          "2026-05-28",
          "scheduled",
          4184
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date.",
            "format": "YYYY-MM-DD",
            "name": "timestamp_date",
            "type": "DATE"
          },
          {
            "description": "Run type (e.g. Manual, Scheduled runs, Postman CLI, CI/CD, etc.).",
            "name": "type",
            "type": "STRING"
          },
          {
            "description": "Total test runs in the current period.",
            "name": "run_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Testing - Functional Test Runs - Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"functional_test_runs","resource":"api_testing","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Testing - Functional Test Runs - Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Testing - Functional Test Runs - Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Testing - Functional Test Runs - Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Testing - Functional Test Runs - Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Testing - Functional Test Runs - Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Testing - Functional Test Runs - Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Testing - Functional Test Runs - Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Testing - Functional Test Runs - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          1094116,
          -22.061962006742,
          "decrease"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Total test runs in the current period.",
            "name": "run_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change in run count vs the previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "Direction of change (increase / decrease / new_data).",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Testing - Functional Test Runs - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"functional_test_runs","resource":"api_testing","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Testing - Functional Test Runs - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Testing - Functional Test Runs - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Testing - Functional Test Runs - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Testing - Functional Test Runs - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Testing - Functional Test Runs - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Testing - Functional Test Runs - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Testing - Functional Test Runs - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=functional_test_runs&resource=api_testing&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Testing - Runs - Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "collection-runner",
          "2026-05-06",
          54392
        ],
        [
          "collection-runner",
          "2026-05-07",
          60668
        ],
        [
          "collection-runner",
          "2026-05-09",
          43932
        ],
        [
          "collection-runner",
          "2026-05-10",
          89956
        ],
        [
          "collection-runner",
          "2026-05-11",
          69036
        ],
        [
          "collection-runner",
          "2026-05-12",
          54392
        ],
        [
          "collection-runner",
          "2026-05-13",
          33472
        ],
        [
          "collection-runner",
          "2026-05-14",
          46024
        ],
        [
          "collection-runner",
          "2026-05-15",
          48116
        ],
        [
          "collection-runner",
          "2026-05-16",
          35564
        ],
        [
          "collection-runner",
          "2026-05-17",
          69036
        ],
        [
          "collection-runner",
          "2026-05-18",
          20920
        ],
        [
          "collection-runner",
          "2026-05-19",
          73220
        ],
        [
          "collection-runner",
          "2026-05-20",
          48116
        ],
        [
          "collection-runner",
          "2026-05-21",
          23012
        ],
        [
          "collection-runner",
          "2026-05-22",
          23012
        ],
        [
          "collection-runner",
          "2026-05-23",
          71128
        ],
        [
          "collection-runner",
          "2026-05-24",
          20920
        ],
        [
          "collection-runner",
          "2026-05-25",
          58576
        ],
        [
          "collection-runner",
          "2026-05-26",
          66944
        ],
        [
          "collection-runner",
          "2026-05-27",
          35564
        ],
        [
          "collection-runner",
          "2026-05-28",
          48116
        ],
        [
          "performance-test",
          "2026-05-06",
          2092
        ],
        [
          "performance-test",
          "2026-05-07",
          1046
        ],
        [
          "performance-test",
          "2026-05-08",
          2092
        ],
        [
          "performance-test",
          "2026-05-09",
          4184
        ],
        [
          "performance-test",
          "2026-05-10",
          1046
        ],
        [
          "performance-test",
          "2026-05-11",
          1046
        ],
        [
          "performance-test",
          "2026-05-12",
          2092
        ],
        [
          "performance-test",
          "2026-05-13",
          4184
        ],
        [
          "performance-test",
          "2026-05-15",
          5230
        ],
        [
          "performance-test",
          "2026-05-16",
          1046
        ],
        [
          "performance-test",
          "2026-05-17",
          2092
        ],
        [
          "performance-test",
          "2026-05-19",
          3138
        ],
        [
          "performance-test",
          "2026-05-20",
          2092
        ],
        [
          "performance-test",
          "2026-05-21",
          2092
        ],
        [
          "performance-test",
          "2026-05-22",
          4184
        ],
        [
          "performance-test",
          "2026-05-24",
          2092
        ],
        [
          "performance-test",
          "2026-05-25",
          3138
        ],
        [
          "performance-test",
          "2026-05-26",
          3138
        ],
        [
          "performance-test",
          "2026-05-27",
          1046
        ],
        [
          "performance-test",
          "2026-05-28",
          2092
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Date Bucket.",
            "format": "YYYY-MM-DD",
            "name": "timestamp_date",
            "type": "DATE"
          },
          {
            "description": "Total test runs in the current period.",
            "name": "run_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Testing - Runs - Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"runs","resource":"api_testing","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Testing - Runs - Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Testing - Runs - Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Testing - Runs - Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Testing - Runs - Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Testing - Runs - Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Testing - Runs - Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Testing - Runs - Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Testing - Runs - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          1143278,
          -21.747742666747,
          "decrease"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Total test runs in the current period.",
            "name": "run_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change vs previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "increase | decrease | no_change | new_data",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Testing - Runs - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"runs","resource":"api_testing","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Testing - Runs - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Testing - Runs - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Testing - Runs - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Testing - Runs - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Testing - Runs - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Testing - Runs - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Testing - Runs - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=runs&resource=api_testing&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Development - Top Entities - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 100,
        "offset": 0,
        "total": 5
      },
      "rows": [
        [
          "collection",
          "12345678-339e1dad-f484-423d-933a-ab48a0155fb3",
          "Mock API Fork",
          10602
        ],
        [
          "collection",
          "43215678-f92420a2-0dcb-44f3-b095-97acc0a9fd47",
          "New Collection",
          9234
        ],
        [
          "collection",
          "56781234-366d9d8d-0643-4ca9-b178-a2c0c2b1bb4e",
          "Test",
          7578
        ],
        [
          "collection",
          "12345678-59de5a7b-ec51-49c7-b434-d1ac178e83cc",
          "API Test",
          4092
        ],
        [
          "collection",
          "12345678-62308792-93e7-414a-ad9d-be5e4aea33b2",
          "Live Session",
          3272
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Type of entity. eg: collection, flow, mock, specification, sdk",
            "name": "entity_type",
            "type": "STRING"
          },
          {
            "description": "Unique identifier of the entity. eg: collection_id, flow_id, mock_id, specification_id, sdk_id.",
            "name": "entity_id",
            "type": "STRING"
          },
          {
            "description": "Resolved display name of the entity.",
            "name": "entity_name",
            "type": "STRING"
          },
          {
            "description": "Sum of actions performed on the entity.",
            "name": "action_value",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Development - Top Entities - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","entityType":"collection","limit":"5","metrics":"top_entities","offset":"0","resource":"api_development","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Development - Top Entities - Detailed
const url = 'https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=top_entities&offset=0&resource=api_development&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Development - Top Entities - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=top_entities&offset=0&resource=api_development&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Development - Top Entities - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=top_entities&offset=0&resource=api_development&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Development - Top Entities - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=top_entities&offset=0&resource=api_development&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Development - Top Entities - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=top_entities&offset=0&resource=api_development&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Development - Top Entities - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=top_entities&offset=0&resource=api_development&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Development - Top Entities - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=top_entities&offset=0&resource=api_development&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Development - Entity Activity - Detailed

**Response**

```json
{
  "data": {
    "summary": {
      "pagination": {
        "has_more": true,
        "limit": 5,
        "offset": 0,
        "total": 18
      },
      "rows": [
        [
          "collection",
          "12345678-366d9d8d-0643-4ca9-b178-a2c0c2b1bb4e",
          "Testing",
          7578
        ],
        [
          "collection",
          "56781234-59de5a7b-ec51-49c7-b434-d1ac178e83cc",
          "API Test",
          4092
        ],
        [
          "collection",
          "12345678-62308792-93e7-414a-ad9d-be5e4aea33b2",
          "Live Session",
          3272
        ],
        [
          "collection",
          "43215678-0a87e0ba-0b84-44fd-b72f-b8eaf830aa58",
          "API network",
          2238
        ],
        [
          "collection",
          "12345678-e290f053-c047-45e9-a25d-9030f1d6997c",
          "Feature Usage colleciton",
          2160
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Type of entity. eg: collection, flow, mock, specification, sdk",
            "name": "entity_type",
            "type": "STRING"
          },
          {
            "description": "Unique identifier of the entity. eg: collection_id, flow_id, mock_id, specification_id, sdk_id",
            "name": "entity_id",
            "type": "STRING"
          },
          {
            "description": "Display name of the entity (resolved from view_entity_id_name_mapping).",
            "name": "entity_name",
            "type": "STRING"
          },
          {
            "description": "Total number of actions performed on the entity.",
            "name": "action_value",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Development - Entity Activity - Detailed
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","entityType":"collection","limit":"5","metrics":"entity_activity","offset":"0","resource":"api_development","view":"detailed"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Development - Entity Activity - Detailed
const url = 'https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=entity_activity&offset=0&resource=api_development&view=detailed';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Development - Entity Activity - Detailed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=entity_activity&offset=0&resource=api_development&view=detailed"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Development - Entity Activity - Detailed
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=entity_activity&offset=0&resource=api_development&view=detailed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Development - Entity Activity - Detailed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=entity_activity&offset=0&resource=api_development&view=detailed")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Development - Entity Activity - Detailed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=entity_activity&offset=0&resource=api_development&view=detailed', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Development - Entity Activity - Detailed
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=entity_activity&offset=0&resource=api_development&view=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Development - Entity Activity - Detailed
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&entityType=collection&limit=5&metrics=entity_activity&offset=0&resource=api_development&view=detailed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Development - Entity Activity - Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-01-01",
          1
        ],
        [
          "2026-02-01",
          3
        ],
        [
          "2026-03-01",
          5
        ],
        [
          "2026-04-01",
          5
        ],
        [
          "2026-05-01",
          4
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date.",
            "format": "YYYY-MM-DD",
            "name": "timestamp_date",
            "type": "DATE"
          },
          {
            "description": "Distinct number of active entities of the requested type on this date.",
            "name": "entity_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Development - Entity Activity - Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","entityType":"collection","metrics":"entity_activity","resource":"api_development","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Development - Entity Activity - Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Development - Entity Activity - Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Development - Entity Activity - Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Development - Entity Activity - Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Development - Entity Activity - Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Development - Entity Activity - Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Development - Entity Activity - Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Development - Entity Activity - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          7,
          16.666666666666664,
          "increase"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Number of distinct active entities of the requested type in the current period.",
            "name": "entity_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change in entity count vs the previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "Direction of change (increase / decrease / new_data).",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Development - Entity Activity - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","entityType":"collection","metrics":"entity_activity","resource":"api_development","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Development - Entity Activity - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Development - Entity Activity - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Development - Entity Activity - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Development - Entity Activity - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Development - Entity Activity - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Development - Entity Activity - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Development - Entity Activity - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&entityType=collection&metrics=entity_activity&resource=api_development&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Development - Active Workspaces - Trend

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          "2026-05-06",
          11
        ],
        [
          "2026-05-07",
          11
        ],
        [
          "2026-05-08",
          11
        ],
        [
          "2026-05-09",
          10
        ],
        [
          "2026-05-10",
          11
        ],
        [
          "2026-05-11",
          12
        ],
        [
          "2026-05-12",
          10
        ],
        [
          "2026-05-13",
          10
        ],
        [
          "2026-05-14",
          10
        ],
        [
          "2026-05-15",
          12
        ],
        [
          "2026-05-16",
          10
        ],
        [
          "2026-05-17",
          11
        ],
        [
          "2026-05-18",
          10
        ],
        [
          "2026-05-19",
          11
        ],
        [
          "2026-05-20",
          11
        ],
        [
          "2026-05-21",
          11
        ],
        [
          "2026-05-22",
          12
        ],
        [
          "2026-05-23",
          11
        ],
        [
          "2026-05-24",
          11
        ],
        [
          "2026-05-25",
          10
        ],
        [
          "2026-05-26",
          11
        ],
        [
          "2026-05-27",
          10
        ],
        [
          "2026-05-28",
          11
        ],
        [
          "2026-05-29",
          11
        ],
        [
          "2026-05-30",
          12
        ],
        [
          "2026-05-31",
          11
        ],
        [
          "2026-06-01",
          10
        ],
        [
          "2026-06-02",
          12
        ],
        [
          "2026-06-03",
          12
        ],
        [
          "2026-06-04",
          12
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Reporting date.",
            "format": "YYYY-MM-DD",
            "name": "timestamp_date",
            "type": "DATE"
          },
          {
            "description": "Distinct number of workspaces with API development activity on this date.",
            "name": "workspace_count",
            "type": "INTEGER"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Development - Active Workspaces - Trend
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"active_workspaces","resource":"api_development","view":"trend"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Development - Active Workspaces - Trend
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=trend';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Development - Active Workspaces - Trend
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=trend"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Development - Active Workspaces - Trend
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=trend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Development - Active Workspaces - Trend
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=trend")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Development - Active Workspaces - Trend
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=trend', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Development - Active Workspaces - Trend
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=trend");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Development - Active Workspaces - Trend
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=trend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### API Development - Active Workspaces - Summary

**Response**

```json
{
  "data": {
    "summary": {
      "rows": [
        [
          13,
          0,
          "no_change"
        ]
      ],
      "schema": {
        "columns": [
          {
            "description": "Number of workspaces with API development activity in the current period.",
            "name": "workspace_count",
            "type": "INTEGER"
          },
          {
            "description": "Percentage change in workspace count vs the previous period.",
            "name": "change_percentage",
            "type": "FLOAT"
          },
          {
            "description": "Direction of change (increase / decrease / new_data).",
            "name": "change_type",
            "type": "STRING"
          }
        ]
      }
    }
  }
}
```

**SDK Code**

```python API Development - Active Workspaces - Summary
import requests

url = "https://api.postman.com/analytics"

querystring = {"duration":"last_30_days","metrics":"active_workspaces","resource":"api_development","view":"summary"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript API Development - Active Workspaces - Summary
const url = 'https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=summary';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go API Development - Active Workspaces - Summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby API Development - Active Workspaces - Summary
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java API Development - Active Workspaces - Summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=summary")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php API Development - Active Workspaces - Summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=summary', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp API Development - Active Workspaces - Summary
using RestSharp;

var client = new RestClient("https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=summary");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift API Development - Active Workspaces - Summary
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/analytics?duration=last_30_days&metrics=active_workspaces&resource=api_development&view=summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```