By the end of this page you will have an API key, you will have read your own organizations with it, and you will have searched the public directory.
You need a Sureshake account (create one if you don’t have one), curl, and optionally jq to read the output.
Create an API key
- Sign in and open Settings.
- Open the Security section.
- Under API Keys, select Create API Key.
- Enter a Key Name. Leave Permissions set to Read.
- Select Create Key, then copy the key.
The key starts with
sk_. Sureshake shows it once, so store it before you select Done.Put the key in your shell
export SURESHAKE_API_KEY="sk_..."Keep it out of source control and out of browser code.
Read your organizations
curl -sS https://api.sureshake.com/v2/organizations/me \ -H "X-API-Key: $SURESHAKE_API_KEY"A
200response means your key works.datalists the organizations you are an active member of, and it is an empty array if you have none:{ "data": [ { "id": "org-acme-holdings", "name": "Acme Holdings", "slug": "acme-holdings", "status": "active", "createdAt": "2026-11-03T18:00:00.000Z", "updatedAt": "2026-11-03T18:00:00.000Z", "myRole": "owner", "activeMemberCount": 3, "pendingMemberCount": 0 } ], "meta": { "total": 1, "limit": 100, "offset": 0, "hasMore": false } }See
GET /v2/organizations/mefor every field.Search the directory
curl -sS "https://api.sureshake.com/v2/directory?query=acme&limit=5" \ -H "X-API-Key: $SURESHAKE_API_KEY" \ | jq '.data[] | {slug, name: .snapshot.identity.displayName}, .pagination'You get one object per published listing, then the paging details:
{ "slug": "acme-saas-inc-6b81a75d", "name": "Acme SaaS Inc." } { "nextCursor": "eyJzIjoi...", "hasMore": true, "limit": 5 }To get the next page, pass
nextCursorback ascursor. SeeGET /v2/directoryfor the filters.
If a call fails
| Response | What it means | What to do |
|---|---|---|
401 with Invalid or expired API key |
The key is wrong, revoked or expired | Check the value, or create a new key |
401 with Authentication failed. |
This route does not accept API keys | See which routes accept an API key |
403 with API key scope 'read' is not permitted |
The route changes data and your key is read-only | Create a key with Write permission |
400 with FST_ERR_VALIDATION |
A parameter or the body is invalid | The message lists the problem fields |
Next
- Learn the response formats, errors, pagination and rate limits.
- See everything a key can reach.
- Browse the API reference.