Endpoint Reference

All endpoints served by the Foundry emulator, organized by category.

OAuth 2.0

MethodPathAuthDescription
GET/multipass/api/oauth2/authorizeNoneAuthorization page; renders user selection UI
POST/multipass/api/oauth2/authorize/callbackNoneProcesses user selection; redirects with authorization code
POST/multipass/api/oauth2/tokenNoneToken exchange for all grant types

Token Endpoint Grant Types

The token endpoint (POST /multipass/api/oauth2/token) handles three grant types based on the grant_type body parameter:

Grant TypeRequired ParametersDescription
authorization_codecode, client_idExchanges an authorization code for tokens
refresh_tokenrefresh_token, client_idRefreshes an access token using a refresh token
client_credentialsclient_id, client_secretIssues a token for a service principal

Admin API

MethodPathAuthRequired ScopeDescription
GET/api/v2/admin/users/getCurrentBearerapi:admin-readReturns the current authenticated user
GET/api/v2/admin/enrollments/getCurrentBearerapi:admin-readReturns the current enrollment
GET/multipass/api/meBearerNoneReturns the CLI-compatible principal shape

Connectivity API

MethodPathAuthRequired ScopeDescription
POST/api/v2/connectivity/connectionsBearerapi:connectivity-connection-writeCreate a REST connection
GET/api/v2/connectivity/connections/:connectionRidBearerapi:connectivity-connection-readFetch a connection
GET/api/v2/connectivity/connections/:connectionRid/getConfigurationBearerapi:connectivity-connection-readFetch configuration with secret names only
POST/api/v2/connectivity/connections/:connectionRid/updateSecretsBearerapi:connectivity-connection-writeUpdate secrets and return 204

Ontology API

MethodPathAuthRequired ScopeDescription
GET/api/v2/ontologiesBearerapi:ontologies-readList ontologies
POST/api/v2/ontologies/:ontology/queries/:queryApiName/executeBearerapi:ontologies-readExecute a seeded ontology query

Compute Module Runtime Routes

These routes are used by the compute module runtime process. All paths are prefixed with /_emulate/foundry/compute-modules/runtimes.

MethodPathAuthDescription
POST/_emulate/foundry/compute-modules/runtimesNoneCreate or reset a runtime session
GET/_emulate/foundry/compute-modules/runtimes/:runtimeId/jobModule-Auth-TokenPoll for the next queued job
POST/_emulate/foundry/compute-modules/runtimes/:runtimeId/schemasModule-Auth-TokenPost function schemas
POST/_emulate/foundry/compute-modules/runtimes/:runtimeId/results/:jobIdModule-Auth-TokenPost a job result
GET/_emulate/foundry/compute-modules/runtimes/:runtimeId/jobs/:jobIdNoneInspect runtime, job, and schema state

Compute Module Contour Routes

These routes are used by your application to submit and monitor jobs. All paths are prefixed with /contour-backend-multiplexer/api/module-group-multiplexer.

MethodPathAuthDescription
POST.../compute-modules/jobs/executeBearerSynchronous job execution (blocks until result)
POST.../deployed-apps/jobsBearerAsynchronous job submission
GET.../jobs/:jobId/statusBearerPoll job status
PUT.../jobs/result/v2BearerRetrieve result of a completed async job

Authentication Types

TypeHeaderUsed By
BearerAuthorization: Bearer Admin, connectivity, ontology, and contour routes
Module-Auth-TokenModule-Auth-Token: Runtime routes (polling, schemas, results)
NoneNo authentication requiredOAuth endpoints, runtime creation, job inspection

Content Types

EndpointRequest Content-TypeResponse Content-Type
Token endpointapplication/x-www-form-urlencodedapplication/json
Authorization pageN/Atext/html
Admin getCurrentN/Aapplication/json
Admin getCurrent enrollmentN/Aapplication/json
Multipass meN/Aapplication/json
Connectivity createapplication/jsonapplication/json
Connectivity getConfigurationN/Aapplication/json
Connectivity updateSecretsapplication/json204 No Content
Ontology listN/Aapplication/json
Ontology query executeapplication/jsonapplication/json
Runtime creationapplication/jsonapplication/json
Schema postingapplication/jsonapplication/json
Result postingapplication/octet-streamapplication/json
Contour sync executeapplication/jsonapplication/octet-stream
Contour async submitapplication/jsonapplication/json
Contour job statusN/Aapplication/json
Contour result fetchapplication/jsonapplication/octet-stream

Common Error Shapes

OAuth errors (token endpoint):

{
  "error": "error_code",
  "error_description": "Human-readable message."
}

Permission errors (admin, connectivity, and ontology APIs):

{
  "errorCode": "PERMISSION_DENIED",
  "errorName": "...",
  "errorDescription": "...",
  "errorInstanceId": "...",
  "parameters": {}
}

Not found / invalid argument errors (admin, connectivity, and ontology APIs):

{
  "errorCode": "NOT_FOUND",
  "errorName": "...",
  "errorDescription": "...",
  "errorInstanceId": "...",
  "parameters": {}
}

Compute module errors (runtime and contour routes):

{
  "error": "error_code",
  "error_description": "Human-readable message."
}