# Make a site. The secret is shown once

`POST /ai/admin/sites` · Praecise Shield for AI · Sites

Make a site. The secret is shown once.

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": ""
    },
    "owner": {
      "type": "string",
      "description": "The project that owns it; the list can be filtered by it."
    },
    "account": {
      "type": "string",
      "description": "The Praecise account the usage is billed to."
    },
    "relationship": {
      "type": "string",
      "description": ""
    },
    "upstream": {
      "type": "object",
      "properties": {
        "llm": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": ""
                },
                "format": {
                  "enum": [
                    "openai",
                    "anthropic"
                  ]
                },
                "authEnv": {
                  "type": "string",
                  "description": "Operator only: SHIELD_AI_UP_… "
                }
              },
              "required": [
                "url"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "mcp": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": ""
                },
                "authEnv": {
                  "type": "string",
                  "description": "Operator only."
                }
              },
              "required": [
                "url"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": []
    },
    "policy": {
      "type": "object"
    }
  },
  "required": []
}
```

## Responses

- `201`: OK
- `400`: OK

## Example

```sh
curl -X POST 'https://shield-ai.praecise.com/ai/admin/sites' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "owner": "string",
  "account": "string",
  "relationship": "string",
  "upstream": {
    "llm": {
      "url": "string"
    },
    "mcp": {
      "url": "string"
    }
  },
  "policy": {}
}'
```
