{
  "opencollection": "1.0.0",
  "info": {
    "name": "Structify account team API",
    "version": "0.1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "api_key",
      "value": "{{api_key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "team",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "team_create",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.structify.ai/team/create",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "team_accept_invitation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.structify.ai/team/invitations/accept",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "team_invitation_details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.structify.ai/team/invitations/details/:token",
            "params": [
              {
                "name": "token",
                "value": "",
                "type": "path",
                "description": "Invitation token"
              }
            ]
          }
        },
        {
          "info": {
            "name": "team_list",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.structify.ai/team/list",
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "team_get",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.structify.ai/team/:team_id",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "Team ID"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "team_update",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.structify.ai/team/:team_id",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "Team ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "team_credits_usage",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.structify.ai/team/:team_id/credits/usage",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "Team ID"
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "Start time inclusive (UTC)"
              },
              {
                "name": "end",
                "value": "",
                "type": "query",
                "description": "End time exclusive (UTC)"
              },
              {
                "name": "granularity",
                "value": "",
                "type": "query",
                "description": "hour | day | week | month"
              },
              {
                "name": "token",
                "value": "",
                "type": "query",
                "description": "Optional token ID to filter by"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "team_cancel_invitation",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.structify.ai/team/:team_id/invitations",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "Team ID"
              },
              {
                "name": "email",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "team_list_members",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.structify.ai/team/:team_id/members",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "Team ID"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "team_add_member",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.structify.ai/team/:team_id/members",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "Team ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "team_remove_member",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.structify.ai/team/:team_id/members/:user_id",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "Team ID"
              },
              {
                "name": "user_id",
                "value": "",
                "type": "path",
                "description": "User ID to remove"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "team_update_member_role",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.structify.ai/team/:team_id/members/:user_id/role",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "Team ID"
              },
              {
                "name": "user_id",
                "value": "",
                "type": "path",
                "description": "User ID whose role to update"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "team_select",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.structify.ai/team/:team_id/select",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "Team ID to select as the user's active team"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "api_key",
              "value": "{{api_key}}",
              "placement": "header"
            }
          }
        }
      ]
    }
  ],
  "bundled": true
}