Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coveo access token #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

coveo access token #143

wants to merge 1 commit into from

Conversation

sushantdhopat
Copy link
Contributor

@sushantdhopat sushantdhopat commented Jan 22, 2023

  • when you found this token how you can identify

https://platform.cloud.coveo.com/rest/search
accessToken: 'xx564559b1-0045-48e1-retretertret-fgegertreter'

  • check token valid or not
GET /rest/search HTTP/2
Host: platform.cloud.coveo.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: cross-site
Sec-Fetch-User: ?1
Te: trailers
Authorization: Bearer {{token-here}}
  • now for creating a search token for a particular user with this access token
POST /rest/search/v2/token?organizationid={{org-id}} HTTP/2
Host: platform.cloud.coveo.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0
Content-Type: application/json
Accept: application/json
Authorization: Bearer {{token-here}}
Content-Length: 144

{
  "userIds": [
    {
      "name": "[email protected]",
      "provider": "Email Security Provider",
      "type": "User"
    }
  ]
}

@sushantdhopat
Copy link
Contributor Author

Hey have you cheked this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants