End of Sale Announcement
Effective May 1, 2026, Okta will no longer sell or renew Advanced Server Access. Existing customers must migrate to Okta Privileged Access within one year of their next scheduled renewal date to maintain service. Read the FAQ | Learn about Okta Privileged Access
Requests a Service User token from the platform. Most API calls require an HTTP Authorization header with a value of Bearer ${AUTH_TOKEN}. To retrieve an auth token, you need to create a Service User and API key, then pass the API key information to this endpoint. Auth tokens may expire at any time, so code that uses them should be prepared to handle a 401 response code by creating a new auth token. By design, this operation does not require a authorization token.
curl -i -X POST \
'https://app.scaleft.com/v1/teams/{team_name}/service_token' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"key_id": "6052868b-1b04-4a14-8288-e6496d7f2f4b",
"key_secret": "uF0SoVBVQP/hJmQSLUZdM2a7ArYzjD8ykzvG7n4tKaOEfSErcwMUUDWpEf4Q42/HaVKPZUfILkzy/bsQFv7WRg=="
}'OK
The JSON Web Token used to authenticate against the API
A timestamp for when the token expires. Formatted in accordance with RFC 3339.
{ "bearer_token": "<bearer_token_value>", "expires_at": "2016-10-18T17:26:30Z", "team_name": "scaleft" }