Sign in

Create resource server

documented

Create a new API resource server (API in Auth0).

POST /api/v2/resource-serversManagement APIno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{AUTH0_DOMAIN}}/api/v2/resource-servers" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"name": "{{$name}}", "identifier": "{{$identifier}}", "signing_alg": "{{$signing_alg}}", "scopes": [ {"value": "{{$scope_value1}}", "description": "{{$scope_description1}}"}, {"value": "{{$scope_value2}}", "description": "{{$scope_description2}}"} ], "allow_offline_access": {{$allow_offline_access}}, "token_lifetime": {{$token_lifetime}}, "skip_consent_for_verifiable_first_party_clients": {{$skip_consent}}, "enforce_policies": {{$enforce_policies}}, "token_dialect": "{{$token_dialect}}"}'"