Skip to main content

REST API Overview

The Fused platform API is an HTTP API. Everything the Python SDK and Workbench do goes through it, so any language that can make an HTTP request can create UDFs, run jobs, manage files, and automate Fused.

For the conceptual introduction — including the separate udf.ai endpoints for calling shared UDFs — see REST API in the Guide.

Base URL

https://www.fused.io/server/v1

Every path in this reference is relative to that base URL. Requests and responses are JSON unless noted otherwise.

Authentication

Pass credentials in the Authorization header. Two schemes are available:

Authorization: Bearer <access_token>
Authorization: Fused-Service-Token <service_account_token>
  • Bearer — a personal access token that acts as you. Retrieve one from an authenticated SDK session with fused.api.access_token().
  • Fused-Service-Token — a long-lived machine credential that acts as your team's environment. See Service Accounts.

Endpoint scopes

Each endpoint accepts one or both credential types. This reference labels every endpoint with its scope:

ScopeAcceptsNotes
UserBearer onlyActs on resources owned by the signed-in user. A service account token is rejected.
EnvironmentBearer or Fused-Service-TokenActs on your team's execution environment. Suitable for automation.
User or environmentBearer or Fused-Service-TokenResolves to whichever identity you present.
By tokenNo header — the token in the pathAuthorization is carried by the canvas or UDF token in the URL.
Public or authorizedEither, or nonePublic resources are readable with no credentials; reaching private ones requires them.
PublicNoneNo credentials required.
note

"Environment" is your team's execution environment — the container for your team's UDFs, files, and quota. A service account token always resolves to an environment, never to an individual user, which is why user-scoped endpoints reject it.

Errors

The API uses standard HTTP status codes:

StatusMeaning
401 UnauthorizedMissing, malformed, or expired credentials
403 ForbiddenAuthenticated, but not allowed to access this resource — including presenting a service account token to a user-scoped endpoint
404 Not FoundResource does not exist, or you cannot see it
422 Unprocessable EntityRequest validation failed, or UDF execution failed

Validation errors return a detail array identifying each offending field:

{
"detail": [
{
"loc": ["body", "name"],
"msg": "Field required",
"type": "missing"
}
]
}

Other errors return a detail string.

Example request

curl -H "Authorization: Fused-Service-Token $FUSED_SERVICE_ACCOUNT_TOKEN" \
"https://www.fused.io/server/v1/execution-env/self"

Reference

SectionCovers
UDFsCreating, reading, updating, and deleting UDFs
CanvasesCanvases, sharing, and TOML import/export
Running UDFsExecuting UDFs by token, as tiles, or ad hoc
Batch jobsSubmitting long-running jobs, status, results, and logs
FilesCloud file storage: list, upload, download, signed URLs
EnvironmentExecution environment, usage, and service accounts
Scheduled UDFsCron schedules for UDFs
SecretsUser secrets
Session tokensMinting and revoking session tokens
AccountThe signed-in user