arbastro Connect

API docs

Look up who a Discord member is on arbastro and Roblox from your own website, game or bot. Read only, JSON, and free.

Quick start

1. Make a key on the dashboard: continue with Discord, pick your server, and the API keys tab opens. Copy the key when it appears.

2. Send it in the Authorization header:

curl -H "Authorization: Bearer ac_your_key" \
  https://arbastro.com/connect-api/v1/discord/900000000000000001

3. You get the member's arbastro account and Roblox accounts, as far as the key may see them:

{
  "discord_id": "900000000000000001",
  "arbastro": { "username": "demo", "public_id": "482913650274", "profile_url": "https://arbastro.com/users/demo" },
  "roblox": [
    { "provider": "roblox", "id": "55", "username": "DemoBuilder", "display_name": "Demo Builder",
      "profile_url": "https://www.roblox.com/users/55/profile", "primary": true }
  ]
}

Keys

A server key answers for one server. Make it in that server's dashboard; you need Manage Server there. It sees what members made public, plus what members shared with that server, and it is the only key that can ask whether a member verified there.

An account key belongs to your arbastro account and sees only what is public.

A key is shown once, when it is made. arbastro keeps only a hash of it, so a lost key cannot be shown again: rotate it to get a new one. Rotating and revoking both stop the old key at once. Keep keys on your server; a key in a web page or a game client can be read by anyone.

What a key can see

Members choose, for each linked account, public or private, in their arbastro settings.

Public accounts are visible to every key. A private account is visible only to a server key for a server the member shared it with, and the member can stop sharing at any time. A member's Discord account is also visible to a server key for a server they verified in.

A lookup by a private account returns not_found, the same answer as an id nobody linked, so the API never confirms a link the member hid. The arbastro username appears only if the member's profile is public. Emails are never returned.

Endpoints

Base URL: https://arbastro.com/connect-api/v1. Ids are strings of digits.

GET/discord/{discord_id}

The arbastro account and Roblox accounts behind a Discord account. Fields: discord_id, arbastro (null when the profile is private), roblox (a list).

GET/roblox/{roblox_id}

The Discord accounts linked to the same arbastro account as a Roblox account. Fields: roblox_id, arbastro, discord (a list).

{ "roblox_id": "55", "arbastro": null,
  "discord": [ { "provider": "discord", "id": "900000000000000001", "username": "demo", "primary": true } ] }

GET/guilds/{guild_id}/members/{discord_id}

Whether a member verified in your server. Server key for that server only. Fields: verified, and when verified: verified_at, last_checked, roblox.

{ "guild_id": "123456789012345678", "discord_id": "900000000000000001", "verified": true,
  "verified_at": "2026-11-20T18:04:11Z", "last_checked": "2026-11-27T02:00:00Z", "roblox": [ ... ] }

GET/users/{discord_id}/connections

Every account the key may see: Discord, Roblox, GitHub, YouTube, X, TikTok and the rest. Fields: discord_id, connections (a list of provider, id, username, display_name, profile_url, primary).

Errors

Every error is JSON with a code you can test for and a message you can show:

{ "error": { "code": "not_found", "message": "Nothing visible to this key matches." } }
missing_key
401
No Authorization header, or not in the form Bearer ac_...
invalid_key
401
The key does not exist.
revoked_key
401
The key was revoked or rotated. Use the new one.
server_key_needed
403
This endpoint answers only to a server key.
wrong_server
403
The server key belongs to a different server than the one in the path.
bad_request
400
An id in the path is not a number.
not_found
404
No account matches, or the match is private to this key.
unknown_endpoint
404
No such path.
rate_limited
429
Over the key's requests a minute. Wait for the Retry-After seconds.

Rate limits

Each key has its own limit a minute, 60 unless you set another when making it (up to 600). Every response carries X-RateLimit-Limit. Over the limit you get 429 with Retry-After: 60.

Every request is logged with the key, the path, the status and the time, and kept 90 days. Server admins see their keys' requests in the dashboard.

Examples

curl: is this member verified in my server?

curl -s -H "Authorization: Bearer $ARBASTRO_KEY" \
  https://arbastro.com/connect-api/v1/guilds/123456789012345678/members/900000000000000001

JavaScript (Node 18 and later, or Deno)

const KEY = process.env.ARBASTRO_KEY; // keep it on the server

async function robloxFor(discordId) {
  const res = await fetch(`https://arbastro.com/connect-api/v1/discord/${discordId}`, {
    headers: { Authorization: `Bearer ${KEY}` },
  });
  if (res.status === 404) return [];            // not linked, or private to this key
  if (res.status === 429) throw new Error("slow down");
  const body = await res.json();
  if (!res.ok) throw new Error(body.error.code);
  return body.roblox;                           // [{ id, username, ... }]
}

JavaScript: find the Discord account for a Roblox player

const res = await fetch(`https://arbastro.com/connect-api/v1/roblox/${robloxUserId}`, {
  headers: { Authorization: `Bearer ${process.env.ARBASTRO_KEY}` },
});
const { discord } = res.ok ? await res.json() : { discord: [] };

Secured by arbastro Inc.