skip to content
Alvin Lucillo

Get auth0 api id

/ 1 min read

💻 Tech

Using the auth0 CLI, you can retrieve details like a specific API’s ID. For example, the command below retrieves all the APIs in JSON then passes it to jq to select the first API’s id.

auth0 apis list --json | jq -r 'map(select(.name == "My API"))[0].id'