{
  "info": {
    "_postman_id": "2237179a-58e6-4a2d-84e2-3c039902c90f",
    "name": "Amigo Account Metering API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T01:01:32.000Z",
    "updatedAt": "2026-07-28T01:01:32.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-2237179a-58e6-4a2d-84e2-3c039902c90f"
  },
  "item": [
    {
      "name": "v1",
      "item": [
        {
          "name": "{workspace_id}",
          "item": [
            {
              "name": "metering",
              "item": [
                {
                  "name": "emit",
                  "item": [
                    {
                      "name": "Emit Metering Event",
                      "id": "e6fec1b1-9234-4176-a47e-8cbc6c2270d1",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"event_type\": \"gn\",\n  \"metering_quantity\": \"<number>\",\n  \"metering_source\": \"production\",\n  \"effective_at\": \"<dateTime>\",\n  \"metering_unit\": \"<string>\",\n  \"metering_metadata\": {\n    \"esse_9\": true,\n    \"dolor_ec0\": -27143107.477005348\n  },\n  \"event_id\": \"<uuid>\"\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/v1/:workspace_id/metering/emit",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v1",
                            ":workspace_id",
                            "metering",
                            "emit"
                          ],
                          "variable": [
                            {
                              "id": "b201769c-8297-4030-924f-bb109f88e8e9",
                              "key": "workspace_id",
                              "value": "<uuid>",
                              "description": "(Required) "
                            }
                          ]
                        },
                        "description": "Emit one metering event for the calling workspace."
                      },
                      "response": [
                        {
                          "id": "9dce20a5-e8e8-44b0-9c3c-f43cd2d1abea",
                          "name": "Successful Response",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"event_type\": \"gn\",\n  \"metering_quantity\": \"<number>\",\n  \"metering_source\": \"production\",\n  \"effective_at\": \"<dateTime>\",\n  \"metering_unit\": \"<string>\",\n  \"metering_metadata\": {\n    \"esse_9\": true,\n    \"dolor_ec0\": -27143107.477005348\n  },\n  \"event_id\": \"<uuid>\"\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/v1/:workspace_id/metering/emit",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v1",
                                ":workspace_id",
                                "metering",
                                "emit"
                              ],
                              "variable": [
                                {
                                  "key": "workspace_id"
                                }
                              ]
                            }
                          },
                          "status": "Accepted",
                          "code": 202,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"status\": \"<string>\",\n  \"event_type\": \"<string>\"\n}",
                          "createdAt": "2026-07-28T01:01:33.000Z",
                          "updatedAt": "2026-07-28T01:01:33.000Z",
                          "uid": "35240-9dce20a5-e8e8-44b0-9c3c-f43cd2d1abea"
                        },
                        {
                          "id": "7a4bdf76-6e6a-49af-aa6a-78e0e51a6a13",
                          "name": "Validation Error",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"event_type\": \"gn\",\n  \"metering_quantity\": \"<number>\",\n  \"metering_source\": \"production\",\n  \"effective_at\": \"<dateTime>\",\n  \"metering_unit\": \"<string>\",\n  \"metering_metadata\": {\n    \"esse_9\": true,\n    \"dolor_ec0\": -27143107.477005348\n  },\n  \"event_id\": \"<uuid>\"\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/v1/:workspace_id/metering/emit",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v1",
                                ":workspace_id",
                                "metering",
                                "emit"
                              ],
                              "variable": [
                                {
                                  "key": "workspace_id"
                                }
                              ]
                            }
                          },
                          "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
                          "code": 422,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\",\n      \"input\": {\n        \"title\": \"Input\"\n      },\n      \"ctx\": {}\n    },\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\",\n      \"input\": {\n        \"title\": \"Input\"\n      },\n      \"ctx\": {}\n    }\n  ]\n}",
                          "createdAt": "2026-07-28T01:01:33.000Z",
                          "updatedAt": "2026-07-28T01:01:33.000Z",
                          "uid": "35240-7a4bdf76-6e6a-49af-aa6a-78e0e51a6a13"
                        }
                      ],
                      "createdAt": "2026-07-28T01:01:33.000Z",
                      "updatedAt": "2026-07-28T01:01:33.000Z",
                      "uid": "35240-e6fec1b1-9234-4176-a47e-8cbc6c2270d1"
                    }
                  ],
                  "id": "a7938375-23d7-4c8a-9431-2e697e41c6b8",
                  "createdAt": "2026-07-28T01:01:33.000Z",
                  "updatedAt": "2026-07-28T01:01:33.000Z",
                  "uid": "35240-a7938375-23d7-4c8a-9431-2e697e41c6b8"
                }
              ],
              "id": "caebcdc7-98fc-474b-9ffb-bb096dfb8d1d",
              "createdAt": "2026-07-28T01:01:33.000Z",
              "updatedAt": "2026-07-28T01:01:33.000Z",
              "uid": "35240-caebcdc7-98fc-474b-9ffb-bb096dfb8d1d"
            }
          ],
          "id": "87354594-7e6a-4ac2-bcd6-4ba249f3bb17",
          "createdAt": "2026-07-28T01:01:33.000Z",
          "updatedAt": "2026-07-28T01:01:33.000Z",
          "uid": "35240-87354594-7e6a-4ac2-bcd6-4ba249f3bb17"
        }
      ],
      "id": "42e1de5a-139e-4151-bff3-25dae18f0b2a",
      "createdAt": "2026-07-28T01:01:33.000Z",
      "updatedAt": "2026-07-28T01:01:33.000Z",
      "uid": "35240-42e1de5a-139e-4151-bff3-25dae18f0b2a"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.amigo.ai"
    }
  ]
}