---
agentTools:
  projectIndex: https://nudgesecurity.readme.io/llms.txt
---

# Get an account

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Account": {
        "properties": {
          "app_id": {
            "type": "integer"
          },
          "auth_methods": {
            "items": {
              "$ref": "#/components/schemas/AuthMethod"
            },
            "type": "array"
          },
          "discovery_info": {
            "nullable": true,
            "type": "string"
          },
          "domain_canonical": {
            "nullable": true,
            "type": "string"
          },
          "fields": {
            "readOnly": true,
            "type": "array"
          },
          "first_account": {
            "nullable": true,
            "type": "boolean"
          },
          "first_date": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "has_oauth": {
            "enum": [
              "HAS_OAUTH_APPS",
              "NO_OAUTH_APPS",
              "UNKNOWN"
            ],
            "maxLength": 14,
            "nullable": true
          },
          "id": {
            "type": "integer"
          },
          "is_admin": {
            "nullable": true,
            "type": "boolean"
          },
          "labels": {
            "readOnly": true,
            "type": "array"
          },
          "last_billing_date": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "last_date": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "last_password_reset": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "metadata": {
            "$ref": "#/components/schemas/AccountMetadata"
          },
          "mfa_status": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "user_id": {
            "nullable": true,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "AccountMetadata": {
        "properties": {
          "user_email": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "AuthMethod": {
        "properties": {
          "auth_method_name": {
            "readOnly": true,
            "type": "string"
          },
          "auth_type": {
            "nullable": true,
            "type": "string"
          },
          "first_activity": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "last_activity": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "last_seen": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "mfa_status": {
            "nullable": true,
            "type": "string"
          },
          "provider_account_id": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "HTTPError": {
        "properties": {
          "detail": {
            "type": "object"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "description": "Authorization header containing the Nudge API Token",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Nudge API",
    "version": "1.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/api/1.0/accounts/{account_id}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                }
              }
            },
            "description": "Successful response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPError"
                }
              }
            },
            "description": "Authentication error"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPError"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get an account",
        "tags": [
          "Accounts"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.nudgesecurity.io"
    }
  ],
  "tags": [
    {
      "name": "Accounts"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 130,
      "2": 205,
      "3": 225,
      "4": 131,
      "5": 178,
      "6": 81,
      "7": 0,
      "8": 15,
      "9": 104,
      "10": 80,
      "11": 14
    }
  }
}
```