@digitalocean/dots - v1.0.1
    Preparing search index...

    Interface KeysRequestBuilder

    Builds and executes requests for operations under /v2/gen-ai/anthropic/keys

    interface KeysRequestBuilder {
        byApi_key_uuId(api_key_uuId: string): Api_key_uuItemRequestBuilder;
        get(
            requestConfiguration?: RequestConfiguration<
                KeysRequestBuilderGetQueryParameters,
            >,
        ): Promise<undefined | ApiListAnthropicAPIKeysOutput>;
        post(
            body: ApiCreateAnthropicAPIKeyInputPublic,
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | ApiCreateAnthropicAPIKeyOutput>;
        toGetRequestInformation(
            requestConfiguration?: RequestConfiguration<
                KeysRequestBuilderGetQueryParameters,
            >,
        ): RequestInformation;
        toPostRequestInformation(
            body: ApiCreateAnthropicAPIKeyInputPublic,
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): KeysRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    • To list all Anthropic API keys, send a GET request to /v2/gen-ai/anthropic/keys.

      Parameters

      Returns Promise<undefined | ApiListAnthropicAPIKeysOutput>

      error when the service returns a 401 status code

      error when the service returns a 404 status code

      error when the service returns a 429 status code

      error when the service returns a 500 status code

      error when the service returns a 4XX or 5XX status code

    post

    • post(
          body: ApiCreateAnthropicAPIKeyInputPublic,
          requestConfiguration?: RequestConfiguration<object>,
      ): Promise<undefined | ApiCreateAnthropicAPIKeyOutput>

      To create an Anthropic API key, send a POST request to /v2/gen-ai/anthropic/keys.

      Parameters

      • body: ApiCreateAnthropicAPIKeyInputPublic

        CreateAnthropicAPIKeyInputPublic is used to create a new Anthropic API key for a specific agent.

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns Promise<undefined | ApiCreateAnthropicAPIKeyOutput>

      error when the service returns a 401 status code

      error when the service returns a 404 status code

      error when the service returns a 429 status code

      error when the service returns a 500 status code

      error when the service returns a 4XX or 5XX status code

    • To create an Anthropic API key, send a POST request to /v2/gen-ai/anthropic/keys.

      Parameters

      • body: ApiCreateAnthropicAPIKeyInputPublic

        CreateAnthropicAPIKeyInputPublic is used to create a new Anthropic API key for a specific agent.

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns KeysRequestBuilder