/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import * as z from "zod/v3";

export type V2ApisGetApiRequestBody = {
  /**
   * Specifies which API to retrieve by its unique identifier.
   *
   * @remarks
   * Must be a valid API ID that begins with 'api_' and exists within your workspace.
   */
  apiId: string;
};

/** @internal */
export type V2ApisGetApiRequestBody$Outbound = {
  apiId: string;
};

/** @internal */
export const V2ApisGetApiRequestBody$outboundSchema: z.ZodType<
  V2ApisGetApiRequestBody$Outbound,
  z.ZodTypeDef,
  V2ApisGetApiRequestBody
> = z.object({
  apiId: z.string(),
});

export function v2ApisGetApiRequestBodyToJSON(
  v2ApisGetApiRequestBody: V2ApisGetApiRequestBody,
): string {
  return JSON.stringify(
    V2ApisGetApiRequestBody$outboundSchema.parse(v2ApisGetApiRequestBody),
  );
}
