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

    Builds and executes requests for operations under /v2/gen-ai/agents/{agent_uu-id}/api_keys

    interface Api_keysRequestBuilder {
        byApi_key_uuid(api_key_uuid: string): WithApi_key_uuItemRequestBuilder;
        get(
            requestConfiguration?: RequestConfiguration<
                Api_keysRequestBuilderGetQueryParameters,
            >,
        ): Promise<undefined | ApiListAgentAPIKeysOutput>;
        post(
            body: ApiCreateAgentAPIKeyInputPublic,
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | ApiCreateAgentAPIKeyOutput>;
        toGetRequestInformation(
            requestConfiguration?: RequestConfiguration<
                Api_keysRequestBuilderGetQueryParameters,
            >,
        ): RequestInformation;
        toPostRequestInformation(
            body: ApiCreateAgentAPIKeyInputPublic,
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): Api_keysRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    • To list all agent API keys, send a GET request to /v2/gen-ai/agents/{agent_uuid}/api_keys.

      Parameters

      Returns Promise<undefined | ApiListAgentAPIKeysOutput>

      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: ApiCreateAgentAPIKeyInputPublic,
          requestConfiguration?: RequestConfiguration<object>,
      ): Promise<undefined | ApiCreateAgentAPIKeyOutput>

      To create an agent API key, send a POST request to /v2/gen-ai/agents/{agent_uuid}/api_keys.

      Parameters

      • body: ApiCreateAgentAPIKeyInputPublic

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns Promise<undefined | ApiCreateAgentAPIKeyOutput>

      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 agent API key, send a POST request to /v2/gen-ai/agents/{agent_uuid}/api_keys.

      Parameters

      • body: ApiCreateAgentAPIKeyInputPublic

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns Api_keysRequestBuilder