List Teams

Get a list of teams that the authenticated user has access to.

Endpoint

GET ${baseUrl}/teams

Query Parameters

ParameterTypeDescription
pagenumberPage number for pagination (default: 1)
limitnumberNumber of teams per page (default: 10)

Response

interface TeamListResponse {
  success: boolean
  data: {
    team: {
      id: number
      name: string
    }
    members: {
      id: number
      role: string
      status: string
      email: string
    }[]
  }[]
}

Example Request

const response = await fetch('${baseUrl}/teams', {
  headers: {
    Authorization: 'Basic YOUR_API_KEY',
  },
})
 
const data = await response.json()

Error Codes

Status CodeDescription
200Success
401Unauthorized
500Server Error