Skip to main content
POST
/
projects
/
{id}
/
ai-gateway
/
block
Block project
curl --request POST \
  --url https://api.specular.dev/projects/{id}/ai-gateway/block \
  --header 'Authorization: Bearer <token>'
{
  "projectId": "<string>",
  "blocked": true,
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication with API key (format: Bearer sk_xxx)

Path Parameters

id
string
required

Project ID

Response

Project blocked successfully

Project blocked successfully

projectId
string
blocked
boolean
createdAt
string<date-time>