CloudflareAPI icon indicating copy to clipboard operation
CloudflareAPI copied to clipboard

Add Access Service Tokens creation support

Open Maciej-Sitarz-IBM opened this issue 3 years ago • 0 comments

Cloudflare API reference for Access Service Tokens creation: https://api.cloudflare.com/#access-service-tokens-create-access-service-token

Example Cloudflare API call to create Access Service Token:

curl --request POST \
  --url https://api.cloudflare.com/client/v4/accounts/ACCOUNT_ID/access/service_tokens \
  --header 'Authorization: Bearer BEARER_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
	"name": "SERVICE_TOKEN_NAME"
}'

Maciej-Sitarz-IBM avatar Apr 04 '22 14:04 Maciej-Sitarz-IBM