Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Skip to Content
API ReferenceInferenceModel Imports

List an organization's model import credentials

The credentials the organization's model imports read their sources with: name, type and a hint to tell two apart, never a secret. An s3_role also shows what the customer's role must trust, and a gcs_federation what the customer's pool must admit.

Required permission

Requires the importcredential.read permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

orl imports credential list
GET
/v1/inference/credentials

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Query Parameters

limit?integer
Range1 <= value <= 200
cursor?string

Response Body

Credentials

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://api.openrelay.inc/v1/inference/credentials'
Example Response
{  "items": [    {      "id": "string",      "orgId": "string",      "type": "hf_token",      "name": "string",      "hint": "string",      "s3Role": {        "roleArn": "string",        "externalId": "string",        "trustPrincipal": "string"      },      "gcsFederation": {        "audience": "string",        "serviceAccount": "string",        "awsAccount": "string",        "subject": "string",        "attributeCondition": "string"      },      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}