API Reference
Teams
The Teams API allows you to manage team information and retrieve details about the current workspace.
Base URL
https://api.unsent.dev/v1/teamsOverview
Manage your team settings and retrieve information about your current plan and organization.
Features
Team Management
Access team details and plan information
Endpoints
List Teams
GET /v1/teams
Retrieve a list of all teams the current user belongs to.
Example Request:
curl -X GET https://api.unsent.dev/v1/teams \
-H "Authorization: Bearer your-api-key"Response (200 OK):
[
{
"id": "team_123",
"name": "Acme Corp",
"plan": "PRO",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-15T12:00:00Z"
}
]Error Responses:
- 401 Unauthorized - Invalid API key
- 500 Internal Server Error - Server error
Get Team Details
GET /v1/teams/{id}
Retrieve detailed information about a specific team.
Path Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The unique identifier of the team |
Example Request:
curl -X GET https://api.unsent.dev/v1/teams/team_123 \
-H "Authorization: Bearer your-api-key"Response (200 OK):
{
"id": "team_123",
"name": "Acme Corp",
"slug": "acme-corp",
"plan": "PRO",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-15T12:00:00Z"
}Error Responses:
- 401 Unauthorized - Invalid API key
- 403 Forbidden - User does not have access to this team
- 404 Not Found - Team not found
- 500 Internal Server Error - Server error