Service Tokens
Get
GET

/api/v2/service-token/

X-API-KEY*
curl --request GET \
  --url https://app.infisical.com/api/v2/service-token/ \
  --header 'X-API-KEY: <x-api-key>'
{
  "serviceTokenData": {
    "_id": "string",
    "createdAt": "2023-01-13T14:16:12.210Z",
    "encryptedKey": "string",
    "environment": "string",
    "expiresAt": "2023-01-13T14:16:12.210Z",
    "iv": "string",
    "name": "string",
    "tag": "string",
    "updatedAt": "2023-01-13T14:16:12.210Z",
    "user": {
      "_id": "string",
      "firstName": "string",
      "lastName": "string"
    },
    "workspace": "string"
  }
}

Authorizations

Authorization[header]required
string

This security definition uses the HTTP 'bearer' scheme, which allows the client to authenticate using a JSON Web Token (JWT) that is passed in the Authorization header of the request.

Response

serviceTokenData
object

Details of service token