Inference Providers

Create gateway access grant

Changed on

Links a model group and credential set from this provider to an organization, team or member audience and returns the grant. An identical existing grant returns access_grant_exists. Requires the Manage Gateway providers permission and enabled Gateway management; session callers must recently reauthenticate.

post/v1/inference-providers/{inferenceProviderId}/access-grants

Request

  • Base URL
    https://api.openworklabs.com
  • URL
    https://api.openworklabs.com/v1/inference-providers/{inferenceProviderId}/access-grants
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

inferenceProviderIdstring typeid required

Den TypeID with 'ipr_' prefix and a 26-character base32 suffix.

Request body

modelGroupIdstring typeid required

Den TypeID with 'gmg_' prefix and a 26-character base32 suffix.

credentialSetIdstring typeid required

Den TypeID with 'gcs_' prefix and a 26-character base32 suffix.

Response

Create gateway access grant

Changes

    • info

      response property anyOf[InvalidRequestError]/details/items/path/items/ list-of-types was narrowed by removing types number from media type application/json of response 400

    • info

      added the optional property //// to the response with the status