Difficulty: Intermediate
Estimated Time: 20 to 40 minutes

In this scenario you will:

  1. Learn how to create an access token to connect to the API.
  2. Learn how to submit a workflow using curl.
  3. Learn how to look up API documentation.

Let's recap:

  • You can use the info endpoint to check connectivity.
  • You need to create an access token to use the API.
  • API endpoints use JSON not YAML.
  • Webhooks allow you integrate with any service that supports them.
  • You can find API docs in the user interface.

Please let us know what can be improved.

Using the API

Step 1 of 5

Info Endpoint

The Argo Server provides the API. This is secured using Kubernetes service accounts.

All endpoints can be found under http://localhost:2746/api/v1 URL and typically require an access token.

Typically, it is good to be able to check you can access it first. This can be done using the info endpoint:

curl http://localhost:2746/api/v1/info

You should see something like:

{"code":16,"message":"token not valid for running mode"}

That's fine - you can connect - but we need to set-up an access token.