Push API tutorials
Push API tutorials
This section contains introductory, intermediate, and advanced Push API tutorials.
These tutorials assume that the reader knows how to make HTTP requests, and is familiar with REST interfaces and microservices in general.
Tutorial setup
You’ll need the following setup to begin the tutorials:
-
A dedicated Coveo organization in which you have administrator privileges. We recommend that you create a free trial organization for this purpose.
Note your organization ID as you’ll need it for the Push API requests. It appears in the URL when you’re in your organization.
-
A public Push source.
-
In the Coveo Administration Console, access the Sources (platform-ca | platform-eu | platform-au) page.
-
Click Add source.
-
In the Add a source of content panel, select Push.
-
Name your source.
-
Click Add source.
-
In the Make content accessible to everyone? dialog, check I understand and click Continue. This will make your source public. In tutorial 2, you’ll edit the source to make it secure.
-
Note your source ID as you’ll need it for the Push API requests.
-
-
An API key that grants you the privileges required to perform all tutorial HTTP requests.
-
In the Coveo Administration Console, access the API Keys (platform-ca | platform-eu | platform-au) page.
-
Click Add key.
-
In the Add an API key panel, name your key.
-
In the Privileges tab, grant the following privileges:
-
Content - Push documents to sources - Custom - Allow (on your new source)
-
Content - Push identities to security providers - Allow for all providers
-
Content - Sources - View
-
Content - Security identity providers - Edit
-
Organization - Activities - Edit
-
Organization - Organization - View
-
-
Click Add key.
-
Copy the key value to your clipboard and store it securely. You’ll need it for the Push API requests.
-
What’s next?
You’re ready to start the tutorials. You should do the three tutorials sequentially, as the outcome of one tutorial may be used as a prerequisite for the next one.
Proceed to Push API tutorial 1: Manage public content.