Alternate Futures
GraphQL API

Queries

Generated from the API server source (@alternatefutures/backend 0.1.2) on every merge. Endpoint https://api.alternatefutures.ai/graphql, header Authorization: Bearer <personal access token>. See the GraphQL API overview for how to call it. Left out on purpose: provider-specific types, fields and arguments; operations of the retired hosting product (sites, IPFS storage, functions) and admin-only operations.

Other

identities

ArgumentTypeDescription
projectIdID!
subjectTypeIdentitySubjectType · IdentitySubjectType
statusIdentityLifecycleStatus · IdentityLifecycleStatus

Returns [IdentityPrincipal!]! · IdentityPrincipal.

identity

ArgumentTypeDescription
projectIdID!
didString!

Returns IdentityPrincipal · IdentityPrincipal.

identityCards

ArgumentTypeDescription
projectIdID!
subjectDidString
statusCredentialLifecycleStatus · CredentialLifecycleStatus

Returns [IdentityCredential!]! · IdentityCredential.

identityVerificationPolicy

ArgumentTypeDescription
projectIdID!
subjectTypeIdentitySubjectType! · IdentitySubjectType

Returns IdentityVerificationPolicy · IdentityVerificationPolicy.

proofProviders

Returns [ProofProvider!]! · ProofProvider.

agentIamBinding

ArgumentTypeDescription
projectIdID!
agentKeyString!

Returns A2aAgentBinding · A2aAgentBinding.

Swarm runtime (distinct from the agent chat resource below)

swarmRun

ArgumentTypeDescription
idID!

Returns SwarmRuntimeRun! · SwarmRuntimeRun.

swarmRuns

Runs of a project, newest first; serviceId narrows to the runs of one runtime service (the web Runs tab).

ArgumentTypeDescription
projectIdID!
limitInt
serviceIdID

Returns [SwarmRuntimeRun!]! · SwarmRuntimeRun.

swarmRunEvents

ArgumentTypeDescription
idID!

Returns [SwarmRuntimeEvent!]! · SwarmRuntimeEvent.

swarmDeployment

ArgumentTypeDescription
projectIdID!
swarmIdString!

Returns SwarmDeployment! · SwarmDeployment.

swarmDeployProgress

ArgumentTypeDescription
projectIdID!
swarmIdString!

Returns SwarmDeployProgress · SwarmDeployProgress.

swarmDefinitionVersions

Registered definition versions of one swarm, newest first (metadata only; bundles never leave the API).

ArgumentTypeDescription
projectIdID!
swarmIdString!
limitInt

Returns [SwarmDefinitionVersion!]! · SwarmDefinitionVersion.

swarmDefinitionSpec

The authored spec of one registered version (the newest when versionId is omitted); see SwarmDefinitionSpec.

ArgumentTypeDescription
projectIdID!
swarmIdString!
versionIdID

Returns SwarmDefinitionSpec! · SwarmDefinitionSpec.

swarmModels

Models swarm agents may use. With projectId: that org's list (service-auth's defaults plus the org's Agents toggles under Org › Models); without: the platform defaults.

ArgumentTypeDescription
projectIdID

Returns [SwarmModel!]! · SwarmModel.

swarmRoster

ArgumentTypeDescription
projectIdID!
swarmIdString!

Returns SwarmRoster! · SwarmRoster.

swarmRoom

ArgumentTypeDescription
projectIdID!
swarmIdString!

Returns SwarmRoom! · SwarmRoom.

swarmRoomSecrets

ArgumentTypeDescription
projectIdID!
swarmIdString!

Returns SwarmRoomSecrets! · SwarmRoomSecrets.

swarmDiscord

The swarm's Discord connection (bot identity, channel map, redeploy state); never the token.

ArgumentTypeDescription
projectIdID!
swarmIdString!

Returns SwarmDiscordConnection! · SwarmDiscordConnection.

swarmDiscordSecrets

Bridge credential only: the bot token the swarm's sidecar logs in with.

ArgumentTypeDescription
projectIdID!
swarmIdString!

Returns SwarmDiscordSecrets! · SwarmDiscordSecrets.

swarmDeploymentLogs

ArgumentTypeDescription
projectIdID!
swarmIdString!
tailInt

Returns SwarmDeploymentLogs! · SwarmDeploymentLogs.

runtimeWatch

ArgumentTypeDescription
projectIdID!
swarmString!

Returns RuntimeWatchSnapshot! · RuntimeWatchSnapshot.

runtimeTrace

ArgumentTypeDescription
runIdID!

Returns RuntimeTrace! · RuntimeTrace.

runtimeStateHistory

ArgumentTypeDescription
projectIdID!
swarmIdString
agentIdString!
afterString
limitInt!

Returns RuntimeStateHistory! · RuntimeStateHistory.

runtimeStateAtVersion

ArgumentTypeDescription
projectIdID!
swarmIdString
agentIdString!
versionString!

Returns JSON!.

exportRuntimeAgent

ArgumentTypeDescription
projectIdID!
swarmIdString
agentIdString!
formatRuntimeAgentExportFormat! · RuntimeAgentExportFormat

Returns RuntimeAgentExport! · RuntimeAgentExport.

Version

version

Returns Version! · Version.

Templates

templates

ArgumentTypeDescription
categoryTemplateCategory · TemplateCategory

Returns [Template!]! · Template.

template

ArgumentTypeDescription
idID!

Returns Template · Template.

User & auth

me

Returns User · User.

personalAccessTokens

Returns PersonalAccessTokenList! · PersonalAccessTokenList.

