Graphon API

Make a request

Export your API key, list the members of your workspace, and invite a teammate with three cURL requests.

You need an API key and a workspace ID. Set up your environment to create an account, choose a workspace, and create a key. Then run these three requests in order.

  1. 1Export your key

    cURL

    export GRAPHON_API_KEY="gak_..."
    export GRAPHON_WORKSPACE_ID="wspq7ws2np5l8z4"

    Graphon showed the API key once when you created it.

  2. 2List members

    cURL

    curl \
      --url "https://api.beta.graphon.ai/v1/workspaces/$GRAPHON_WORKSPACE_ID/members" \
      --header "Authorization: Bearer $GRAPHON_API_KEY"

    A viewer key can read the workspace roster.

  3. 3Invite a member

    cURL

    curl --request POST \
      --url "https://api.beta.graphon.ai/v1/workspaces/$GRAPHON_WORKSPACE_ID/invitations" \
      --header "Authorization: Bearer $GRAPHON_API_KEY" \
      --header "Content-Type: application/json" \
      --data '{"emails":["grace@example.com"],"role":"editor"}'

    An admin key can invite up to 50 addresses at once.

Was this page helpful?
View as Markdown