0

Unsubscribe API Flow

يشيل واجهة Adobe من بيانات اعتماد.

Use when the user wants to remove an Adobe API from a credential — phrases like "unsubscribe from Analytics", "remove Firefly from this credential", "stop using this API", or "disconnect an API".

Skill · سكل

Install

npx skills add adobe/skills --skill dev-console-unsubscribe-api

Works with

claude-code (native), claude (native), codex (native), chatgpt (native), gemini-cli (native), cursor (native), copilot (native), opencode (native), amp (native), roo (native), kiro (native), goose (native), junie (native), trae (native), cline (compatible), continue (compatible), antigravity (compatible), windsurf (compatible), augment (compatible), qwen-code (compatible)

Content

Mandatory prerequisite: Before starting this skill, read and apply [Common Skill Rules](references/common-rules.md).

Unsubscribe API Flow

Remove one or more API subscriptions from a credential in the selected workspace.

Before starting: invoke the dev-console-context skill to establish the org, project, and workspace context, reusing any selected credential. Otherwise, resolve the credential here: list credentials in the selected workspace and inspect each with get_credential_services before offering a selection. Offer only credentials subscribed to the requested API, or credentials with any subscription if no API was specified.

Steps

  1. Confirm the target — Resolve the requested API or APIs from get_credential_services; ask for a selection only if the target is unresolved. Show API, credential, and project names only; never show raw IDs or SDK codes. Only offer currently subscribed APIs. If none match the request, report that without offering an unsubscription.
  1. Explain the change and request approval — Before calling a tool, summarize the API name(s), credential name, and project name that will be affected, and say that the change has no automatic undo. Do not ask the user to type a name or provide a typed confirmation. The client's Yes/No approval prompt is the confirmation.
  1. Remove the subscription:
  • For credential types adobeid, analytics, entp, and oauth_server_to_server, call unsubscribe_credential_from_service with consumerOrgId, projectId, workspaceId, the credential's actual credentialType, credentialId, and the selected API's sdkCode in sdkCodes.
  • For Admin Enterprise (admin_entp), call unsubscribe_admin_enterprise_credential_from_service with consumerOrgId, credentialId, and one service item containing the selected API's sdkCode plus any required subscription settings. Use the existing subscription details; do not invent settings. Make one call per API so the client can approve each removal separately.
  • Never emulate unsubscription by sending a reduced service list to a subscription or update tool. For OAuth Server-to-Server, always use unsubscribe_credential_from_service; it selects the dedicated upstream unsubscribe path.
  • If the user declines a client approval prompt, stop without retrying or working around it.
  1. Report the result — Report removal only when the tool confirms success. For Admin Enterprise, inspect the returned status and body for failures before claiming success. For other credential types, use the tool's returned remaining APIs when available; do not make a verification call unless the response is ambiguous or an error occurred.

Rules

  • Use the credential's actual type, not the API's type. In particular, an API with type entp may be subscribed to an OAuth Server-to-Server credential.
  • For Admin Enterprise, update_admin_enterprise_credential changes credential details only; it cannot remove an API subscription.
  • If an API's identity or required Admin Enterprise subscription settings are unclear, inspect the available subscription details or call search_adobe_docs. Never guess an SDK code or settings.

Source and license

Source
Adobe Skills
Original
adobe/skills/plugins/adobe-for-developers/skills/dev-console-unsubscribe-api/SKILL.md
License
Apache-2.0