Register
To be able to use the Prefetch Pageviews API, you need to register your domain, verify it, specify valid pages.
So we start by registering the domain. This would send a verification email to the emailId specified. Once verified, you can use the configure api to set the valid pages list.
Register Domain
Request
POST
/v1/registercurl -X POST "https://prefetch.io/api/v1/register" \
-H "Content-Type: application/json" \
-d '{
"clientName": "test-client-1",
"domainName": "{{referer}}",
"emailId": "{{emailId}}"
}'
Response
{
"clientId": "1b7ec7d8-9211-46f2-b14f-14313ac4e275",
"clientSecret": "516698ca-8fef-4d93-afd8-2fc73aef6889"
}
Keep the clientId and clientSecret securely saved to prevent misuse of these.
Verify Email Id
Once register api call is made, a email will be triggered to verify the emailId supplied.
Only after the verification is completed within one hour
, you can start using the Prefetch Pageviews API.
Verification link expired
If verification link is expired, you need to start with registering your app again.