> ## Documentation Index
> Fetch the complete documentation index at: https://docs.infinipost.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Make your first API request in under 5 minutes

## Get Your API Key

1. Log in to your [Infinipost dashboard](https://infinipost.co)
2. Navigate to **Settings** → **API Keys**
3. Click **Generate New API Key**
4. Copy your API key (it won't be shown again)

<Warning>
  Keep your API key secret! Don't commit it to version control or share it publicly.
</Warning>

## Base URL

All API requests should be made to:

```
https://api.infinipost.co/v1
```

## Authentication

Include your API key in the `Authorization` header:

```bash theme={null}
Authorization: Bearer YOUR_API_KEY
```

## Your First Request

Let's create a TikTok account:

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://api.infinipost.co/v1/accounts \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "platform": "tiktok",
      "name": "My First Account",
      "username": "myfirstaccount"
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.infinipost.co/v1/accounts', {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      platform: 'tiktok',
      name: 'My First Account',
      username: 'myfirstaccount'
    })
  });

  const data = await response.json();
  console.log(data);
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      'https://api.infinipost.co/v1/accounts',
      headers={
          'Authorization': 'Bearer YOUR_API_KEY',
          'Content-Type': 'application/json'
      },
      json={
          'platform': 'tiktok',
          'name': 'My First Account',
          'username': 'myfirstaccount'
      }
  )

  print(response.json())
  ```

  ```php PHP theme={null}
  <?php
  $ch = curl_init('https://api.infinipost.co/v1/accounts');

  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, [
      'Authorization: Bearer YOUR_API_KEY',
      'Content-Type: application/json'
  ]);
  curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
      'platform' => 'tiktok',
      'name' => 'My First Account',
      'username' => 'myfirstaccount'
  ]));

  $response = curl_exec($ch);
  curl_close($ch);

  echo $response;
  ?>
  ```
</CodeGroup>

## Response

You'll receive a response like this:

```json theme={null}
{
  "id": "acc_1234567890",
  "platform": "tiktok",
  "name": "My First Account",
  "username": "myfirstaccount",
  "status": "pending",
  "createdAt": "2024-04-21T19:30:00Z"
}
```

<Info>
  Account creation typically takes 2-3 minutes. The status will change from `pending` to `active` once complete.
</Info>

## Next Steps

<CardGroup cols={2}>
  <Card title="Start Warmup" icon="fire" href="/api-reference/warmup/start">
    Automatically warm up your new account
  </Card>

  <Card title="Create a Post" icon="video" href="/api-reference/posts/create">
    Post your first video or slideshow
  </Card>

  <Card title="Edit Profile" icon="user" href="/api-reference/accounts/edit-profile">
    Update profile picture, bio, and more
  </Card>

  <Card title="View All Endpoints" icon="book" href="/api-reference">
    Explore the full API reference
  </Card>
</CardGroup>

## Rate Limits

The Infinipost API has the following rate limits:

* **100 requests per minute** per API key
* **10,000 requests per day** per API key

If you exceed these limits, you'll receive a `429 Too Many Requests` response.

## Need Help?

* Check out our [API Reference](/api-reference) for detailed endpoint documentation
* Email us at [drew.arlint@gmail.com](mailto:drew.arlint@gmail.com)
* Join our community (coming soon)
