OpenRelay Account API

The signed-in user: profile, memberships, and first-time onboarding.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/me Get my user profile and org memberships · Current user profile and org memberships #
Ask an LLM
“Which organizations do I belong to, and what is my profile?”
“Can I see my own user profile through the API?”
Tell an agent
Show my profile and organization memberships.
List the orgs I am a member of.
GET /v1/me/invites List pending organization invites · Pending org invites addressed to the signed-in user's email #
Ask an LLM
“Do I have any pending invites to organizations?”
“Which org invites are still waiting for me to accept?”
Tell an agent
List my pending organization invites.
Show every org invite addressed to my email.
POST /v1/me/invites/{orgId}/accept Accept an organization invite · Accept a pending org invite (session only) #
Ask an LLM
“How do I accept an invite to an organization?”
“What happens to an invite once I accept it?”
Tell an agent
Accept the invite to org {orgId}.
Join organization {orgId} by accepting its invite.
POST /v1/me/invites/{orgId}/decline Decline an organization invite · Decline a pending org invite (session only) #
Ask an LLM
“Can I decline an organization invite without joining?”
“What happens to an invite I choose not to accept?”
Tell an agent
Decline the invite to org {orgId}.
Turn down organization {orgId}'s invite.
PATCH /v1/me/profile Update my user profile · Update the caller's profile #
Ask an LLM
“Can I change my full name or avatar?”
“How do I set my default organization?”
Tell an agent
Set my full name to {fullName}.
Update my profile with avatar {avatarUrl}.
POST /v1/onboarding/bootstrap Create my profile and first organization · Create the caller's profile and first org (idempotent) #
Ask an LLM
“How do I onboard as a new user with a first organization?”
“Is creating my profile and org idempotent?”
Tell an agent
Create my profile and first organization named {orgName}.
Onboard as a new user with organization {orgName}.
GET /v1/whoami Who am I and which org am I acting in? · The current principal and the org it acts in #
Ask an LLM
“Which principal am I calling as, and which org does my request act in?”
“Can I check my current principal and active org?”
Tell an agent
Tell me who I am and which organization I act in.
Show my current principal and active org.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/openrelay:openrelay-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

openrelay-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: The OpenRelay control-plane REST API. Deploy GPU VMs and inference clusters, manage organizations and billing, and automate your infrastructure. All requests are authenticated with an API key (`vl_…`) unless noted otherwise.
  title: OpenRelay Account API
  version: 0.1.0
servers:
- description: Production
  url: https://api.openrelay.inc
- description: Beta
  url: https://api.beta.openrelay.inc
- description: Local development
  url: http://localhost:8083
tags:
- description: 'The signed-in user: profile, memberships, and first-time onboarding.'
  name: Account
paths:
  /v1/me:
    get:
      description: Returns the signed-in user's profile and organization memberships. Requires a dashboard session token; API keys cannot call this endpoint.
      operationId: getMe
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Me'
          description: The caller's profile + orgs
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
      - apiKey: []
      summary: Current user profile and org memberships
      tags:
      - Account
      x-openrelay-cli:
        hidden: true
      x-openrelay-mcp:
        exclude: true
  /v1/me/invites:
    get:
      description: Returns unexpired pending invites whose invited email matches the session's email. Requires a dashboard session token; API keys are org service accounts and cannot hold or accept invites.
      operationId: listMyInvites
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/MyInvite'
                type: array
          description: Pending invites for the caller
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
      - apiKey: []
      summary: Pending org invites addressed to the signed-in user's email
      tags:
      - Account
      x-openrelay-cli:
        hidden: true
      x-openrelay-mcp:
        exclude: true
  /v1/me/invites/{orgId}/accept:
    post:
      description: 'Creates the membership for the invite addressed to the session''s email in the given org, then consumes the invite. This is the only way an invite becomes a membership: the invitee must be authenticated with the invited email and act explicitly.'
      operationId: acceptOrgInvite
      parameters:
      - in: path
        name: orgId
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AcceptInviteResult'
          description: Joined the organization
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '410':
          $ref: '#/components/responses/Gone'
      security:
      - apiKey: []
      summary: Accept a pending org invite (session only)
      tags:
      - Account
      x-openrelay-cli:
        hidden: true
      x-openrelay-mcp:
        exclude: true
  /v1/me/invites/{orgId}/decline:
    post:
      operationId: declineOrgInvite
      parameters:
      - in: path
        name: orgId
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Declined (idempotent)
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
      - apiKey: []
      summary: Decline a pending org invite (session only)
      tags:
      - Account
      x-openrelay-cli:
        hidden: true
      x-openrelay-mcp:
        exclude: true
  /v1/me/profile:
    patch:
      description: Requires a signed-in dashboard session token; API keys cannot call this endpoint.
      operationId: updateProfile
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProfileRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserProfile'
          description: Updated
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      security:
      - apiKey: []
      summary: Update the caller's profile
      tags:
      - Account
      x-openrelay-cli:
        hidden: true
      x-openrelay-mcp:
        exclude: true
  /v1/onboarding/bootstrap:
    post:
      description: Requires a signed-in dashboard session token; API keys cannot call this endpoint.
      operationId: bootstrap
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BootstrapRequest'
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BootstrapResult'
          description: Bootstrapped (or already existed)
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
      - apiKey: []
      summary: Create the caller's profile and first org (idempotent)
      tags:
      - Account
      x-openrelay-cli:
        hidden: true
      x-openrelay-mcp:
        exclude: true
  /v1/whoami:
    get:
      description: Returns the calling principal (API key or user session) and the organization the request acts in. For an API key that org is fixed by the key; for a session it is the active org, and availableOrgs lists every org the user belongs to. Unlike /v1/me this works for API keys and does not onboard.
      operationId: whoami
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Whoami'
          description: The caller's principal + acting org
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
      - apiKey: []
      summary: The current principal and the org it acts in
      tags:
      - Account
      x-openrelay-mcp:
        default: true
