Overview
We've put together this API Reference documentation to outline the endpoints available through the Story Protocol API as well as expected Request and Response objects. The Story Protocol API leverages The Graph behind the scenes to index and retrieve data from Story Protocol. Requests can include pagination instructions as well as filters to help you find the information you are looking for.
Authentication
We have whitelisted a single API Key which should be included in your request Header in order for the API Service to authenticate you. The request Header is as follows:
X-API-KEY: D-P66oBXaF9BA_2OtPIq3Y5MnJM=
X-CHAIN: story-testnet, sepolia, 11155111, 1513
Note: Failure to include the X-API-KEY Header will result in an Unauthorized
error
Unauthorized
errorRequest Objects
The API Service accepts the following Request object to help you with pagination and filtering of Responses:
{
"options": {
"pagination": {
"offset": 0,
"limit": 5
},
"where": {
"creator": "string",
"receiever": "string",
"tokenContract": "string",
"frameworkId": "string",
"ipAsset": "string",
"ipId": "string"
},
"orderBy": "blockNumber", // or blockTimestamp
"orderDirection": "DESC" // or "ASC"
}
}