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

# list domains

GET {base_url}/api/v1/phishing/{account_id}/projects/{project_id}/domains/

List all domain records of a project.

Reference: https://api-docs.botbye.com/bot-bye-api/anti-phishing/project-domains/list-domains

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/phishing/{account_id}/projects/{project_id}/domains/:
    get:
      operationId: list-domains
      summary: list domains
      description: List all domain records of a project.
      tags:
        - subpackage_projectDomains
      parameters:
        - name: account_id
          in: path
          required: true
          schema:
            type: string
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItems
servers:
  - url: '{base_url}'
    description: '{base_url}'
components:
  schemas:
    ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsDomain:
      type: object
      properties:
        value:
          type: string
      required:
        - value
      title: >-
        ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsDomain
    ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsAuthorType:
      type: string
      enum:
        - Operator
        - Api
      title: >-
        ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsAuthorType
    ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsAuthor:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          $ref: >-
            #/components/schemas/ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsAuthorType
      required:
        - id
        - type
      title: >-
        ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsAuthor
    ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsStatus:
      type: string
      enum:
        - MIRROR
        - WHITELISTED
      title: >-
        ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsStatus
    ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItems:
      type: object
      properties:
        id:
          type: string
          format: uuid
        domain:
          $ref: >-
            #/components/schemas/ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsDomain
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        deletedAt:
          type:
            - string
            - 'null'
          format: date-time
        author:
          $ref: >-
            #/components/schemas/ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsAuthor
        note:
          type:
            - string
            - 'null'
        projectId:
          type: string
          format: uuid
        status:
          $ref: >-
            #/components/schemas/ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItemsStatus
      required:
        - id
        - domain
        - createdAt
        - updatedAt
        - author
        - projectId
        - status
      title: >-
        ApiV1PhishingAccountIdProjectsProjectIdDomainsGetResponsesContentApplicationJsonSchemaItems

```

## Examples



**Response**

```json
[
  {
    "id": "01919a18-c6dc-7036-bb4e-d6d53c3587b5",
    "domain": {
      "value": "example.com"
    },
    "createdAt": "2024-08-20T10:00:00Z",
    "updatedAt": "2024-08-20T10:00:00Z",
    "author": {
      "id": "c415a474-be24-11eb-8529-0242ac130003",
      "type": "Api"
    },
    "projectId": "01916ff5-70c8-7f01-a0c3-701d23966866",
    "status": "MIRROR",
    "deletedAt": null,
    "note": "primary brand domain"
  }
]
```

**SDK Code**

```python Project domains_listDomains_example
import requests

url = "https://{base_url}/api/v1/phishing/account_id/projects/project_id/domains/"

response = requests.get(url)

print(response.json())
```

```javascript Project domains_listDomains_example
const url = 'https://{base_url}/api/v1/phishing/account_id/projects/project_id/domains/';
const options = {method: 'GET'};

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

```go Project domains_listDomains_example
package main

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

func main() {

	url := "https://{base_url}/api/v1/phishing/account_id/projects/project_id/domains/"

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

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

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

	fmt.Println(res)
	fmt.Println(string(body))

}
```

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

url = URI("https://{base_url}/api/v1/phishing/account_id/projects/project_id/domains/")

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

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

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

HttpResponse<String> response = Unirest.get("https://{base_url}/api/v1/phishing/account_id/projects/project_id/domains/")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{base_url}/api/v1/phishing/account_id/projects/project_id/domains/');

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

```csharp Project domains_listDomains_example
using RestSharp;

var client = new RestClient("https://{base_url}/api/v1/phishing/account_id/projects/project_id/domains/");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift Project domains_listDomains_example
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://{base_url}/api/v1/phishing/account_id/projects/project_id/domains/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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