--- title: API Reference for Label Studio short: API type: guide tier: all order: 401 order_enterprise: 401 meta_title: API Endpoints meta_description: API documentation for authenticating, listing data science projects, importing predictions and raw data and exporting annotated data, and user management. section: "Integrate & Extend" --- You can use the Label Studio API to import data for labeling, export annotations, set up machine learning with Label Studio, and sync tasks with cloud storage. See the [API reference documentation](https://api.labelstud.io/api-reference/introduction/getting-started) for further guidance and interactive examples. If you want to write Python scripts using the API, use the [Label Studio Python SDK](sdk.html). !!! info Tip For additional guidance on using our API, see [5 Tips and Tricks for Label Studio’s API and SDK](https://labelstud.io/blog/5-tips-and-tricks-for-label-studio-s-api-and-sdk/). ### Authenticate to the API You must retrieve your access token so that you can authenticate to the API. Whether you can create a token, and which types of tokens you can create, depends on your org settings. !!! note "API keys vs. Access tokens" In Label Studio, **"access tokens"** and **"API keys"** mean the same thing and are used interchangeably. There are two types of access tokens/API keys: **Personal Access Tokens (PATs)** and **Legacy Tokens**. You can read more about the differences between them here: [Access Tokens](access_tokens). #### Find your access token 1. Open Label Studio and click your user icon in the upper right. Select **Account & Settings**. 2. Select **Personal Access Token** or **Legacy Token** on the left. Depending on which one you select, you will need to either generate a new token or copy the one that is displayed. #### Authenticate HTTP API requests with a personal access token PATs use `'Authorization: Bearer '` when used with HTTP API requests, for example: ```bash curl -X