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

# Get project

Project detail (incl. proxy_key, signing_secret, allowed_origins, defaults).

` GET /api/projects/{id} `

Get project by ID

## Servers

- ` https://motioness.com ` — Production

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` sessionCookie `: ` apiKey `

  - Credential: ` better-auth.session_token ` in ` cookie `

  - Session cookie set by /api/user/signin, /api/user/signup, or the OAuth callback. Required for all authenticated endpoints.

## Parameters

### ` id ` (path, required)

- ` value `: type ` string `

  - example: ` "abc123" `

  - minLength: ` 1 `

Example:

```json
"abc123"
```

## Responses

### ` 200 ` — Project details

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` project `, ` compositionCount `

  - ` project `: type ` unknown `

    - ` allOf constraint 1 `: type ` object `

      - Required fields: ` id `, ` name `, ` domains `, ` brandConfig `, ` isDefault `, ` createdAt `, ` updatedAt `

      - ` id `: type ` string `

      - ` name `: type ` string `

      - ` domains `: type ` array `

        - ` array item `: type ` string `

      - ` brandConfig `: type ` object `

      - ` isDefault `: type ` boolean `

      - ` contentInventory `: type ` object `; nullable

      - ` messagingContext `: type ` object `; nullable

      - ` crawledAt `: type ` string `; nullable

      - ` createdAt `: type ` string `

      - ` updatedAt `: type ` string `

    - ` allOf constraint 2 `: type ` object `

      - ` proxy_key `: type ` string `; nullable

      - ` signing_secret `: type ` string `; nullable

      - ` allowed_origins `: type ` string `; nullable

      - ` default_motion `: type ` string `; nullable

        - enum: ` ["subtle","medium","kinetic",null] `

      - ` default_dur_seconds `: type ` number `; nullable

      - ` default_mode `: type ` string `; nullable

        - enum: ` ["loop","animate-in","animate-on-hover",null] `

  - ` compositionCount `: type ` number `

### ` 401 ` — Authentication required

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` error `

  - ` error `: type ` string `

### ` 404 ` — Project not found

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` error `

  - ` error `: type ` string `

## Request examples

### cURL

```curl
curl -X GET 'https://motioness.com/api/projects/abc123'
```

### JavaScript

```javascript
const response = await fetch('https://motioness.com/api/projects/abc123', {
  method: 'GET'
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

response = requests.get('https://motioness.com/api/projects/abc123')
print(response.json())
```