> This page is for version v1.3 (default).
> For other versions, use one of these documentation indexes:
> - v1.3 (default): https://docs.virtuosis.ai/v-1-3/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.virtuosis.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.virtuosis.ai/_mcp/server.

# Find accounts by email or external ID

GET https://api.virtuosis.ai/v1.3/accounts

Looks up your organisation's accounts by exactly one of `email` or `external_id`.
Accounts in other organisations are never returned. No match is an empty list,
not a 404.

- By `external_id`: at most one account, since external IDs are unique within
  your organisation. Matching is exact after trimming and case-sensitive.
- By `email`: at most one account, since an email address belongs to a single
  Virtuosis account. Matching is exact after trimming and lowercasing. Refused
  with EmailLookupNotAllowed if your organisation withholds participant identity.


Reference: https://docs.virtuosis.ai/api-reference/accounts/find-accounts

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `email` (string, optional) — Percent-encode the address. An unencoded `+` decodes as a space, so `bob+tag@example.com` must be sent as `bob%2Btag%40example.com`. The value is not checked for email format, so any address an account holds can be found; only a blank one is InvalidEmail.
- `external_id` (string, optional)

## Response

### 200

OK

- `accounts` (list of Account, required)

## Errors

### 400 Bad Request Error

Bad request

- `error` (ErrorError, required) — Error details.

### 401 Unauthorized Error

Unauthorized. Returned for a missing or invalid API key; when an upload's `account_id`, or the account a requested recording belongs to, is not in your organisation; and when the organisation is not on the v1.3 prepaid model (no prepaid API keys or credits): such organisations receive 401 from every v1.3 endpoint except `/ping`, even with a valid key.

- `error` (ErrorError, required) — Error details.

### 403 Forbidden Error

Access is suspended, or lookup by email was requested and your organisation withholds participant identity.

- `error` (ErrorError, required) — Error details.

### 429 Too Many Requests Error

Rate limit exceeded

- `error` (ErrorError, required) — Error details.

### 500 Internal Server Error

Internal server error

- `error` (ErrorError, required) — Error details.

### 503 Service Unavailable Error

Your API key could not be checked right now. The request was not processed; retry it later.

- `error` (ErrorError, required) — Error details.

## Types

### Account

- `account_id` (string, required) — The ID of the account.
- `organisation_role` (enum, required) — The account's role in the organisation, named as in the Virtuosis web app. Only `participant` and `user` can be created through the API; the others are assigned in the web app.
  - Allowed values: `participant`, `user`, `professional`, `admin`, `owner`, `developer`
- `email` (string, required, nullable) — The account's email. Usually null for a `participant`, though an account changed to that role in the web app can keep one. Always null for a `participant` or `user` if your organisation withholds participant identity.
- `name` (string, required, nullable) — The account's display name. Always null for a `participant` or `user` if your organisation withholds participant identity.
- `external_id` (string, required, nullable)

### ErrorError

Error details.

- `type` (string, required) — Machine-readable error type.
- `message` (string, required) — Human-readable description of the error.

## Examples

**Response**

```json
{
  "accounts": [
    {
      "account_id": "string",
      "organisation_role": "participant",
      "email": "string",
      "name": "string",
      "external_id": "string"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.virtuosis.ai/v1.3/accounts"

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

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

print(response.json())
```

```javascript
const url = 'https://api.virtuosis.ai/v1.3/accounts';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

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

func main() {

	url := "https://api.virtuosis.ai/v1.3/accounts"

	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(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.virtuosis.ai/v1.3/accounts")

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
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.virtuosis.ai/v1.3/accounts")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.virtuosis.ai/v1.3/accounts', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.virtuosis.ai/v1.3/accounts");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.virtuosis.ai/v1.3/accounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```