Skip to content
Console
Menu

Generated Assets

Workflows

Getting Started

Authentication

KV Store

Mint env on a build cache

Mints the settings a build that runs elsewhere (a laptop, a CI runner) uses to reach the cache: the sccache, Turbo and crates mirror doors…

Mints the settings a build that runs elsewhere (a laptop, a CI runner) uses to reach the cache: the sccache, Turbo and crates mirror doors and a short-lived token, as environment variables.

Not available yet. Sylphx Build is declared in the registry but no backend serves it: every call answers 501 with the problem code UNIMPLEMENTED.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/build_caches/build-cache:mintEnv
  • Scope build:run
  • Effect write — a successful call changes state.
  • Collection build_caches

#Request

FieldTypeWhat it is
namestringThe name of the build cache. Required.
accessBuildCacheAccessWhat the token may do; default READ. One of read, read_write.

#Response

FieldTypeWhat it is
envmap<string, string>Environment variables by name: SCCACHE_WEBDAV_ENDPOINT, SCCACHE_WEBDAV_TOKEN, TURBO_API, TURBO_TEAM, TURBO_TOKEN, SYLPHX_CRATES_MIRROR. Never returned again.
expire_timetimestampWhen the token in env stops verifying.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/build_caches/build-cache:mintEnv" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'