Skip to main content
PATCH
/
v1
/
links
/
{identifier}
/
status
curl -X PATCH https://api.bouncy.ai/v1/links/my-link/status \
  -H "Authorization: Bearer bcy_live_pk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"setActive": false}'
curl -X PATCH https://api.bouncy.ai/v1/links/my-link/status \
  -H "Authorization: Bearer bcy_live_pk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"setActive": true}'
const response = await fetch(
  'https://api.bouncy.ai/v1/links/my-link/status',
  {
    method: 'PATCH',
    headers: {
      'Authorization': 'Bearer bcy_live_pk_YOUR_API_KEY',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ setActive: false })
  }
);

const result = await response.json();
console.log(result.message);
import requests

response = requests.patch(
    'https://api.bouncy.ai/v1/links/my-link/status',
    headers={
        'Authorization': 'Bearer bcy_live_pk_YOUR_API_KEY',
        'Content-Type': 'application/json'
    },
    json={'setActive': False}
)

result = response.json()
print(result['message'])
{
  "success": true,
  "id": "my-link",
  "isActive": false,
  "message": "Deeplink deactivated successfully"
}
{
  "success": true,
  "id": "my-link",
  "isActive": true,
  "message": "Deeplink activated successfully"
}
{
  "error": "Deeplink not found"
}

Request

Headers

Content-Type
string
required
Must be application/json

Path Parameters

identifier
string
required
The link’s slug (e.g., my-link) or system domain composite (e.g., mybouncy.link__my-link).Use the slug field returned by GET /v1/links.

Body

setActive
boolean
required
Set to true to activate the link, false to deactivate itExample: false
Deactivated links will stop redirecting. The link is not deleted and can be re-activated at any time.

Response

success
boolean
Whether the operation succeeded
id
string
Link identifier
isActive
boolean
New active status
message
string
Success message
curl -X PATCH https://api.bouncy.ai/v1/links/my-link/status \
  -H "Authorization: Bearer bcy_live_pk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"setActive": false}'
curl -X PATCH https://api.bouncy.ai/v1/links/my-link/status \
  -H "Authorization: Bearer bcy_live_pk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"setActive": true}'
const response = await fetch(
  'https://api.bouncy.ai/v1/links/my-link/status',
  {
    method: 'PATCH',
    headers: {
      'Authorization': 'Bearer bcy_live_pk_YOUR_API_KEY',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ setActive: false })
  }
);

const result = await response.json();
console.log(result.message);
import requests

response = requests.patch(
    'https://api.bouncy.ai/v1/links/my-link/status',
    headers={
        'Authorization': 'Bearer bcy_live_pk_YOUR_API_KEY',
        'Content-Type': 'application/json'
    },
    json={'setActive': False}
)

result = response.json()
print(result['message'])
{
  "success": true,
  "id": "my-link",
  "isActive": false,
  "message": "Deeplink deactivated successfully"
}
{
  "success": true,
  "id": "my-link",
  "isActive": true,
  "message": "Deeplink activated successfully"
}
{
  "error": "Deeplink not found"
}