Moments Lab BYOS Credential API

The BYOS Credential API from Moments Lab — 2 operation(s) for byos credential.

GitHub OpenAPI

Operations 4

GET /byos-credentials List BYOS credentials #
POST /byos-credentials Create BYOS credential #
GET /byos-credentials/{uid} Get BYOS credential by uid #
PUT /byos-credentials/{uid} Update BYOS credential #

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/moments-lab:moments-lab-byos-credential-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

moments-lab-byos-credential-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Moments Lab BYOS Credential API
  version: '1.0'
  contact: {}
  x-logo:
    url: https://assets.momentslab.com/apiv3-swagger-ui/logo_ML.png
    backgroundColor: '#FFFFFF'
    altText: MomentsLab logo
  description: 'Operations tagged BYOS Credential across 2 of this provider''s published API definitions: moments-lab-openapi.json, moments-lab-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /
- url: https://api.momentslab.io
security:
- Api-token: []
- openId: []
tags:
- name: BYOS Credential
paths:
  /byos-credentials:
    get:
      description: This endpoint allows you to list all the BYOS credentials of the workspace. The sensitive fields are never returned.
      operationId: CredentialController_listCredentials
      parameters:
      - name: X-Nb-Workspace
        in: header
        schema: {}
      responses:
        '200':
          description: The request was successful.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CredentialResponse'
        '400':
          description: 'Something was wrong with the information you provided in the request. <br/> messageKey: A code or key describing the error.<br/> message: A more detailed explanation of what went wrong.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientRequestError'
        '500':
          description: '500: An internal server error occurred. If this happens, you should reach out to Moments Lab support for assistance.<br/>Message: The response will include a message that describes the issue.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerSideError'
      summary: List BYOS credentials
      tags:
      - BYOS Credential
    post:
      description: 'This endpoint allows you to register the credential MomentsLab uses to access your storage: a GCS HMAC key pair, or an AWS IAM role protected by an External ID. The credential is validated against the provider before being stored.'
      operationId: CredentialController_createCredential
      parameters:
      - name: X-Nb-Workspace
        in: header
        schema: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCredentialRequest'
      responses:
        '201':
          description: The BYOS credential was created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CredentialResponse'
        '400':
          description: 'Something was wrong with the information you provided in the request. <br/> messageKey: A code or key describing the error.<br/> message: A more detailed explanation of what went wrong.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientRequestError'
        '500':
          description: '500: An internal server error occurred. If this happens, you should reach out to Moments Lab support for assistance.<br/>Message: The response will include a message that describes the issue.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerSideError'
      summary: Create BYOS credential
      tags:
      - BYOS Credential
    servers:
    - url: /
  /byos-credentials/{uid}:
    get:
      description: This endpoint allows you to get a BYOS credential by its uid. The sensitive fields are never returned.
      operationId: CredentialController_getCredentialByUid
      parameters:
      - name: uid
        required: true
        in: path
        schema:
          type: string
      - name: X-Nb-Workspace
        in: header
        schema: {}
      responses:
        '200':
          description: The request was successful.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CredentialResponse'
        '400':
          description: 'Something was wrong with the information you provided in the request. <br/> messageKey: A code or key describing the error.<br/> message: A more detailed explanation of what went wrong.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientRequestError'
        '500':
          description: '500: An internal server error occurred. If this happens, you should reach out to Moments Lab support for assistance.<br/>Message: The response will include a message that describes the issue.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerSideError'
      summary: Get BYOS credential by uid
      tags:
      - BYOS Credential
    put:
      description: 'This endpoint allows you to update a BYOS credential: its description, or its provider fields for a rotation. The credential type cannot change — create a new credential instead.'
      operationId: CredentialController_updateCredential
      parameters:
      - name: uid
        required: true
        in: path
        schema:
          type: string
      - name: X-Nb-Workspace
        in: header
        schema: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCredentialRequest'
      responses:
        '200':
          description: The BYOS credential was updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CredentialResponse'
        '400':
          description: 'Something was wrong with the information you provided in the request. <br/> messageKey: A code or key describing the error.<br/> message: A more detailed explanation of what went wrong.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientRequestError'
        '500':
          description: '500: An internal server error occurred. If this happens, you should reach out to Moments Lab support for assistance.<br/>Message: The response will include a message that describes the issue.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerSideError'
      summary: Update BYOS credential
      tags:
      - BYOS Credential
    servers:
    - url: /
