Skip to content

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.

3 participants