For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
EnterpriseQuick Start
API ReferenceTutorials
  • Introduction
    • Getting started
  • API Reference
      • GETRetrieve JWT Settings
      • POSTUpdate JWT Settings
LogoLogo
EnterpriseQuick Start
API ReferenceJWT Settings

Update JWT Settings

POST
http://localhost:8000/api/jwt/settings
POST
/api/jwt/settings
$curl -X POST http://localhost:8000/api/jwt/settings \
> -H "Authorization: Token <api_key>" \
> -H "Content-Type: application/json" \
> -d '{
> "api_token_ttl_days": 365
>}'
201Created
1{
2 "api_token_ttl_days": 365,
3 "api_tokens_enabled": true,
4 "legacy_api_tokens_enabled": false
5}
Update JWT settings for the currently active organization.
Was this page helpful?
Previous

List projects

Next
Built with

Authentication

AuthorizationToken
The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example:
curl https://label-studio-host/api/projects -H “Authorization: Token [your-token]”

Request

This endpoint expects an object.
api_token_ttl_daysintegerRequired1-73000
api_tokens_enabledbooleanOptional
Enable JWT API token authentication for this organization
legacy_api_tokens_enabledbooleanOptional
Enable legacy API token authentication for this organization

Response

api_token_ttl_daysinteger1-73000
api_tokens_enabledboolean
Enable JWT API token authentication for this organization
legacy_api_tokens_enabledboolean
Enable legacy API token authentication for this organization