components:
  schemas:
    Me:
      properties:
        organizations:
          items:
            $ref: '#/components/schemas/OrgMembership'
          type: array
        user:
          $ref: '#/components/schemas/UserProfile'
      required:
      - user
      - organizations
      type: object
    BootstrapResult:
      properties:
        organizationId:
          type: string
        role:
          type: string
      required:
      - organizationId
      - role
      type: object
    OrgFeatures:
      description: Per-org feature entitlements the dashboard gates its UI on.
      properties:
        batch:
          description: The org is allowlisted for the Batch API (batch-api.md §8).
          type: boolean
        publicEndpoint:
          deprecated: true
          description: Vestigial, always false. The public-endpoint feature is GA (ungated); this field is kept only to avoid a breaking response-contract change and will be removed in a follow-up deprecation PR.
          type: boolean
      required:
      - batch
      - publicEndpoint
      type: object
    OrgMembership:
      properties:
        features:
          $ref: '#/components/schemas/OrgFeatures'
        name:
          type: string
        organizationId:
          type: string
        role:
          type: string
      required:
      - organizationId
      - name
      - role
      - features
      type: object
    MyInvite:
      properties:
        expiresAt:
          type: string
        invitedAt:
          type: string
        inviterEmail:
          description: Email of the user who sent the invite, when resolvable.
          type: string
        organizationId:
          type: string
        organizationName:
          type: string
        role:
          type: string
      required:
      - organizationId
      - role
      - invitedAt
      type: object
    UpdateProfileRequest:
      properties:
        avatarUrl:
          type: string
        defaultOrganizationId:
          type: string
        fullName:
          type: string
      type: object
    Error:
      properties:
        code:
          type: string
        error:
          type: string
      required:
      - error
      type: object
    UserProfile:
      properties:
        avatarUrl:
          type: string
        defaultOrganizationId:
          type: string
        email:
          type: string
        fullName:
          type: string
        id:
          type: string
      required:
      - id
      - email
      type: object
    AcceptInviteResult:
      properties:
        organizationId:
          type: string
        role:
          type: string
      required:
      - organizationId
      - role
      type: object
    BootstrapRequest:
      properties:
        orgName:
          type: string
      type: object
    Whoami:
      properties:
        availableOrgs:
          description: Every org the user belongs to (session only).
          items:
            $ref: '#/components/schemas/OrgMembership'
          type: array
        email:
          description: Set for a user session.
          type: string
        organizationId:
          description: The org this request acts in (fixed for a key, the active org for a session; may be empty for a session mid-onboarding).
          type: string
        organizationName:
          type: string
        principalType:
          description: Whether the caller authenticated with an API key or a user session.
          enum:
          - api_key
          - user
          type: string
        role:
          description: The user's role in the acting org (session only).
          type: string
        scopes:
          description: The API key's scopes (key principal only).
          items:
            type: string
          type: array
        userId:
          description: Set for a user session.
          type: string
      required:
      - principalType
      - organizationId
      type: object
  responses:
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Missing or invalid API key
    Gone:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: The resource existed but is no longer usable (e.g. an expired invite)
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: API key lacks the required scope
    Conflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: The request conflicts with existing state
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Resource not found
  securitySchemes:
    apiKey:
      description: 'OpenRelay API key. Send it as `Authorization: Bearer vl_…`.'
      scheme: bearer
      type: http