This endpoint is deprecated and will be removed in the future.We recommend switching to using Machine Identities.
Authorizations
An access token in Infisical
Response
Default Response
The response is of type object
.
curl --request GET \
--url https://us.infisical.com/api/v2/service-token \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"name": "<string>",
"scopes": "<any>",
"permissions": [
"<string>"
],
"lastUsed": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"secretHash": "<string>",
"encryptedKey": "<string>",
"iv": "<string>",
"tag": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"projectId": "<string>",
"expiryNotificationSent": false,
"workspace": "<string>",
"user": {
"authMethods": [
"<string>"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"devices": "<any>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"mfaMethods": [
"<string>"
],
"__v": 0,
"_id": "<string>"
},
"_id": "<string>",
"__v": 0
}
Return Infisical Token data
curl --request GET \
--url https://us.infisical.com/api/v2/service-token \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"name": "<string>",
"scopes": "<any>",
"permissions": [
"<string>"
],
"lastUsed": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"secretHash": "<string>",
"encryptedKey": "<string>",
"iv": "<string>",
"tag": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"projectId": "<string>",
"expiryNotificationSent": false,
"workspace": "<string>",
"user": {
"authMethods": [
"<string>"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"devices": "<any>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"mfaMethods": [
"<string>"
],
"__v": 0,
"_id": "<string>"
},
"_id": "<string>",
"__v": 0
}
An access token in Infisical
Default Response
The response is of type object
.
Was this page helpful?