{
  "opencollection": "1.0.0",
  "info": {
    "name": "v0 App agent user API",
    "version": "0"
  },
  "items": [
    {
      "info": {
        "name": "user",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get User",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.v0.dev/v1/user",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves information about the authenticated user, including their ID, name, email, and account metadata."
        },
        {
          "info": {
            "name": "Get Billing",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.v0.dev/v1/user/billing",
            "params": [
              {
                "name": "scope",
                "value": "",
                "type": "query",
                "description": "Filters billing data by a specific scope, such as a project ID or slug."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Fetches billing usage and quota information for the authenticated user. Can be scoped to a specific context (e.g. project or namespace)."
        },
        {
          "info": {
            "name": "Get Plan",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.v0.dev/v1/user/plan",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Returns the current subscription plan for the authenticated user, including tier details and feature limits."
        },
        {
          "info": {
            "name": "Get User Scopes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.v0.dev/v1/user/scopes",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves all accessible scopes for the authenticated user, such as personal workspaces or shared teams."
        },
        {
          "info": {
            "name": "Get User Activity",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.v0.dev/v1/user/activity",
            "params": [
              {
                "name": "year",
                "value": "",
                "type": "query",
                "description": "Optional year to filter activity data (e.g., \"2024\"). If not provided, returns the last 52 weeks of activity."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves the user's activity data showing message counts per day. Returns either the specified year or the last 52 weeks if no year is provided."
        },
        {
          "info": {
            "name": "Get User Activity Years",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.v0.dev/v1/user/activity-years",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves the years where the user has activity (sent messages). Returns an array of years in descending order (newest first)."
        },
        {
          "info": {
            "name": "user.preferences.find",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.v0.dev/v1/user/preferences",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "user.preferences.create",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.v0.dev/v1/user/preferences",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "Redeem a usage code",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.v0.dev/v1/user/billing/redeem-usage-code",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Redeems a usage code and credits the active scope using Copper as the source of truth."
        }
      ]
    }
  ],
  "bundled": true
}