> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autosend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Project

> Retrieves a single project by its ID. The project must belong to the organization. Requires an organization admin API key (ASA_ prefix).

> [!NOTE]
>
> This endpoint requires an **organization admin API key** (`ASA_` prefix). Standard project API keys cannot access this endpoint.

```bash cURL theme={null}
curl --request GET \
  --url https://api.autosend.com/v1/account/projects/60d5ec49f1b2c72d9c8b1234 \
  --header 'Authorization: Bearer ASA_your-admin-api-key'
```

```python Python theme={null}
import requests

url = "https://api.autosend.com/v1/account/projects/60d5ec49f1b2c72d9c8b1234"

headers = {
    "Authorization": "Bearer ASA_your-admin-api-key"
}

response = requests.get(url, headers=headers)
print(response.json())
```

```javascript JavaScript theme={null}
fetch('https://api.autosend.com/v1/account/projects/60d5ec49f1b2c72d9c8b1234', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer ASA_your-admin-api-key'
  }
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));
```

```php PHP theme={null}
<?php

$url = 'https://api.autosend.com/v1/account/projects/60d5ec49f1b2c72d9c8b1234';

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer ASA_your-admin-api-key'
]);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
```

```go Go theme={null}
package main

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

func main() {
    url := "https://api.autosend.com/v1/account/projects/60d5ec49f1b2c72d9c8b1234"

    req, _ := http.NewRequest("GET", url, nil)
    req.Header.Set("Authorization", "Bearer ASA_your-admin-api-key")

    client := &http.Client{}
    resp, err := client.Do(req)
    if err != nil {
        fmt.Println("Error:", err)
        return
    }
    defer resp.Body.Close()

    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
```

```java Java theme={null}
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class GetProject {
    public static void main(String[] args) {
        try {
            URL url = new URL("https://api.autosend.com/v1/account/projects/60d5ec49f1b2c72d9c8b1234");
            HttpURLConnection con = (HttpURLConnection) url.openConnection();

            con.setRequestMethod("GET");
            con.setRequestProperty("Authorization", "Bearer ASA_your-admin-api-key");

            BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
            String inputLine;
            StringBuilder content = new StringBuilder();
            while ((inputLine = in.readLine()) != null) {
                content.append(inputLine);
            }
            in.close();
            con.disconnect();

            System.out.println(content.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
```

```ruby Ruby theme={null}
require 'net/http'
require 'uri'

uri = URI('https://api.autosend.com/v1/account/projects/60d5ec49f1b2c72d9c8b1234')

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

request = Net::HTTP::Get.new(uri)
request['Authorization'] = 'Bearer ASA_your-admin-api-key'

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

```json Response theme={null}
{
  "success": true,
  "data": {
    "id": "60d5ec49f1b2c72d9c8b1234",
    "name": "Production App",
    "domain": "example.com",
    "domains": [
      {
        "id": "60d5ec49f1b2c72d9c8b5678",
        "domainName": "example.com",
        "verificationStatus": "VERIFIED",
        "regionKey": "us-east-1"
      }
    ],
    "createdAt": "2024-01-15T10:30:00.000Z",
    "trackingOpen": true,
    "trackingClick": true,
    "inboundEmailDomain": "token.autosend.email"
  }
}
```

***

#### Authorizations

**Authorizations** `string | header` *required*

Organization admin API key header of the form Bearer `ASA_<key>`. Standard project API keys (`AS_` prefix) will receive a `403` error.

#### Path Parameters

**projectId** `string` *required*

The project's unique ID. Must be a valid Mongo ObjectId.

#### Response

Project retrieved successfully

**success** `boolean`

Indicates if the request was successful

Example: `true`

**data** `object`

The project object

**child attributes**

**id** `string`

Unique project identifier

Example: `"60d5ec49f1b2c72d9c8b1234"`

**name** `string`

Project name

Example: `"Production App"`

**domain** `string | null`

Primary domain associated with the project

Example: `"example.com"`

**domains** `object[]`

List of email domains configured for the project

**child attributes**

**id** `string`

Domain identifier

**domainName** `string`

Domain name

Example: `"example.com"`

**verificationStatus** `string`

Domain verification status: `PENDING_CONFIGURATION`, `PENDING`, or `VERIFIED`

**regionKey** `string`

Account region for the project. One of `us-east-1`, `us-east-2`, `ap-south-1`, or `eu-central-1`

**createdAt** `string`

ISO 8601 timestamp of when the project was created

Example: `"2024-01-15T10:30:00.000Z"`

**trackingOpen** `boolean`

Whether open tracking is enabled

Example: `true`

**trackingClick** `boolean`

Whether click tracking is enabled

Example: `true`

**inboundEmailDomain** `string | null`

The project's inbound receiving domain. Present only when inbound is configured.

Example: `"token.autosend.email"`

> [!NOTE]
>
> The response intentionally contains no secrets. It never includes API keys or credentials, or DKIM keys.

#### Error Responses

**400 - Invalid project ID** `object`

Returned when the supplied `projectId` is not a valid Mongo ObjectId.

```json theme={null}
{
 "success": false,
 "error":{
   "code":"VALIDATION_ERROR",
   "message":"Invalid project ID"
 }
}
```

**403 - Not an admin key** `object`

Returned when using a standard project API key instead of an organization admin API key.

```json theme={null}
{
 "success": false,
 "error":{
   "message":"This endpoint requires an organization admin API key (ASA_ prefix)"
 }
}
```

**404 - Project not found** `object`

Returned when no project with that ID exists in the organization. This is also returned when the project belongs to a different organization.

```json theme={null}
{
 "success": false,
 "error":{
   "code":"PROJECT_NOT_FOUND",
   "message":"Project not found"
 }
}
```


## OpenAPI

````yaml GET /account/projects/{projectId}
openapi: 3.1.0
info:
  title: AutoSend API
  description: >-
    AutoSend REST API for managing organization projects. These endpoints
    require an organization admin API key (ASA_ prefix) and are not accessible
    via standard project API keys.
  version: 1.0.0
servers:
  - url: https://api.autosend.com/v1
security:
  - bearerAuth: []
paths:
  /account/projects/{projectId}:
    get:
      summary: Get Project
      description: >-
        Retrieves a single project by its ID. The project must belong to the
        organization. Requires an organization admin API key (ASA_ prefix).
components: {}

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.