Skip to main content
GET
/
v1
/
organisations
/
{organisationId}
/
teams
Get all teams in an organisation
curl --request GET \
  --url https://wmc.wiremockapi.cloud/v1/organisations/{organisationId}/teams \
  --header 'Authorization: <api-key>'
import requests

url = "https://wmc.wiremockapi.cloud/v1/organisations/{organisationId}/teams"

headers = {"Authorization": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: '<api-key>'}};

fetch('https://wmc.wiremockapi.cloud/v1/organisations/{organisationId}/teams', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://wmc.wiremockapi.cloud/v1/organisations/{organisationId}/teams",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: <api-key>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://wmc.wiremockapi.cloud/v1/organisations/{organisationId}/teams"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<api-key>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://wmc.wiremockapi.cloud/v1/organisations/{organisationId}/teams")
  .header("Authorization", "<api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://wmc.wiremockapi.cloud/v1/organisations/{organisationId}/teams")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "meta": {
    "start": 1,
    "end": 1,
    "total": 1,
    "page": 1,
    "totalPages": 1
  },
  "links": {
    "self": "/v1/organisations/mgk7g/teams?limit=20&page=1"
  },
  "teams": [
    {
      "id": "p9e4r",
      "aclSubject": "dyv8j",
      "aclObject": "626vg",
      "name": "Elite Team",
      "links": {
        "organisation": "/v1/organisations/mgk7g",
        "aclSubject": "/v1/acl/subjects/dyv8j",
        "aclObject": "/v1/acl/objects/626vg",
        "acl": "/v1/teams/p9e4r/acl{?subjectId}"
      }
    }
  ]
}
"Credentials are required to access this resource."
{
  "errors": [
    {
      "title": "Forbidden",
      "source": {}
    }
  ]
}
{
  "code": 404,
  "message": "HTTP 404 Not Found"
}

Authorizations

Authorization
string
header
required

Your API key prefixed by 'Token '

Path Parameters

organisationId
string
required

Query Parameters

q
string

A filter for the retrieved items. Only items whose name contains the filter value will be retrieved. The filter is case insensitive.

limit
integer
Required range: x >= 1
page
integer
Required range: x >= 1

Response

200 response

teams
object[]
meta
object