{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Making Authenticated API Requests","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"making-authenticated-api-requests","__idx":0},"children":["Making Authenticated API Requests"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once you have an access token, you can make calls to the eGain APIs by including it in the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization"]}," header of your request as a Bearer token."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"-H \"Accept: application/json\" \\\n-H \"Authorization: Bearer <your_access_token>\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Domain Usage Reminder:"," ","The domain for calling the actual APIs is https://api.ai.egain.cloud/. Ensure you update the base URL from your token request logic."]}]}]},"headings":[{"value":"Making Authenticated API Requests","id":"making-authenticated-api-requests","depth":1}],"frontmatter":{"seo":{"title":"Making Authenticated API Requests"}},"lastModified":"2026-05-01T21:13:55.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/developer-portal/guides/authentication/making-requests","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}