---
title: "Disable all unclaimed campaign codes [admin]"
method: DELETE
path: "/credit-campaigns/{id}"
tags: ["Credit campaigns"]
---

# Disable all unclaimed campaign codes \[admin\]

`DELETE /credit-campaigns/{id}`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/credit-campaigns/{id}`
- Auth: HTTP bearer

Already granted credit stays in recipients' accounts.

## Path parameters

- `id` string, required

## Response `200`

Campaign result

- object
  - `disabled` integer, required

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Admin token scope and administrator allowlist membership required
- `404`: Unknown campaign
- `503`: Campaign migrations required
- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 5 info
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `403`
  - added the media type `application/json` for the response with the status `404`
  - …1 more

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/credit-campaigns/:id/delete.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
