{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/posit/main/json-schema/posit-service-token-schema.json", "title": "ServiceToken", "description": "Object containing service token details.", "x-generated": "2026-10-03", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/posit-service-tokens-api-openapi.yml#/components/schemas/ServiceToken", "additionalProperties": false, "properties": { "guid": { "description": "The unique identifier for this service token.", "format": "uuid", "type": "string" }, "name": { "description": "The name for this service token. The name often describes the purpose\nof the token.", "type": "string" }, "key": { "description": "The secret key for this service token. The full key appears only\nwhen you create the token. **Subsequent reads do not include the key.**", "type": "string" }, "scopes": { "description": "The scopes granted to this service token. Supported values:\n`identity:manage`, `nameservice:read`.", "items": { "type": "string" }, "type": "array" }, "created_time": { "description": "Timestamp (in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)\nformat) indicating when you created the token.", "format": "date-time", "type": "string" }, "active_time": { "description": "Timestamp (in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)\nformat) indicating approximately when the token last authenticated.\nThis value is updated when the token is used, but no more than once\nevery 15 minutes.", "format": "date-time", "type": "string" }, "expires_at": { "description": "Timestamp (in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)\nformat) indicating when the token expires, or `null` if the token never\nexpires.", "format": "date-time", "type": [ "string", "null" ] } }, "type": "object" }