Configure a bot to call runops API and automate things on behalf of your team.
Some companies commonly have some repetitive routines that needs to be performed. Even though a user can do that manually, sometimes it is more effective to automate things using a bot. Runops API, that handle requests from our many interface (slack, CLI, portal) can be accessed directly by a machine, and do the same things a user would do. This is a m2m (machine-to-machine) flow.
Ask someone from runops to provide your company a
client-id and a
Those are super secret, and in the wrong hands, can cause some damage (i.e. run tasks on organisation behalf).
The token is issued by our auth provider (auth0), and the initial request is done directly on their domain.
Except for the
client_secret, all other parameters should be sent as
per the example.
The response contains a JWT
access_token, that is used on subsequent requests.
Token must be sent as
Bearer xxx in the
Authorization header of the request.
In this example, a list targets using the token:
botuser will be created in your org, and used to perform all activities. (
- For analytics purposes, all actions taken with this token will be assigned to the bot user
- The bot user is subject to access control as any other user (using the
- The m2m credentials in the wrong hands can cause some harm