Skip to content

GitHub: List subscriptions for the authenticated user (stubbed)

GitHub apps.appsListSubscriptionsForAuthenticatedUserStubbed: arguments, response, policy and SDK examples.

← Apps operations · Get started

Operation github.apps_list_subscriptions_for_authenticated_user_stubbed

Provider route: GET /user/marketplace_purchases/stubbed. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/github with npm, or alter-sdk-github with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { GitHubIntegration } from "@alter-ai/github";
async function execute(input: Parameters<GitHubIntegration["apps"]["appsListSubscriptionsForAuthenticatedUserStubbed"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new GitHubIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.apps.appsListSubscriptionsForAuthenticatedUserStubbed(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_github import GitHubIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = GitHubIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.apps.apps_list_subscriptions_for_authenticated_user_stubbed(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.per_pageintegerOptionalDefault: 30
query.pageintegerOptionalDefault: 1

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$arrayRoot
$[]ModelEach itemExpand List subscriptions for the authenticated user — response body — item

Referenced models: List subscriptions for the authenticated user — response body — item

List subscriptions for the authenticated user — response body — item
FieldTypePresenceDescription and constraints
$objectRootUser Marketplace Purchase
accountModelRequired within parentExpand List subscriptions for the authenticated user — response body — item account
billing_cyclestringRequired within parent
free_trial_ends_onJSONRequired within parent
free_trial_ends_on (anyOf 1)stringAlternativeFormat: date-time
free_trial_ends_on (anyOf 2)nullAlternative
next_billing_dateJSONRequired within parent
next_billing_date (anyOf 1)stringAlternativeFormat: date-time
next_billing_date (anyOf 2)nullAlternative
on_free_trialbooleanRequired within parent
planModelRequired within parentExpand List subscriptions for the authenticated user — response body — item plan
unit_countJSONRequired within parent
unit_count (anyOf 1)JSONAlternative
unit_count (anyOf 1) (anyOf 1)integerAlternative
unit_count (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
unit_count (anyOf 2)nullAlternative
updated_atJSONRequired within parent
updated_at (anyOf 1)stringAlternativeFormat: date-time
updated_at (anyOf 2)nullAlternative

Referenced models: List subscriptions for the authenticated user — response body — item account, List subscriptions for the authenticated user — response body — item plan

List subscriptions for the authenticated user — response body — item account
FieldTypePresenceDescription and constraints
$objectRoot
emailJSONOptional
email (anyOf 1)stringAlternativeFormat: email
email (anyOf 2)nullAlternative
idJSONRequired within parent
id (anyOf 1)integerAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
loginstringRequired within parent
node_idstringOptional
organization_billing_emailJSONOptional
organization_billing_email (anyOf 1)stringAlternativeFormat: email
organization_billing_email (anyOf 2)nullAlternative
typestringRequired within parent
urlstringRequired within parentFormat: uri
List subscriptions for the authenticated user — response body — item plan
FieldTypePresenceDescription and constraints
$objectRootMarketplace Listing Plan
accounts_urlstringRequired within parentFormat: uri
bulletsarrayRequired within parent
bullets[]stringEach item
descriptionstringRequired within parent
has_free_trialbooleanRequired within parent
idJSONRequired within parent
id (anyOf 1)integerAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
monthly_price_in_centsJSONRequired within parent
monthly_price_in_cents (anyOf 1)integerAlternative
monthly_price_in_cents (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringRequired within parent
numberJSONRequired within parent
number (anyOf 1)integerAlternative
number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
price_modelstringRequired within parentKnown values: FREE, FLAT_RATE, PER_UNIT
statestringRequired within parent
unit_nameJSONRequired within parent
unit_name (anyOf 1)stringAlternative
unit_name (anyOf 2)nullAlternative
urlstringRequired within parentFormat: uri
yearly_price_in_centsJSONRequired within parent
yearly_price_in_cents (anyOf 1)integerAlternative
yearly_price_in_cents (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

SDK function policy ID: github.apps_list_subscriptions_for_authenticated_user_stubbed. Catalog operation: apps/list-subscriptions-for-authenticated-user-stubbed. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"X-GitHub-Api-Version": "2026-03-10", "User-Agent": "Alter", "Accept": "application/vnd.github+json"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.