# Finding Your User & Project IDs

Every API request requires your `userId` and `projectId`. Here's how to find them.

## User ID

Your `userId` is the unique identifier for your Streampixel account.

**To find it:**

1. Log in to your [Streampixel Dashboard](https://dashboard.streampixel.io)
2. Click your **account name** in the top-right corner
3. Click the **"Copy User ID"** button
4. Your `userId` is now copied to your clipboard

{% hint style="info" %}
Your `userId` never changes. You can save it once and reuse it across all API calls.
{% endhint %}

## Project ID

Every project has a unique `projectId`. This is required for project-specific API calls like uploading builds or distributing files.

**To find it:**

1. Log in to your [Streampixel Dashboard](https://dashboard.streampixel.io)
2. Navigate to your project's detail page
3. Click the **Project ID** button to copy it

You can also find it in the URL:

```
https://dashboard.streampixel.io/projectdetail/67944b8a3f323be4b89a2272
                                               └─────── projectId ───────┘
```

{% hint style="warning" %}
Make sure to use the correct IDs in your API requests. Mismatched IDs will result in `401 Invalid User` or `404 Project not found` errors.
{% endhint %}

## Using in API Calls

Both IDs go in the JSON request body:

```json
{
  "apiKey": "your-api-key",
  "userId": "663d0a1b2c3e4f5a6b7c8d9e",
  "projectId": "67944b8a3f323be4b89a2272",
  "fileUrl": "https://storage.example.com/build.zip"
}
```
