restricted_keys

Create a restricted API key.

Changed on

Create a restricted API key with specific resource scopes. Use a standard API key (ak_) or a restricted key (rk_) with RESOURCE_TYPE_ACCOUNT write scope.

post/v1/restricted_keys

Request

  • Base URL: https://api.runloop.ai
  • URL: https://api.runloop.ai/v1/restricted_keys
  • Auth: HTTP bearer

Request body

namestring
expires_at_msinteger nullable

Response

OK

idstring
namestring
key_secretstring
expires_at_msinteger nullable

Changes

    • breaking

      removed the enum value RESOURCE_TYPE_REPO_CONNECTIONS of the request property //

    • info

      removed the RESOURCE_TYPE_REPO_CONNECTIONS enum value from the // response property for the response status

    • breaking

      the request property became not nullable