Testing your integration credentials

The Cyanite.ai HTTP API primarily uses GraphQL. GraphQL is a query language that allows having a fully typed API. It also allows you to specify the data that you want to query for.

Enter your integration access token that you received in the previous step. Then click the run button and take a look at the result.

GraphiQL
Query Variables
Please enter your integration access token

In case you entered an incorrect access token you should receive a response similar to this:

{
"errors": [
{
"message": "Not authorized!",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": ["inDepthAnalyses"],
"extensions": {
"code": "ERR_NOT_AUTHORIZED"
}
}
],
"data": null
}

Otherwise, you should receive a list of your uploaded InDepthAnalysis records. In case the list is empty you can create and upload new InDepthAnalysis records over here: Create Dynamic Emotion Analysis Project

E.g. this is how a successful response of an authenticated request should look like:

{
"data": {
"inDepthAnalyses": {
"pageInfo": {
"hasNextPage": true
},
"edges": [
{
"node": {
"id": "898",
"title": "ojk1hsbf6j2.mp3",
"status": "FINISHED",
"result": {
"genres": [
{
"title": "pop",
"confidence": 0
},
{
"title": "rock",
"confidence": 0
},
{
"title": "metal",
"confidence": 0
},
{
"title": "hipHop",
"confidence": 0
},
{
"title": "ambient",
"confidence": 0.65
},
{
"title": "classical",
"confidence": 0.337
},
{
"title": "jazzBlues",
"confidence": 0.007
},
{
"title": "electronicDance",
"confidence": 0
}
]
}
}
},
{
"node": {
"id": "897",
"title": "my-file.mp3",
"status": "NOT_STARTED",
"result": null
}
}
]
}
}
}

The Cyanite.ai API Schema is introspectable. You can find a playground with generated API docs over on our GraphQL Playground.