API keys
You can authorize your access using the API keys. All API keys have the same permissions and full account access. The API key can be added to the 'authorization' request header to authorize the request. Each API key has the following fields:
In JSON Format
Example{
"workspaceId": 12,
"id": "67642054b6cc2888638e4600",
"key": "e108d6e3-****-****-****-************",
"label": "Dev API Key",
"createdAt": "2024-12-19T13:32:04.009Z",
}You can check our playground to explore and interact with GraphQL APIs easily and intuitively with real-time documentation.
List API keys
This endpoint returns the API keys for a specific workspace. It uses the following parameters:
Request & Response
POST https://gateway.bcrumbs.net/core/gqExamplequery apiKeys($input: ApiKeysInput!) {
apiKeys(input: $input) {
nodes {
workspaceId
id
key
label
createdAt
}
}
}
input ApiKeysInput {
workspaceId: Int!
label: String
}The query above returns JSON structured like this:
Example{
"nodes": [
{
"workspaceId": 12,
"id": "67642054b6cc2888638e4600",
"key": "e108d6e3-****-****-****-************",
"label": "Dev API Key",
"createdAt": "2024-12-19T13:32:04.009Z",
},
...
]
}Generate an API key
This endpoint lets you generate an API Key.
To get the first API key, visit theΒ API KeysΒ on your dashboard, select a suitable name for the key, and click the "Save" button. The dashboard will navigate to the API Keys listing page, where you can find your key.
Request & Response
POST https://gateway.bcrumbs.net/core/gqExamplemutation genApiKey($input: ApiKeyGenInput!) {
genApiKey(input: $input) {
workspaceId
id
key
label
createdAt
}
}
input ApiKeyGenInput {
workspaceId: Int!
label: String!
}The mutation above returns JSON structured like this:
Example{
"workspaceId": 12,
"id": "67642054b6cc2888638e4600",
"key": "e108d6e3-****-****-****-************",
"label": "Dev API Key",
"createdAt": "2024-12-19T13:32:04.009Z",
}Delete an API key
This endpoint lets you delete an API key.
Request & Response
POST https://gateway.bcrumbs.net/core/gqExamplemutation deleteApiKey($input: ApiKeyDeleteInput!) {
deleteApiKey(input: $input) {
workspaceId
id
key
label
createdAt
}
}
input ApiKeyDeleteInput {
workspaceId: Int!
id: ID!
}The commands above return JSON structured like this:
Example{
"workspaceId": 12,
"id": "67642054b6cc2888638e4600",
"key": "e108d6e3-****-****-****-************",
"label": "Dev API Key",
"createdAt": "2024-12-19T13:32:04.009Z",
}