API Clients

Queries and mutations for managing API Clients in the platform.

Queries

Query API Clients

QUERYapiClients
Arguments
where​
String​
sort​
Array of String​
limit​
Int​
offset​
Int​

Get API Client

QUERYapiClient
Arguments
id​
String​

Mutations

Create API Client

MUTATIONcreateApiClient
Arguments
draft​

Delete API Client

MUTATIONdeleteApiClient
Arguments
id​
String​

Output types

APIClientWithoutSecret

API Clients can be used to obtain OAuth 2 access tokens

id​
String​
name​
String​
scope​
String​
createdAt​
lastUsedAt​
Date​
deleteAt​
accessTokenValiditySeconds​
Int​
refreshTokenValiditySeconds​
Int​

APIClientWithSecret

API Clients can be used to obtain OAuth 2 access tokens. The secret is only shown once in the response of creating the API Client.

id​
String​
name​
String​
scope​
String​
createdAt​
lastUsedAt​
Date​
deleteAt​
secret​
String​
accessTokenValiditySeconds​
Int​
refreshTokenValiditySeconds​
Int​

APIClientWithoutSecretQueryResult

offset​
Int​
count​
Int​
total​
Long​
exists​
Boolean​
results​

Input types

CreateApiClient

name​
String​
scope​
String​
deleteDaysAfterCreation​
Int​
accessTokenValiditySeconds​
Int​
refreshTokenValiditySeconds​
Int​