apiKeyRateLimit

Returns ApiKeyRateLimit! · ApiKeyRateLimit.

Projects

project

ArgumentTypeDescription
idID!

Returns Project · Project.

resolveProject

Resolve an accessible project by exact ID, name, or slug; ambiguous names/slugs fail closed.

ArgumentTypeDescription
refString!

Returns Project · Project.

projects

Returns ProjectList! · ProjectList.

Service registry

serviceRegistry

ArgumentTypeDescription
projectIdID

Returns [Service!]! · Service.

service

One service by id (project access required). Use for on-demand fields such as spend.

ArgumentTypeDescription
idID!

Returns Service · Service.

Workspace metrics (aggregated compute, storage, traffic)

workspaceMetrics

ArgumentTypeDescription
projectIdID

Returns WorkspaceMetrics! · WorkspaceMetrics.

Unified deployments (all deployment types across all services)

allDeployments

ArgumentTypeDescription
projectIdID
limitInt

Returns [UnifiedDeployment!]! · UnifiedDeployment.

System health

subscriptionHealth

Returns SubscriptionHealth! · SubscriptionHealth.

Agent chat

agent

ArgumentTypeDescription
idID!

Returns Agent · Agent.

agentBySlug

ArgumentTypeDescription
slugString!

Returns Agent · Agent.

agents

Returns [Agent!]! · Agent.

chat

ArgumentTypeDescription
idID!

Returns Chat · Chat.

chats

Returns [Chat!]! · Chat.

messages

ArgumentTypeDescription
chatIdID!
limitInt
beforeString

Returns [Message!]! · Message.

Observability / APM

traces

ArgumentTypeDescription
inputTraceQueryInput! · TraceQueryInput

Returns [Trace!]! · Trace.

trace

ArgumentTypeDescription
projectIdID!
traceIdString!

Returns Trace · Trace.

metrics

ArgumentTypeDescription
inputMetricQueryInput! · MetricQueryInput

Returns [MetricSeries!]! · MetricSeries.

logs

ArgumentTypeDescription
inputLogQueryInput! · LogQueryInput

Returns [LogEntry!]! · LogEntry.

services

ArgumentTypeDescription
projectIdID!
startTimeDate!
endTimeDate!

Returns [ServiceStats!]! · ServiceStats.

observabilitySettings

ArgumentTypeDescription
projectIdID!

Returns ObservabilitySettings · ObservabilitySettings.

telemetryUsage

ArgumentTypeDescription
projectIdID!
startDateDate!
endDateDate!

Returns TelemetryUsageSummary! · TelemetryUsageSummary.

Live container health from provider

deploymentHealth

ArgumentTypeDescription
serviceIdID!

Returns DeploymentHealth · DeploymentHealth.

Service container logs

serviceLogs

ArgumentTypeDescription
serviceIdID!
tailInt
serviceString

Returns ServiceLogResult! · ServiceLogResult.

attestationMeasurements

The active organization's attestation measurement allowlist.

Returns [AttestationMeasurement!]! · AttestationMeasurement.

serviceAttestedIdentities

Registry identities linked to this service, newest first. status is the EFFECTIVE status (a revoked measurement retires its identities): the same verdict the public REST lookup serves.

ArgumentTypeDescription
serviceIdID!

Returns [AttestedIdentity!]! · AttestedIdentity.

Deployment file access (files tab)

serviceFiles

ArgumentTypeDescription
serviceIdID!
pathString!

Returns ServiceFileList! · ServiceFileList.

serviceFileContent

ArgumentTypeDescription
serviceIdID!
pathString!

Returns ServiceFileContent! · ServiceFileContent.

serviceFileAccessPolicy

ArgumentTypeDescription
serviceIdID!

Returns ServiceFileAccessPolicy! · ServiceFileAccessPolicy.

ArgumentTypeDescription
projectIdID!

Returns [ServiceLink!]! · ServiceLink.

Org billing runway (how long until funds run out)

orgBillingRunway

Returns OrgBillingRunway · OrgBillingRunway.

GitHub deploy

githubAppEnabled

Returns Boolean!.

githubAppSlug

Returns String.

githubInstallations

ArgumentTypeDescription
orgIdID

Returns [GithubInstallation!]! · GithubInstallation.

githubInstallationRepos

ArgumentTypeDescription
installationIdID!

Returns [GithubRepoSummary!]! · GithubRepoSummary.

githubRepoBranches

ArgumentTypeDescription
installationIdID!
ownerString!
repoString!

Returns [GithubBranchSummary!]! · GithubBranchSummary.

Builds

buildJob

Fetch a single BuildJob by id (auth: caller must have access to the parent service's project). Used by the Source-tab build-history UI to lazy-load the logs blob on row expand.

ArgumentTypeDescription
idID!

Returns BuildJob · BuildJob.

serviceBuildJobs

List recent BuildJobs for a service, newest first. Logs blob omitted: fetch it via buildJob(id) on demand. Used by the Source-tab build-history list (polled every 3s while a build is in flight).

ArgumentTypeDescription
serviceIdID!
limitInt

Returns [BuildJob!]! · BuildJob.

Regions

regions

Return curated region buckets with live availability + pricing for the picker. Defaults to the standard compute tier when provider is omitted. The gpuModelHint argument is reserved for future per-model price emphasis; ignored today.

ArgumentTypeDescription
gpuModelHintString

Some arguments are omitted. †

Returns [Region!]! · Region.

† Some fields, arguments or return types are omitted from this page: provider-specific ones, or ones that belong to retired or admin-only surfaces.

On this page