Skip to main content
GET
/
api
/
v1
/
client_matters
Get Client Matters
curl --request GET \
  --url https://api.harvey.ai/api/v1/client_matters \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.harvey.ai/api/v1/client_matters"

headers = {"Authorization": "Bearer <token>"}

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

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

fetch('https://api.harvey.ai/api/v1/client_matters', 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://api.harvey.ai/api/v1/client_matters",
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: Bearer <token>"
],
]);

$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://api.harvey.ai/api/v1/client_matters"

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

req.Header.Add("Authorization", "Bearer <token>")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.harvey.ai/api/v1/client_matters")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.harvey.ai/api/v1/client_matters")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
[
  {
    "id": "018d856f-0664-772c-9ed9-b2316fd881d3",
    "user_email": "user@example.com",
    "name": "1234-5678",
    "description": "Client B - Project Test",
    "user_count": 8,
    "total_events": 37,
    "created_at": "2024-02-07T21:22:29.478Z",
    "deleted_at": "2024-02-22T16:45:10.209Z"
  }
]

Permissions

Requires Access client matters permission.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

List of client matters with usage statistics.

id
string<uuid>

Unique identifier for the client matter.

Example:

"018d856f-0664-772c-9ed9-b2316fd881d3"

user_email
string

Email of the user associated with creating the client matter.

Example:

"user@example.com"

name
string

Name of the client matter.

Example:

"1234-5678"

description
string

Description of the client matter.

Example:

"Client B - Project Test"

user_count
integer

Number of unique users associated with the client matter.

Example:

8

total_events
integer

Total number of queries associated with the client matter.

Example:

37

created_at
string<date-time>

Timestamp of when the client matter was created.

Example:

"2024-02-07T21:22:29.478Z"

deleted_at
string<date-time>

Timestamp of when the client matter was deleted, if applicable.

Example:

"2024-02-22T16:45:10.209Z"