# Get the business profile

> Returns the business the token is scoped to. Companies include company_name and company_code; individual activities include first_name, last_name and individual_activity_id.

## GET /profile

Returns the business the token is scoped to. Companies include `company_name` and `company_code`;
individual activities include `first_name`, `last_name` and `individual_activity_id`.

### Request and responses

```json
{
  "servers": [
    {
      "url": "https://app.fsaskaita.lt/api",
      "description": "Production"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "operation": {
    "operationId": "getProfile",
    "description": "Returns the business the token is scoped to. Companies include `company_name` and `company_code`;\nindividual activities include `first_name`, `last_name` and `individual_activity_id`.",
    "summary": "Get the business profile",
    "tags": [
      "Profile"
    ],
    "responses": {
      "200": {
        "description": "`Profile`",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "$ref": "#/components/schemas/Profile"
                }
              },
              "required": [
                "data"
              ]
            }
          }
        }
      },
      "401": {
        "$ref": "#/components/responses/AuthenticationException"
      },
      "429": {
        "description": "Rate limit exceeded. The limit is 60 requests per minute per business, shared across all of its tokens. Wait `Retry-After` seconds before retrying.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ]
            }
          }
        },
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait before retrying.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Limit": {
            "description": "Requests allowed per minute.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Remaining": {
            "description": "Requests left in the current minute.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Reset": {
            "description": "Unix timestamp at which the window resets.",
            "schema": {
              "type": "integer"
            }
          }
        }
      }
    }
  },
  "securitySchemes": {
    "bearerAuth": {
      "type": "http",
      "description": "Business token created in the app under Settings, Integrations, API. The token is scoped to exactly one business, has no expiry and is shown only once. Send it as `Authorization: Bearer <token>` together with `Accept: application/json`.",
      "scheme": "bearer"
    }
  }
}
```

### Referenced components

```json
{
  "#/components/schemas/Profile": {
    "type": "object",
    "properties": {
      "business_id": {
        "type": "string",
        "format": "uuid"
      },
      "business_title": {
        "type": "string"
      },
      "business_type": {
        "$ref": "#/components/schemas/BusinessType"
      },
      "address": {
        "type": [
          "string",
          "null"
        ]
      },
      "vat_code": {
        "type": [
          "string",
          "null"
        ]
      },
      "company_name": {
        "type": [
          "string",
          "null"
        ],
        "description": "Present when the business is a company."
      },
      "company_code": {
        "type": [
          "string",
          "null"
        ],
        "description": "Present when the business is a company."
      },
      "individual_activity_id": {
        "type": [
          "string",
          "null"
        ],
        "description": "Present when `business_type` is `individual_activity`."
      },
      "first_name": {
        "type": [
          "string",
          "null"
        ],
        "description": "Present when `business_type` is `individual_activity`."
      },
      "last_name": {
        "type": [
          "string",
          "null"
        ],
        "description": "Present when `business_type` is `individual_activity`."
      }
    },
    "required": [
      "business_id",
      "business_title",
      "business_type",
      "address",
      "vat_code"
    ],
    "title": "Profile"
  },
  "#/components/schemas/BusinessType": {
    "type": "string",
    "description": "Every type except `individual_activity` is a company.\n",
    "enum": [
      "small_partnership",
      "individual_activity",
      "private_limited_liability_company",
      "sole_proprietorship",
      "public_institution",
      "association",
      "joint_stock_company"
    ],
    "title": "BusinessType"
  },
  "#/components/responses/AuthenticationException": {
    "description": "Unauthenticated",
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "message": {
              "type": "string",
              "description": "Error overview."
            }
          },
          "required": [
            "message"
          ]
        }
      }
    }
  }
}
```
