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"
}
Links
Toggle Link Status
Enable or disable a short link without deleting it
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
string
required
Must be
application/jsonPath Parameters
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
boolean
required
Set to
true to activate the link, false to deactivate itExample: falseDeactivated links will stop redirecting. The link is not deleted and can be re-activated at any time.
Response
boolean
Whether the operation succeeded
string
Link identifier
boolean
New active status
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"
}
⌘I