latestOpenAPI 3.1.02026-08-153142951.5 KB

9ceab730e415

datasets

Generate JWT

Generate a JWT token for accessing a repository. Supports optional write access for spaces in dev mode, custom expiration, and encryption.

get/api/datasets/{namespace}/{repo}/jwt

Path parameters

namespacestring required
repostring required

Query parameters

{"stackTrail":"paths:/api/datasets/{namespace}/{repo}/jwt:get:parameters:2:schema","oasType":"schema","type":"unknown"}
expirationstring date-time

Requested expiration datetime, capped at the default (10 minutes with write, 24 hours for spaces, 1 hour otherwise). Use expires_in instead.

expires_ininteger

Requested lifetime in seconds, capped at the default (600s with write, 86400s for spaces, 3600s otherwise)

{"stackTrail":"paths:/api/datasets/{namespace}/{repo}/jwt:get:parameters:5:schema","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/api/datasets/{namespace}/{repo}/jwt:get:parameters:6:schema","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/api/datasets/{namespace}/{repo}/jwt:get:parameters:7:schema","oasType":"schema","type":"unknown","description":"Use billing_details instead."}
{"stackTrail":"paths:/api/datasets/{namespace}/{repo}/jwt:get:parameters:8:schema","oasType":"schema","type":"unknown"}

Response

The JWT token and related information

accessTokenstring required

The JWT token with Bearer prefix

expinteger

Token expiration timestamp in seconds (JWT standard)

tokenstring required

The JWT token