⚒
Get started with Disco's API
How do I get started building with Disco?
You will likely need the following:
- an onboarded Disco Profile
- Any library capable of making http requests (fetch, axios, httpie, etc)
- A valid API token (more below)
Note: At Disco we take privacy very seriously. The API will only return credentials that are made public by the user. Credentials are by default, private.
More info on how to make a credential public by toggling the eye icon here.
Sample Request, in curl:
curl --location 'https://api.disco.xyz/v1/profile/address/0xc5e46e48f1ef5f305afba45c3122021dd09ed3de' \
--header 'Authorization: Bearer <token>'
Javascript:
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer <token>");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.disco.xyz/v1/profile/address/0xc5e46e48f1ef5f305afba45c3122021dd09ed3de", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Last modified 1h ago