← Back to Context.dev
POST/brand/prefetch
Prefetch brand data for a domain
Signal that you may fetch brand data for a particular domain soon to improve latency. This endpoint does not charge credits and is available for paid customers to optimize future requests. [You must be on a paid plan to use this endpoint]
Context.dev·$0.03 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "context-dev",
path: "/brand/prefetch",
body: {
"domain": "example"
}
});
console.log(output);Body parameters
domainrequired
string
Domain name to prefetch brand data for
timeoutMS
integer
Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).
Response
domain
string
status
string
message
string
key_metadata.credits_consumed
number
key_metadata.credits_remaining
number