Graphon API

Create an API key

Creates a personal API key for the caller, or a workspace key when owner is workspace. A viewer can create a personal key. An admin is required for a workspace key. The key works on the API, the storage API, and S3 tools. It appears once.

POST/v1/workspaces/{workspaceId}/api-keys

Authentication

Send your Graphon API key with every request. The value is the whole API key that Graphon showed when you created it. See Authentication.

Authorization: Bearer <GRAPHON_API_KEY>

Path parameters

The workspace id.

Request body

namestring

Display name.

ownerstring (optional)

Who owns the key. Defaults to me. One of: me, workspace.

rolestring (optional)

Role for the new key. It cannot exceed your role. Defaults to your role for a personal key and to viewer for a workspace key. One of: viewer, editor, admin.

expiresAtstring (optional)

Optional expiry in UTC. The time must be in the future.

Was this page helpful?
View as Markdown