components:
  schemas:
    CredentialResponse:
      oneOf:
      - $ref: '#/components/schemas/GcsHmacCredentialResponse'
      - $ref: '#/components/schemas/AwsRoleCredentialResponse'
      type: object
      discriminator:
        propertyName: type
        mapping:
          GCS_HMAC: '#/components/schemas/GcsHmacCredentialResponse'
          AWS_ROLE: '#/components/schemas/AwsRoleCredentialResponse'
    UpdateAwsRoleCredentialRequest:
      type: object
      properties:
        type:
          type: string
          enum:
          - AWS_ROLE
        description:
          type: string
        role:
          type: string
          format: aws-iam-role-arn
          pattern: ^arn:aws:iam::\d{12}:role\/[\w+=,.@-]{1,64}$
          description: ARN of IAM role our account can assume to access contents.
        external_id:
          type: string
          format: aws-external-id
          pattern: ^[a-zA-Z0-9+=,.@:/-]{2,1224}$
          description: sts:ExternalId condition enforced by the role's trust policy.
      required:
      - type
      - role
      - external_id
    UpdateGcsHmacCredentialRequest:
      type: object
      properties:
        type:
          type: string
          enum:
          - GCS_HMAC
        description:
          type: string
        access_id:
          type: string
          format: gcs-hmac-access-id
          pattern: ^[a-zA-Z0-9]+$
          description: Access ID of the HMAC key.
        secret:
          type: string
          minLength: 40
          maxLength: 40
          format: base64
          contentEncoding: base64
          pattern: ^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$
          description: Secret of the HMAC key.
      required:
      - type
      - access_id
      - secret
    CreateGcsHmacCredentialRequest:
      type: object
      properties:
        type:
          type: string
          enum:
          - GCS_HMAC
        uid:
          type: string
          format: credential-uid
          pattern: ^[\w-]{1,64}$
          description: Unique identifier of the credential.
        description:
          type: string
        access_id:
          type: string
          format: gcs-hmac-access-id
          pattern: ^[a-zA-Z0-9]+$
          description: Access ID of the HMAC key.
        secret:
          type: string
          minLength: 40
          maxLength: 40
          format: base64
          contentEncoding: base64
          pattern: ^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$
          description: Secret of the HMAC key.
      required:
      - type
      - uid
      - access_id
      - secret
    GcsHmacCredentialResponse:
      type: object
      properties:
        uid:
          type: string
          format: credential-uid
          pattern: ^[\w-]{1,64}$
          description: Unique identifier of the credential.
        description:
          type: string
        status:
          type: string
          enum:
          - VALID
          - UNAVAILABLE
          description: 'Validity of the credential: valid when the last check passed, unavailable if we detected the credentials cannot be used'
        type:
          type: string
          enum:
          - GCS_HMAC
      required:
      - uid
      - status
      - type
    UpdateCredentialRequest:
      oneOf:
      - $ref: '#/components/schemas/UpdateAwsRoleCredentialRequest'
      - $ref: '#/components/schemas/UpdateGcsHmacCredentialRequest'
      type: object
      discriminator:
        propertyName: type
        mapping:
          AWS_ROLE: '#/components/schemas/UpdateAwsRoleCredentialRequest'
          GCS_HMAC: '#/components/schemas/UpdateGcsHmacCredentialRequest'
    CreateCredentialRequest:
      oneOf:
      - $ref: '#/components/schemas/CreateAwsRoleCredentialRequest'
      - $ref: '#/components/schemas/CreateGcsHmacCredentialRequest'
      type: object
      discriminator:
        propertyName: type
        mapping:
          AWS_ROLE: '#/components/schemas/CreateAwsRoleCredentialRequest'
          GCS_HMAC: '#/components/schemas/CreateGcsHmacCredentialRequest'
    AwsRoleCredentialResponse:
      type: object
      properties:
        uid:
          type: string
          format: credential-uid
          pattern: ^[\w-]{1,64}$
          description: Unique identifier of the credential.
        description:
          type: string
        status:
          type: string
          enum:
          - VALID
          - UNAVAILABLE
          description: 'Validity of the credential: valid when the last check passed, unavailable if we detected the credentials cannot be used'
        type:
          type: string
          enum:
          - AWS_ROLE
      required:
      - uid
      - status
      - type
    CreateAwsRoleCredentialRequest:
      type: object
      properties:
        type:
          type: string
          enum:
          - AWS_ROLE
        uid:
          type: string
          format: credential-uid
          pattern: ^[\w-]{1,64}$
          description: Unique identifier of the credential.
        description:
          type: string
        role:
          type: string
          format: aws-iam-role-arn
          pattern: ^arn:aws:iam::\d{12}:role\/[\w+=,.@-]{1,64}$
          description: ARN of IAM role our account can assume to access contents.
        external_id:
          type: string
          format: aws-external-id
          pattern: ^[a-zA-Z0-9+=,.@:/-]{2,1224}$
          description: sts:ExternalId condition enforced by the role's trust policy.
      required:
      - type
      - uid
      - role
      - external_id
    ServerSideError:
      type: object
      properties:
        message:
          type: string
          description: The response will include a message that describes the issue.
      required:
      - message
    ClientRequestError:
      type: object
      properties:
        message_key:
          type: string
          description: A code or key describing the error.
        message:
          type: string
          description: ' A more detailed explanation of what went wrong.'
      required:
      - message_key
      - message
  securitySchemes:
    Api-token:
      type: http
      scheme: bearer
    openId:
      type: openIdConnect
      openIdConnectUrl: https://newsbridge.eu.auth0.com/.well-known/openid-configuration
x-refined-from:
- moments-lab-openapi.json
- moments-lab-openapi.yml