OpenRelay Organizations API

Organizations and their members. Most resources are scoped to an org.

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 9

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

POST /v1/orgs Create an organization · Create an organization (caller becomes owner) #
Ask an LLM
“How do I create a new organization and become its owner?”
“Can I set a billing email when creating an organization?”
Tell an agent
Create an organization named {name}.
Create organization {name} with billing email {billingEmail}.
GET /v1/orgs/{orgId} Get an organization · Get an organization #
Ask an LLM
“What are the details of one organization?”
“Can I look up an organization by its ID?”
Tell an agent
Get organization {orgId}.
Show the details of org {orgId}.
PATCH /v1/orgs/{orgId} Update an organization · Update an organization (owner/admin) #
Ask an LLM
“Can I change an organization's name or billing email?”
“How do I rename an existing organization?”
Tell an agent
Rename organization {orgId} to {name}.
Change the billing email of org {orgId} to {billingEmail}.
GET /v1/orgs/{orgId}/invites List pending invites to an organization · List an org's pending invites (owner/admin) #
Ask an LLM
“Who is still waiting to join my organization?”
“Can I see the pending invites for an org?”
Tell an agent
List pending invites for organization {orgId}.
Show who has been invited to org {orgId} but hasn't accepted yet.
DELETE /v1/orgs/{orgId}/invites/{email} Revoke a pending invite to an organization · Revoke a pending invite (owner/admin) #
Ask an LLM
“Can I cancel an invite I sent to someone?”
“How do I remove a pending invite to an org?”
Tell an agent destructive · confirm first
Revoke the invite to {email} in organization {orgId}.
Cancel the pending invite {email} for org {orgId}.
GET /v1/orgs/{orgId}/members List members of an organization · List an org's members #
Ask an LLM
“Who are the members of my organization?”
“Can I see every user in an org?”
Tell an agent
List the members of organization {orgId}.
Show everyone in org {orgId}.
POST /v1/orgs/{orgId}/members/add Invite a member to an organization · Invite a member by email (owner/admin) #
Ask an LLM
“How do I invite someone to my organization?”
“Can I set a role when inviting a new member?”
Tell an agent
Invite {email} as {role} to organization {orgId}.
Send an invite to {email} in org {orgId} with the {role} role.
DELETE /v1/orgs/{orgId}/members/{userId} Remove a member from an organization · Remove a member (owner/admin) #
Ask an LLM
“Can I remove someone from my organization?”
“What happens to a member's access when I remove them?”
Tell an agent destructive · confirm first
Remove user {userId} from organization {orgId}.
Kick {userId} out of org {orgId}.
PATCH /v1/orgs/{orgId}/members/{userId} Change a member's role in an organization · Update a member's role (owner/admin) #
Ask an LLM
“Can I promote or demote a member's role?”
“How do I change someone's role in an org?”
Tell an agent
Make user {userId} a {role} in organization {orgId}.
Change {userId}'s role in org {orgId} to {role}.

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-organizations-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-organizations-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 Organizations 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: Organizations and their members. Most resources are scoped to an org.
  name: Organizations
