Language:

/tokens

POST

Create Token

Creates a new developer token. Upon successful creation, copy and save the returned token value from the response. This is the only time the token will be available and visible.

Please sign in to view your instance’s unique identifier

URL Endpoint

https://accounts.api.zesty.io/v1/tokens
Please sign in to view your token

Authentication Header

Bearer YOUR_APP_SID 

Request Body

{
	"roleZUID": "{{role_zuid}}",
	"name": "Example Token Name"
}
GET

Get Token

Gets information about a given token based on its ZUID. NOTE - the token will not be visible upon retrieval

Please sign in to view your instance’s unique identifier

URL Endpoint

https://accounts.api.zesty.io/v1/tokens/{{token_zuid}}
Please sign in to view your token

Authentication Header

Bearer YOUR_APP_SID 
GET

Get Instance Tokens

Please sign in to view your instance’s unique identifier

URL Endpoint

https://accounts.api.zesty.io/v1/instances/8-xxxxxxxxx/tokens
Please sign in to view your token

Authentication Header

Bearer YOUR_APP_SID 
PUT

Update Token

Updates a single token by its ZUID. The optional query param action can be one of the following values:

  • renew
Please sign in to view your instance’s unique identifier

URL Endpoint

https://accounts.api.zesty.io/v1/tokens/{{token_zuid}}
Please sign in to view your token

Authentication Header

Bearer YOUR_APP_SID 
DELETE

Delete Token

Please sign in to view your instance’s unique identifier

URL Endpoint

https://accounts.api.zesty.io/v1/tokens/{{token_zuid}}
Please sign in to view your token

Authentication Header

Bearer YOUR_APP_SID 

;