Skip to content

Creating script tokens

Nick DeChant edited this page Jan 13, 2016 · 1 revision

Teletraan is now a RESTful service and can handle requests as long as the request contains a valid token.

Teletraan script token: Can only be generated by an environment ADMIN. Can have OPERATOR or ADMIN roles for a specific environment.

Example script token usage, giving a user an environment role:

curl -k -H "Authorization: token putTokenHere" -H "Content-Type: application/json" -X POST --data '{"name":"foo", "role":"OPERATOR"}' https://teletraan.yoursite.com/v1/envs/environmentNameHere/user_roles
  1. Click the 'Config' button on your environment page, then click 'Admin Panel' on the next page's left action menu.

  1. Click the 'Script Tokens' button on the left action menu.

  2. Click the 'Add' button and follow the prompted workflow. Type a one word script name and select a role. Then click the 'Add' button.

  3. When you are finished adding script tokens click 'Save' to generate the tokens. You can view each token by clicking the show 'Show Token' button.