paths:
  /v1/orgs:
    post:
      description: Requires a signed-in dashboard session token; API keys cannot call this endpoint.
      operationId: createOrg
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrgRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BootstrapResult'
          description: Created (caller is owner)
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          $ref: '#/components/responses/Conflict'
      security:
      - apiKey: []
      summary: Create an organization (caller becomes owner)
      tags:
      - Organizations
      x-openrelay-cli:
        hidden: true
      x-openrelay-mcp:
        exclude: true
  /v1/orgs/{orgId}:
    get:
      operationId: getOrg
      parameters:
      - in: path
        name: orgId
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Organization'
          description: The organization
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
      - apiKey: []
      summary: Get an organization
      tags:
      - Organizations
    patch:
      operationId: updateOrg
      parameters:
      - in: path
        name: orgId
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOrgRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Organization'
          description: Updated
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
      - apiKey: []
      summary: Update an organization (owner/admin)
      tags:
      - Organizations
  /v1/orgs/{orgId}/invites:
    get:
      operationId: listOrgInvites
      parameters:
      - in: path
        name: orgId
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/Invite'
                type: array
          description: Pending invites
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      security:
      - apiKey: []
      summary: List an org's pending invites (owner/admin)
      tags:
      - Organizations
  /v1/orgs/{orgId}/invites/{email}:
    delete:
      operationId: revokeOrgInvite
      parameters:
      - in: path
        name: orgId
        required: true
        schema:
          type: string
      - in: path
        name: email
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Revoked
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      security:
      - apiKey: []
      summary: Revoke a pending invite (owner/admin)
      tags:
      - Organizations
      x-openrelay-mcp:
        destructiveHint: true
  /v1/orgs/{orgId}/members:
    get:
      operationId: listOrgMembers
      parameters:
      - in: path
        name: orgId
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/Member'
                type: array
          description: Members
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      security:
      - apiKey: []
      summary: List an org's members
      tags:
      - Organizations
  /v1/orgs/{orgId}/members/add:
    post:
      description: Records a pending invite and emails the address. The response status is always "invited"; the user becomes a member only after they accept (POST /v1/me/invites/{orgId}/accept). Re-inviting the same email refreshes the invite's role and expiry. 409 if the email already belongs to a member.
      operationId: addOrgMember
      parameters:
      - in: path
        name: orgId
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddMemberRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Member'
          description: Added
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
      security:
      - apiKey: []
      summary: Invite a member by email (owner/admin)
      tags:
      - Organizations
  /v1/orgs/{orgId}/members/{userId}:
    delete:
      operationId: removeOrgMember
      parameters:
      - in: path
        name: orgId
        required: true
        schema:
          type: string
      - in: path
        name: userId
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Removed
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      security:
      - apiKey: []
      summary: Remove a member (owner/admin)
      tags:
      - Organizations
      x-openrelay-mcp:
        destructiveHint: true
    patch:
      operationId: updateOrgMemberRole
      parameters:
      - in: path
        name: orgId
        required: true
        schema:
          type: string
      - in: path
        name: userId
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMemberRoleRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Member'
          description: Updated
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
      - apiKey: []
      summary: Update a member's role (owner/admin)
      tags:
      - Organizations
components:
  schemas:
    BootstrapResult:
      properties:
        organizationId:
          type: string
        role:
          type: string
      required:
      - organizationId
      - role
      type: object
    AddMemberRequest:
      properties:
        email:
          type: string
        role:
          enum:
          - admin
          - member
          - viewer
          type: string
      required:
      - email
      - role
      type: object
    Member:
      properties:
        avatarUrl:
          type: string
        email:
          type: string
        fullName:
          type: string
        invitedAt:
          type: string
        joinedAt:
          type: string
        role:
          type: string
        status:
          enum:
          - active
          - invited
          type: string
        userId:
          type: string
      required:
      - userId
      - role
      type: object
    Invite:
      properties:
        email:
          type: string
        expiresAt:
          description: RFC3339; the invite cannot be accepted after this time. Re-invite to refresh.
          type: string
        invitedAt:
          type: string
        invitedBy:
          type: string
        role:
          type: string
      required:
      - email
      - role
      - invitedAt
      type: object
    UpdateOrgRequest:
      properties:
        billingEmail:
          type: string
        name:
          type: string
      type: object
    Error:
      properties:
        code:
          type: string
        error:
          type: string
      required:
      - error
      type: object
    Organization:
      properties:
        billingEmail:
          type: string
        createdAt:
          type: string
        id:
          type: string
        isProvider:
          type: boolean
        name:
          type: string
        plan:
          type: string
        shortId:
          type: string
        slug:
          type: string
      required:
      - id
      - shortId
      - name
      - slug
      - billingEmail
      - plan
      type: object
    UpdateMemberRoleRequest:
      properties:
        role:
          enum:
          - owner
          - admin
          - member
          - viewer
          type: string
      required:
      - role
      type: object
    CreateOrgRequest:
      properties:
        billingEmail:
          type: string
        name:
          type: string
        slug:
          type: string
      required:
      - name
      type: object
  responses:
    Conflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: The request conflicts with existing state
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: The request is invalid
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Missing or invalid API key
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: API key lacks the required scope
    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