post https://hostname/api/v2/tokens
M2M tokens are temporary tokens that can help you automate some short-term tasks.
You can create this type of token programmatically if you know the username and password of an Administrator level user.
For CI/CD integration, you are expected to use Personal Access Tokens.
M2M tokens will be valid for only 24 hours, and you can create only one token at a time. If you make another token, Kondukto will overwrite the old one.
M2M token creation can be turned off from the configuration file (/etc/kondukto/config.yaml).
Only users who have
administrator
privileges can generate machine-to-machine tokens.