{
  "url": "https://telipot.com/catalog/tasks/apollo.account.profile",
  "id": "apollo.account.profile",
  "name": "User and team the key acts as, with optional credit use",
  "provider": {
    "slug": "apollo",
    "name": "Apollo"
  },
  "capability": "account.profile",
  "platform": "account",
  "kind": "account",
  "tier": "core",
  "identity": "key",
  "identityLabel": "Your plan",
  "price": {
    "amount": "Free",
    "state": "free",
    "label": "Free",
    "detail": "Free from the tool",
    "type": "free"
  },
  "providers": 1,
  "retention": "standard",
  "runsOn": "free",
  "live": true,
  "summary": "Use the get current user profile endpoint to retrieve the authenticated profile of the person who owns the API key being used.",
  "method": "GET",
  "path": "/users/api_profile",
  "host": "https://api.apollo.io/api/v1",
  "docsUrl": "https://docs.apollo.io/reference/get-current-user-profile",
  "auth": {
    "scheme": "api_key",
    "label": "api_key · in header as x-api-key",
    "short": "api_key · x-api-key"
  },
  "scope": "own_account",
  "principal": "organization",
  "requiredScopes": [],
  "verification": {
    "state": "none",
    "label": "Not verified yet",
    "detail": "Not checked yet. We test with a real request before we mark it."
  },
  "input": [
    {
      "name": "include_credit_usage",
      "location": "queryParams",
      "type": "boolean",
      "required": false,
      "constraints": [
        "default false"
      ],
      "note": "Set true to add the user's and team's credit usage and remaining balances (lead, direct dial, export, AI and power-up credits)."
    }
  ],
  "sampleInput": {},
  "inputSchema": {
    "type": "object",
    "properties": {
      "include_credit_usage": {
        "type": "boolean",
        "description": "Set true to add the user's and team's credit usage and remaining balances (lead, direct dial, export, AI and power-up credits).",
        "default": false
      }
    },
    "additionalProperties": false
  },
  "output": [
    {
      "name": "id",
      "type": "string",
      "description": "The user the key acts as."
    },
    {
      "name": "team_id",
      "type": "string",
      "description": "The Apollo team the user belongs to."
    },
    {
      "name": "first_name",
      "type": "string"
    },
    {
      "name": "last_name",
      "type": "string"
    },
    {
      "name": "title",
      "type": "string"
    },
    {
      "name": "email",
      "type": "string"
    },
    {
      "name": "num_credits_remaining",
      "type": "integer",
      "description": "Only with include_credit_usage=true."
    },
    {
      "name": "effective_num_lead_credits",
      "type": "integer"
    },
    {
      "name": "num_lead_credits_used",
      "type": "integer"
    },
    {
      "name": "effective_num_direct_dial_credits",
      "type": "integer"
    },
    {
      "name": "num_direct_dial_credits_used",
      "type": "integer"
    },
    {
      "name": "effective_num_export_credits",
      "type": "integer"
    },
    {
      "name": "num_export_credits_used",
      "type": "integer"
    },
    {
      "name": "effective_num_ai_credits",
      "type": "integer"
    },
    {
      "name": "num_ai_credits_used",
      "type": "integer"
    },
    {
      "name": "effective_num_power_up_credits",
      "type": "integer"
    },
    {
      "name": "num_power_up_credits_used",
      "type": "integer"
    },
    {
      "name": "total_unified_credits_used",
      "type": "integer"
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string",
        "description": "The user the key acts as."
      },
      "team_id": {
        "type": "string",
        "description": "The Apollo team the user belongs to."
      },
      "first_name": {
        "type": "string"
      },
      "last_name": {
        "type": "string"
      },
      "title": {
        "type": "string"
      },
      "email": {
        "type": "string"
      },
      "num_credits_remaining": {
        "type": "integer",
        "description": "Only with include_credit_usage=true."
      },
      "effective_num_lead_credits": {
        "type": "integer"
      },
      "num_lead_credits_used": {
        "type": "integer"
      },
      "effective_num_direct_dial_credits": {
        "type": "integer"
      },
      "num_direct_dial_credits_used": {
        "type": "integer"
      },
      "effective_num_export_credits": {
        "type": "integer"
      },
      "num_export_credits_used": {
        "type": "integer"
      },
      "effective_num_ai_credits": {
        "type": "integer"
      },
      "num_ai_credits_used": {
        "type": "integer"
      },
      "effective_num_power_up_credits": {
        "type": "integer"
      },
      "num_power_up_credits_used": {
        "type": "integer"
      },
      "total_unified_credits_used": {
        "type": "integer"
      }
    }
  },
  "commands": {
    "mode": "inspect",
    "cli": "telipot inspect apollo.account.profile",
    "http": "curl https://api.telipot.com/v1/tasks/apollo.account.profile \\\n  -H \"Authorization: Bearer $TELIPOT_TOKEN\""
  },
  "siblings": []
}
