# Squadcast Integration via LowCodeAPI

## Overview

Squadcast is a remote recording platform for podcasters and content creators. The Squadcast API provides functionality for:

- **Organizations** - Manage organization details and balance
- **Recordings** - Access and manage recording sessions
- **Team Management** - Manage team members and permissions

## Base Endpoint

```
https://api.lowcodeapi.com/squadcast/
```

## Authentication

LowCodeAPI handles authentication automatically using Bearer token authentication. You only need to:

1. **Sign up** at [Squadcast](https://squadcast.fm) to get your API Key
2. **Connect your account** in the LowCodeAPI dashboard
3. **Use your `api_token`** in all requests

The `api_token` is your LowCodeAPI authentication token. LowCodeAPI will automatically:
- Fetch your Squadcast API key
- Apply it to each request as a Bearer token

**Auth Type**: Bearer Token

## API Categories

- **Customer Support** - Recording and team management

## Common Endpoints

### Category: Organization

#### Get Organization ID

**Method**: `GET` | **LowCodeAPI Path**: `/v2/organizations`

**Full URL**:
```
https://api.lowcodeapi.com/squadcast/v2/organizations?api_token={api_token}
```

**Description**: Retrieve organization information for the authenticated user.

**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/squadcast/v2/organizations?api_token=YOUR_API_TOKEN"
```

**Official Documentation**: [Get Organization](https://developers.squadcast.fm/reference/get_v2-organizations)

---

#### Get Balance

**Method**: `GET` | **LowCodeAPI Path**: `/v2/organizations/balance`

**Full URL**:
```
https://api.lowcodeapi.com/squadcast/v2/organizations/balance?api_token={api_token}
```

**Description**: Retrieve organization balance information.

**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/squadcast/v2/organizations/balance?api_token=YOUR_API_TOKEN"
```

**Official Documentation**: [Get Balance](https://developers.squadcast.fm/reference/get_v2-organizations-balance)

---

## Usage Examples

### Example 1: Get Organization Information

Retrieve organization details:

```bash
# Get organization information
# No ID needed - returns authenticated user's organization
curl -X GET "https://api.lowcodeapi.com/squadcast/v2/organizations?api_token=YOUR_API_TOKEN"

# Get account balance
# No ID needed - returns organization balance
curl -X GET "https://api.lowcodeapi.com/squadcast/v2/organizations/balance?api_token=YOUR_API_TOKEN"
```

## Complete Endpoint Reference

For a complete list of all 19 endpoints and their parameters, refer to:

- **OpenAPI Definition**: https://backend.lowcodeapi.com/squadcast/definition
- **Official Squadcast Documentation**: https://developers.squadcast.fm/reference

## Rate Limits & Best Practices

- **Rate Limit**: Refer to your Squadcast plan for rate limits
- **Best Practices**:
  - Store organization ID for efficient API calls
  - Monitor balance to avoid service interruptions

## Error Handling

All responses are wrapped in a `data` key:
```json
{
  "data": {
    // Actual response from Squadcast
  }
}
```

Common errors:
- **401**: Invalid API key
- **429**: Rate limit exceeded