How to hit the Okta API

Okta's management APIs live on your org's domain at https://<org>.okta.com/api/v1. API tokens use Okta's own SSWS scheme.

Authentication

Create an API token under Security → API → Tokens in your Okta admin console and send it as Authorization: SSWS <token>. In the examples it's written {{OKTA_API_TOKEN}}; {{OKTA_DOMAIN}} is like example.okta.com.

Full reference: https://developer.okta.com/docs/api/

List users

curl "https://{{OKTA_DOMAIN}}/api/v1/users?limit=10" \
  -H "Authorization: SSWS {{OKTA_API_TOKEN}}" \
  -H "Accept: application/json"
Run in PostTaco

List groups

curl https://{{OKTA_DOMAIN}}/api/v1/groups \
  -H "Authorization: SSWS {{OKTA_API_TOKEN}}" \
  -H "Accept: application/json"
Run in PostTaco

List apps

curl https://{{OKTA_DOMAIN}}/api/v1/apps \
  -H "Authorization: SSWS {{OKTA_API_TOKEN}}" \
  -H "Accept: application/json"
Run in PostTaco