Create an Application API Key
Set up your dApp
As a developer you’ll need an API Key for your social application to enable your users to generate data including creating content, following someone and others under the global namespace or your own namespace.
Using API Keys makes sure that
- social data live under specific namespace that belongs to a developer
- no other developer could forge data that don’t belong to their origin.
In the future we’ll gradually replace API Key method with Public Key Infrastructure (PKI).
Next Step
The following mutations
require Authorization
header:
follow
unfollow
Use the resulting apiKey
as your X-API-KEY
header.
{
"X-API-KEY": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTcxNzk4NjkxODQsImVtYWlsIjoiaGlAY3liZXJjb25uZWN0Lm1lIiwidHdpdHRlcklEIjoiQGN5YmVyY29ubmVjdGhxIiwibmFtZXNwYWNlIjoiQ3liZXJDb25uZWN0Iiwib3JpZ2luX2hvc3QiOiJjeWJlcmNvbm5lY3QubWUiLCJpc3MiOiJDeWJlckNvbm5lY3QiLCJleHAiOjE2NjU4NjUyNzQsImlhdCI6MTY2MzI3MzI3NH0.VCqlS7eDzqZGq--WfJ102qVWlgXcLkMgSSlzkl9bQLU"
}