{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Generate Client Credentials Grant Type Token","description":"Accelerate E&P application development and protect your innovation by consuming our Data and Domain APIs / Platform APIs.","lang":"en-US","meta":[{"name":"robots","content":"noindex"}],"llmstxt":{"hide":true,"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"generate-client-credentials-grant-type-token","__idx":0},"children":["Generate Client Credentials Grant Type Token"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"pre-requisites","__idx":1},"children":["Pre-requisites:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Register your client with SAuth and collect your client secret. Refer to ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/sauth/tutorial/authenticator-service"},"children":["Cloud Security: Authentication & Authorization"]}," for more information."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use the cURL given below to generate a CCG token."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CURL Request"]},":"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sample Request"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sample Response"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["curl -X POST \\ ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"  'https://csi.slb.com/v2/token' \\ ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"  -H 'Cache-Control: no-cache' \\ ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"  -H 'Content-Type: application/json' \\ ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"  -d '{ ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"        \"client_id\":\"YOUR_CLIENT_ID\",",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"        \"client_secret\":\"YOUR_CLIENT_SECRET\",",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"        \"grant_type\":\"client_credentials\",",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"        \"scope\": \"ntm-master-svc-ntm.slbservice.com\", ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"   }'"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["{ ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"  \"access_token\": \"ACCESS_TOKEN\" ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},", ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"  \"expires_in\": 3600 ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},",",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"  \"token_type\": \"Bearer\" ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},",}"]}]}]}]}]}]},"headings":[{"value":"Generate Client Credentials Grant Type Token","id":"generate-client-credentials-grant-type-token","depth":3},{"value":"Pre-requisites:","id":"pre-requisites","depth":4}],"frontmatter":{"seo":{"title":"Generate Client Credentials Grant Type Token"}},"lastModified":"2025-11-07T15:44:55.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/solutions/ntm/tutorial/ntm-generate-ccg-token","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}