{"components":{"schemas":{"AgentConfigurationV1":{"description":"A reusable agent configuration","properties":{"agent_id":{"description":"The unique identifier of the agent configuration","type":"string"},"config":{"$ref":"#/components/schemas/AgentConfigurationV1Config","description":"The agent configuration object"},"created_at":{"description":"Timestamp when the configuration was created","format":"date-time","type":"string"},"metadata":{"additionalProperties":{"type":"string"},"description":"A map of arbitrary key-value pairs for labeling or organizing the agent configuration","type":"object"},"updated_at":{"description":"Timestamp when the configuration was last updated","format":"date-time","type":"string"}},"required":["agent_id","config"],"title":"AgentConfigurationV1","type":"object"},"AgentConfigurationV1Config":{"description":"The agent configuration object","properties":{},"title":"AgentConfigurationV1Config","type":"object"},"AgentThinkModelsV1Response":{"properties":{"models":{"items":{"$ref":"#/components/schemas/AgentThinkModelsV1ResponseModelsItems"},"type":"array"}},"required":["models"],"title":"AgentThinkModelsV1Response","type":"object"},"AgentThinkModelsV1ResponseModelsItems":{"oneOf":[{"$ref":"#/components/schemas/AgentThinkModelsV1ResponseModelsItems0"},{"$ref":"#/components/schemas/AgentThinkModelsV1ResponseModelsItems1"},{"$ref":"#/components/schemas/AgentThinkModelsV1ResponseModelsItems2"},{"$ref":"#/components/schemas/AgentThinkModelsV1ResponseModelsItems3"},{"$ref":"#/components/schemas/AgentThinkModelsV1ResponseModelsItems4"}],"title":"AgentThinkModelsV1ResponseModelsItems"},"AgentThinkModelsV1ResponseModelsItems0":{"description":"OpenAI models","properties":{"id":{"$ref":"#/components/schemas/AgentThinkModelsV1ResponseModelsItemsOneOf0Id","description":"The unique identifier of the OpenAI model"},"name":{"description":"The display name of the model","type":"string"},"provider":{"description":"The provider of the model"}},"required":["id","name","provider"],"title":"AgentThinkModelsV1ResponseModelsItems0","type":"object"},"AgentThinkModelsV1ResponseModelsItems1":{"description":"Anthropic models","properties":{"id":{"$ref":"#/components/schemas/AgentThinkModelsV1ResponseModelsItemsOneOf1Id","description":"The unique identifier of the Anthropic model"},"name":{"description":"The display name of the model","type":"string"},"provider":{"description":"The provider of the model"}},"required":["id","name","provider"],"title":"AgentThinkModelsV1ResponseModelsItems1","type":"object"},"AgentThinkModelsV1ResponseModelsItems2":{"description":"Google models","properties":{"id":{"$ref":"#/components/schemas/AgentThinkModelsV1ResponseModelsItemsOneOf2Id","description":"The unique identifier of the Google model"},"name":{"description":"The display name of the model","type":"string"},"provider":{"description":"The provider of the model"}},"required":["id","name","provider"],"title":"AgentThinkModelsV1ResponseModelsItems2","type":"object"},"AgentThinkModelsV1ResponseModelsItems3":{"description":"Groq models","properties":{"id":{"$ref":"#/components/schemas/AgentThinkModelsV1ResponseModelsItemsOneOf3Id","description":"The unique identifier of the Groq model"},"name":{"description":"The display name of the model","type":"string"},"provider":{"description":"The provider of the model"}},"required":["id","name","provider"],"title":"AgentThinkModelsV1ResponseModelsItems3","type":"object"},"AgentThinkModelsV1ResponseModelsItems4":{"description":"AWS Bedrock models (custom models accepted)","properties":{"id":{"description":"The unique identifier of the AWS Bedrock model (any model string accepted for BYO LLMs)","type":"string"},"name":{"description":"The display name of the model","type":"string"},"provider":{"description":"The provider of the model"}},"required":["id","name","provider"],"title":"AgentThinkModelsV1ResponseModelsItems4","type":"object"},"AgentThinkModelsV1ResponseModelsItemsOneOf0Id":{"description":"The unique identifier of the OpenAI model","enum":["gpt-5","gpt-5-mini","gpt-5-nano","gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-4o","gpt-4o-mini"],"title":"AgentThinkModelsV1ResponseModelsItemsOneOf0Id","type":"string"},"AgentThinkModelsV1ResponseModelsItemsOneOf1Id":{"description":"The unique identifier of the Anthropic model","enum":["claude-3-5-haiku-latest","claude-sonnet-4-20250514"],"title":"AgentThinkModelsV1ResponseModelsItemsOneOf1Id","type":"string"},"AgentThinkModelsV1ResponseModelsItemsOneOf2Id":{"description":"The unique identifier of the Google model","enum":["gemini-2.5-flash","gemini-2.0-flash","gemini-2.0-flash-lite"],"title":"AgentThinkModelsV1ResponseModelsItemsOneOf2Id","type":"string"},"AgentThinkModelsV1ResponseModelsItemsOneOf3Id":{"description":"The unique identifier of the Groq model","enum":["openai/gpt-oss-20b"],"title":"AgentThinkModelsV1ResponseModelsItemsOneOf3Id","type":"string"},"AgentVariableV1":{"description":"A template variable for agent configurations","properties":{"created_at":{"description":"Timestamp when the variable was created","format":"date-time","type":"string"},"key":{"description":"The variable name, following the DG_<VARIABLE_NAME> format","type":"string"},"updated_at":{"description":"Timestamp when the variable was last updated","format":"date-time","type":"string"},"value":{"description":"The value to substitute. Can be any valid JSON type"},"variable_id":{"description":"The unique identifier of the variable","type":"string"}},"required":["key","value","variable_id"],"title":"AgentVariableV1","type":"object"},"BillingBreakdownV1Response":{"properties":{"end":{"description":"End date of the billing summary period","format":"date","type":"string"},"resolution":{"$ref":"#/components/schemas/BillingBreakdownV1ResponseResolution"},"results":{"items":{"$ref":"#/components/schemas/BillingBreakdownV1ResponseResultsItems"},"type":"array"},"start":{"description":"Start date of the billing summmary period","format":"date","type":"string"}},"required":["end","resolution","results","start"],"title":"BillingBreakdownV1Response","type":"object"},"BillingBreakdownV1ResponseResolution":{"properties":{"amount":{"description":"Amount of units","format":"double","type":"number"},"units":{"description":"Time unit for the resolution","type":"string"}},"required":["amount","units"],"title":"BillingBreakdownV1ResponseResolution","type":"object"},"BillingBreakdownV1ResponseResultsItems":{"properties":{"dollars":{"description":"USD cost of the billing for this grouping","title":"float","type":"string"},"grouping":{"$ref":"#/components/schemas/BillingBreakdownV1ResponseResultsItemsGrouping"}},"required":["dollars","grouping"],"title":"BillingBreakdownV1ResponseResultsItems","type":"object"},"BillingBreakdownV1ResponseResultsItemsGrouping":{"properties":{"accessor":{"description":"Optional accessor identifier, null unless grouped by accessor.","type":["null","string"]},"deployment":{"description":"Optional deployment identifier, null unless grouped by deployment.","type":["null","string"]},"end":{"description":"End date for this group","format":"date","type":"string"},"line_item":{"description":"Optional line item identifier, null unless grouped by line item.","type":["null","string"]},"start":{"description":"Start date for this group","format":"date","type":"string"},"tags":{"description":"Optional list of tags, null unless grouped by tags.","items":{"type":"string"},"type":["array","null"]}},"title":"BillingBreakdownV1ResponseResultsItemsGrouping","type":"object"},"CreateAgentConfigurationV1Request":{"description":"Request body for creating an agent configuration","properties":{"api_version":{"default":1,"description":"API version. Defaults to 1","type":"integer"},"config":{"description":"A valid JSON string representing the agent block of a Settings message","type":"string"},"metadata":{"additionalProperties":{"type":"string"},"description":"A map of arbitrary key-value pairs for labeling or organizing the agent configuration","type":"object"}},"required":["config"],"title":"CreateAgentConfigurationV1Request","type":"object"},"CreateAgentConfigurationV1Response":{"properties":{"agent_id":{"description":"The unique identifier of the newly created agent configuration","type":"string"},"config":{"$ref":"#/components/schemas/CreateAgentConfigurationV1ResponseConfig","description":"The parsed agent configuration object"},"metadata":{"additionalProperties":{"type":"string"},"description":"Metadata associated with the agent configuration","type":"object"}},"required":["agent_id","config"],"title":"CreateAgentConfigurationV1Response","type":"object"},"CreateAgentConfigurationV1ResponseConfig":{"description":"The parsed agent configuration object","properties":{},"title":"CreateAgentConfigurationV1ResponseConfig","type":"object"},"CreateAgentVariableV1Request":{"description":"Request body for creating an agent variable","properties":{"api_version":{"default":1,"description":"API version. Defaults to 1","type":"integer"},"key":{"description":"The variable name, following the DG_<VARIABLE_NAME> format","type":"string"},"value":{"description":"The value to substitute. Can be any valid JSON type (string, number, boolean, object, or array)"}},"required":["key","value"],"title":"CreateAgentVariableV1Request","type":"object"},"CreateKeyV1Request":{"oneOf":[{"description":"Any type"},{"description":"Any type"}],"title":"CreateKeyV1Request"},"CreateKeyV1Response":{"description":"API key created","properties":{"api_key_id":{"description":"The unique identifier of the API key","type":"string"},"comment":{"description":"A comment for the API key","type":"string"},"expiration_date":{"description":"The expiration date of the API key","format":"date-time","type":"string"},"key":{"description":"The API key","type":"string"},"scopes":{"description":"The scopes for the API key","items":{"type":"string"},"type":"array"},"tags":{"description":"The tags for the API key","items":{"type":"string"},"type":"array"}},"title":"CreateKeyV1Response","type":"object"},"CreateProjectDistributionCredentialsV1Request":{"description":"Request body for creating distribution credentials","properties":{"comment":{"description":"Optional comment about the credentials","type":"string"}},"title":"CreateProjectDistributionCredentialsV1Request","type":"object"},"CreateProjectDistributionCredentialsV1Response":{"properties":{"distribution_credentials":{"$ref":"#/components/schemas/CreateProjectDistributionCredentialsV1ResponseDistributionCredentials"},"member":{"$ref":"#/components/schemas/CreateProjectDistributionCredentialsV1ResponseMember"}},"required":["distribution_credentials","member"],"title":"CreateProjectDistributionCredentialsV1Response","type":"object"},"CreateProjectDistributionCredentialsV1ResponseDistributionCredentials":{"properties":{"comment":{"description":"Optional comment about the credentials","type":"string"},"created":{"description":"Timestamp when the credentials were created","format":"date-time","type":"string"},"distribution_credentials_id":{"description":"Unique identifier for the distribution credentials","format":"uuid","type":"string"},"provider":{"description":"The provider of the distribution service","type":"string"},"scopes":{"description":"List of permission scopes for the credentials","items":{"type":"string"},"type":"array"}},"required":["created","distribution_credentials_id","provider","scopes"],"title":"CreateProjectDistributionCredentialsV1ResponseDistributionCredentials","type":"object"},"CreateProjectDistributionCredentialsV1ResponseMember":{"properties":{"email":{"description":"Email address of the member","format":"email","type":"string"},"member_id":{"description":"Unique identifier for the member","format":"uuid","type":"string"}},"required":["email","member_id"],"title":"CreateProjectDistributionCredentialsV1ResponseMember","type":"object"},"CreateProjectInviteV1Request":{"description":"Request body for creating a project invite","properties":{"email":{"description":"The email address of the invitee","type":"string"},"scope":{"description":"The scope of the invitee","type":"string"}},"required":["email","scope"],"title":"CreateProjectInviteV1Request","type":"object"},"CreateProjectInviteV1Response":{"properties":{"message":{"description":"confirmation message","type":"string"}},"title":"CreateProjectInviteV1Response","type":"object"},"DeleteAgentConfigurationV1Response":{"description":"Confirmation that the agent configuration was deleted","properties":{},"title":"DeleteAgentConfigurationV1Response","type":"object"},"DeleteAgentVariableV1Response":{"description":"Confirmation that the agent variable was deleted","properties":{},"title":"DeleteAgentVariableV1Response","type":"object"},"DeleteProjectInviteV1Response":{"properties":{"message":{"description":"confirmation message","type":"string"}},"title":"DeleteProjectInviteV1Response","type":"object"},"DeleteProjectKeyV1Response":{"properties":{"message":{"type":"string"}},"title":"DeleteProjectKeyV1Response","type":"object"},"DeleteProjectMemberV1Response":{"properties":{"message":{"description":"confirmation message","type":"string"}},"title":"DeleteProjectMemberV1Response","type":"object"},"DeleteProjectV1Response":{"properties":{"message":{"description":"Confirmation message","type":"string"}},"title":"DeleteProjectV1Response","type":"object"},"ErrorResponse":{"oneOf":[{"$ref":"#/components/schemas/ErrorResponseTextError"},{"$ref":"#/components/schemas/ErrorResponseLegacyError"},{"$ref":"#/components/schemas/ErrorResponseModernError"}],"title":"ErrorResponse"},"ErrorResponseLegacyError":{"properties":{"err_code":{"description":"The error code","type":"string"},"err_msg":{"description":"The error message","type":"string"},"request_id":{"description":"The request ID","type":"string"}},"title":"ErrorResponseLegacyError","type":"object"},"ErrorResponseModernError":{"properties":{"category":{"description":"The category of the error","type":"string"},"details":{"description":"A description of the error","type":"string"},"message":{"description":"A message about the error","type":"string"},"request_id":{"description":"The unique identifier of the request","type":"string"}},"title":"ErrorResponseModernError","type":"object"},"ErrorResponseTextError":{"title":"ErrorResponseTextError","type":"string"},"GetModelV1Response":{"oneOf":[{"$ref":"#/components/schemas/GetModelV1Response0"},{"$ref":"#/components/schemas/GetModelV1Response1"}],"title":"GetModelV1Response"},"GetModelV1Response0":{"properties":{"architecture":{"type":"string"},"batch":{"type":"boolean"},"canonical_name":{"type":"string"},"formatted_output":{"type":"boolean"},"languages":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"streaming":{"type":"boolean"},"uuid":{"format":"uuid","type":"string"},"version":{"type":"string"}},"title":"GetModelV1Response0","type":"object"},"GetModelV1Response1":{"properties":{"architecture":{"type":"string"},"canonical_name":{"type":"string"},"languages":{"items":{"type":"string"},"type":"array"},"metadata":{"$ref":"#/components/schemas/GetModelV1ResponseOneOf1Metadata"},"name":{"type":"string"},"uuid":{"format":"uuid","type":"string"},"version":{"type":"string"}},"title":"GetModelV1Response1","type":"object"},"GetModelV1ResponseOneOf1Metadata":{"properties":{"accent":{"type":"string"},"age":{"type":"string"},"color":{"type":"string"},"image":{"format":"uri","type":"string"},"sample":{"format":"uri","type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"use_cases":{"items":{"type":"string"},"type":"array"}},"title":"GetModelV1ResponseOneOf1Metadata","type":"object"},"GetProjectBalanceV1Response":{"properties":{"amount":{"default":0,"description":"The amount of the balance","format":"double","type":"number"},"balance_id":{"description":"The unique identifier of the balance","type":"string"},"purchase_order_id":{"description":"Description or reference of the purchase","type":"string"},"units":{"description":"The units of the balance, such as \"USD\"","type":"string"}},"title":"GetProjectBalanceV1Response","type":"object"},"GetProjectDistributionCredentialsV1Response":{"properties":{"distribution_credentials":{"$ref":"#/components/schemas/GetProjectDistributionCredentialsV1ResponseDistributionCredentials"},"member":{"$ref":"#/components/schemas/GetProjectDistributionCredentialsV1ResponseMember"}},"required":["distribution_credentials","member"],"title":"GetProjectDistributionCredentialsV1Response","type":"object"},"GetProjectDistributionCredentialsV1ResponseDistributionCredentials":{"properties":{"comment":{"description":"Optional comment about the credentials","type":"string"},"created":{"description":"Timestamp when the credentials were created","format":"date-time","type":"string"},"distribution_credentials_id":{"description":"Unique identifier for the distribution credentials","format":"uuid","type":"string"},"provider":{"description":"The provider of the distribution service","type":"string"},"scopes":{"description":"List of permission scopes for the credentials","items":{"type":"string"},"type":"array"}},"required":["created","distribution_credentials_id","provider","scopes"],"title":"GetProjectDistributionCredentialsV1ResponseDistributionCredentials","type":"object"},"GetProjectDistributionCredentialsV1ResponseMember":{"properties":{"email":{"description":"Email address of the member","format":"email","type":"string"},"member_id":{"description":"Unique identifier for the member","format":"uuid","type":"string"}},"required":["email","member_id"],"title":"GetProjectDistributionCredentialsV1ResponseMember","type":"object"},"GetProjectKeyV1Response":{"properties":{"item":{"$ref":"#/components/schemas/GetProjectKeyV1ResponseItem"}},"title":"GetProjectKeyV1Response","type":"object"},"GetProjectKeyV1ResponseItem":{"properties":{"member":{"$ref":"#/components/schemas/GetProjectKeyV1ResponseItemMember"}},"title":"GetProjectKeyV1ResponseItem","type":"object"},"GetProjectKeyV1ResponseItemMember":{"properties":{"api_key":{"$ref":"#/components/schemas/GetProjectKeyV1ResponseItemMemberApiKey"},"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"member_id":{"type":"string"}},"title":"GetProjectKeyV1ResponseItemMember","type":"object"},"GetProjectKeyV1ResponseItemMemberApiKey":{"properties":{"api_key_id":{"type":"string"},"comment":{"type":"string"},"created":{"format":"date-time","type":"string"},"expiration_date":{"format":"date-time","type":"string"},"scopes":{"items":{"type":"string"},"type":"array"},"tags":{"items":{"type":"string"},"type":"array"}},"title":"GetProjectKeyV1ResponseItemMemberApiKey","type":"object"},"GetProjectRequestV1Response":{"properties":{"request":{"$ref":"#/components/schemas/ProjectRequestResponse"}},"title":"GetProjectRequestV1Response","type":"object"},"GetProjectV1Response":{"properties":{"mip_opt_out":{"description":"Model Improvement Program opt-out","type":"boolean"},"name":{"description":"The name of the project","type":"string"},"project_id":{"description":"The unique identifier of the project","type":"string"}},"title":"GetProjectV1Response","type":"object"},"GrantV1Request":{"properties":{"ttl_seconds":{"description":"Time to live in seconds for the token. Defaults to 30 seconds.","format":"double","maximum":3600,"minimum":1,"type":"number"}},"title":"GrantV1Request","type":"object"},"GrantV1Response":{"properties":{"access_token":{"description":"JSON Web Token (JWT)","type":"string"},"expires_in":{"description":"Time in seconds until the JWT expires","format":"double","type":"number"}},"required":["access_token"],"title":"GrantV1Response","type":"object"},"LeaveProjectV1Response":{"properties":{"message":{"description":"confirmation message","type":"string"}},"title":"LeaveProjectV1Response","type":"object"},"ListAgentConfigurationsV1Response":{"properties":{"agents":{"description":"A list of agent configurations for the project","items":{"$ref":"#/components/schemas/AgentConfigurationV1"},"type":"array"}},"title":"ListAgentConfigurationsV1Response","type":"object"},"ListAgentVariablesV1Response":{"properties":{"variables":{"description":"A list of agent variables for the project","items":{"$ref":"#/components/schemas/AgentVariableV1"},"type":"array"}},"title":"ListAgentVariablesV1Response","type":"object"},"ListBillingFieldsV1Response":{"properties":{"accessors":{"description":"List of accessor UUIDs for the time period","items":{"format":"uuid","type":"string"},"type":"array"},"deployments":{"description":"List of deployment types for the time period","items":{"$ref":"#/components/schemas/ListBillingFieldsV1ResponseDeploymentsItems"},"type":"array"},"line_items":{"additionalProperties":{"type":"string"},"description":"Map of line item names to human-readable descriptions for the time period","type":"object"},"tags":{"description":"List of tags for the time period","items":{"type":"string"},"type":"array"}},"title":"ListBillingFieldsV1Response","type":"object"},"ListBillingFieldsV1ResponseDeploymentsItems":{"enum":["hosted","beta","self-hosted","dedicated"],"title":"ListBillingFieldsV1ResponseDeploymentsItems","type":"string"},"ListModelsV1Response":{"properties":{"stt":{"items":{"$ref":"#/components/schemas/ListModelsV1ResponseSttModels"},"type":"array"},"tts":{"items":{"$ref":"#/components/schemas/ListModelsV1ResponseTtsModels"},"type":"array"}},"title":"ListModelsV1Response","type":"object"},"ListModelsV1ResponseSttModels":{"properties":{"architecture":{"type":"string"},"batch":{"type":"boolean"},"canonical_name":{"type":"string"},"formatted_output":{"type":"boolean"},"languages":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"streaming":{"type":"boolean"},"uuid":{"type":"string"},"version":{"type":"string"}},"title":"ListModelsV1ResponseSttModels","type":"object"},"ListModelsV1ResponseTtsModels":{"properties":{"architecture":{"type":"string"},"canonical_name":{"type":"string"},"languages":{"items":{"type":"string"},"type":"array"},"metadata":{"$ref":"#/components/schemas/ListModelsV1ResponseTtsModelsMetadata"},"name":{"type":"string"},"uuid":{"format":"uuid","type":"string"},"version":{"type":"string"}},"title":"ListModelsV1ResponseTtsModels","type":"object"},"ListModelsV1ResponseTtsModelsMetadata":{"properties":{"accent":{"type":"string"},"age":{"type":"string"},"color":{"type":"string"},"image":{"format":"uri","type":"string"},"sample":{"format":"uri","type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"use_cases":{"items":{"type":"string"},"type":"array"}},"title":"ListModelsV1ResponseTtsModelsMetadata","type":"object"},"ListProjectBalancesV1Response":{"properties":{"balances":{"items":{"$ref":"#/components/schemas/ListProjectBalancesV1ResponseBalancesItems"},"type":"array"}},"title":"ListProjectBalancesV1Response","type":"object"},"ListProjectBalancesV1ResponseBalancesItems":{"properties":{"amount":{"default":0,"description":"The amount of the balance","format":"double","type":"number"},"balance_id":{"description":"The unique identifier of the balance","type":"string"},"purchase_order_id":{"description":"Description or reference of the purchase","type":"string"},"units":{"description":"The units of the balance, such as \"USD\"","type":"string"}},"title":"ListProjectBalancesV1ResponseBalancesItems","type":"object"},"ListProjectDistributionCredentialsV1Response":{"properties":{"distribution_credentials":{"description":"Array of distribution credentials with associated member information","items":{"$ref":"#/components/schemas/ListProjectDistributionCredentialsV1ResponseDistributionCredentialsItems"},"type":"array"}},"title":"ListProjectDistributionCredentialsV1Response","type":"object"},"ListProjectDistributionCredentialsV1ResponseDistributionCredentialsItems":{"properties":{"distribution_credentials":{"$ref":"#/components/schemas/ListProjectDistributionCredentialsV1ResponseDistributionCredentialsItemsDistributionCredentials"},"member":{"$ref":"#/components/schemas/ListProjectDistributionCredentialsV1ResponseDistributionCredentialsItemsMember"}},"required":["distribution_credentials","member"],"title":"ListProjectDistributionCredentialsV1ResponseDistributionCredentialsItems","type":"object"},"ListProjectDistributionCredentialsV1ResponseDistributionCredentialsItemsDistributionCredentials":{"properties":{"comment":{"description":"Optional comment about the credentials","type":"string"},"created":{"description":"Timestamp when the credentials were created","format":"date-time","type":"string"},"distribution_credentials_id":{"description":"Unique identifier for the distribution credentials","format":"uuid","type":"string"},"provider":{"description":"The provider of the distribution service","type":"string"},"scopes":{"description":"List of permission scopes for the credentials","items":{"type":"string"},"type":"array"}},"required":["created","distribution_credentials_id","provider","scopes"],"title":"ListProjectDistributionCredentialsV1ResponseDistributionCredentialsItemsDistributionCredentials","type":"object"},"ListProjectDistributionCredentialsV1ResponseDistributionCredentialsItemsMember":{"properties":{"email":{"description":"Email address of the member","format":"email","type":"string"},"member_id":{"description":"Unique identifier for the member","format":"uuid","type":"string"}},"required":["email","member_id"],"title":"ListProjectDistributionCredentialsV1ResponseDistributionCredentialsItemsMember","type":"object"},"ListProjectInvitesV1Response":{"properties":{"invites":{"items":{"$ref":"#/components/schemas/ListProjectInvitesV1ResponseInvitesItems"},"type":"array"}},"title":"ListProjectInvitesV1Response","type":"object"},"ListProjectInvitesV1ResponseInvitesItems":{"properties":{"email":{"description":"The email address of the invitee","type":"string"},"scope":{"description":"The scope of the invitee","type":"string"}},"title":"ListProjectInvitesV1ResponseInvitesItems","type":"object"},"ListProjectKeysV1Response":{"properties":{"api_keys":{"items":{"$ref":"#/components/schemas/ListProjectKeysV1ResponseApiKeysItems"},"type":"array"}},"title":"ListProjectKeysV1Response","type":"object"},"ListProjectKeysV1ResponseApiKeysItems":{"properties":{"api_key":{"$ref":"#/components/schemas/ListProjectKeysV1ResponseApiKeysItemsApiKey"},"member":{"$ref":"#/components/schemas/ListProjectKeysV1ResponseApiKeysItemsMember"}},"title":"ListProjectKeysV1ResponseApiKeysItems","type":"object"},"ListProjectKeysV1ResponseApiKeysItemsApiKey":{"properties":{"api_key_id":{"type":"string"},"comment":{"type":"string"},"created":{"format":"date-time","type":"string"},"scopes":{"items":{"type":"string"},"type":"array"}},"title":"ListProjectKeysV1ResponseApiKeysItemsApiKey","type":"object"},"ListProjectKeysV1ResponseApiKeysItemsMember":{"properties":{"email":{"type":"string"},"member_id":{"type":"string"}},"title":"ListProjectKeysV1ResponseApiKeysItemsMember","type":"object"},"ListProjectMemberScopesV1Response":{"properties":{"scopes":{"description":"The API scopes of the member","items":{"type":"string"},"type":"array"}},"title":"ListProjectMemberScopesV1Response","type":"object"},"ListProjectMembersV1Response":{"properties":{"members":{"items":{"$ref":"#/components/schemas/ListProjectMembersV1ResponseMembersItems"},"type":"array"}},"title":"ListProjectMembersV1Response","type":"object"},"ListProjectMembersV1ResponseMembersItems":{"properties":{"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"member_id":{"description":"The unique identifier of the member","type":"string"},"scopes":{"description":"The API scopes of the member","items":{"type":"string"},"type":"array"}},"title":"ListProjectMembersV1ResponseMembersItems","type":"object"},"ListProjectPurchasesV1Response":{"properties":{"orders":{"items":{"$ref":"#/components/schemas/ListProjectPurchasesV1ResponseOrdersItems"},"type":"array"}},"title":"ListProjectPurchasesV1Response","type":"object"},"ListProjectPurchasesV1ResponseOrdersItems":{"properties":{"amount":{"title":"float","type":"string"},"created":{"format":"date-time","type":"string"},"expiration":{"format":"date-time","type":"string"},"order_id":{"format":"uuid","type":"string"},"order_type":{"type":"string"},"units":{"type":"string"}},"title":"ListProjectPurchasesV1ResponseOrdersItems","type":"object"},"ListProjectRequestsV1Response":{"properties":{"limit":{"description":"The number of results per page","format":"double","type":"number"},"page":{"description":"The page number of the paginated response","format":"double","type":"number"},"requests":{"items":{"$ref":"#/components/schemas/ProjectRequestResponse"},"type":"array"}},"title":"ListProjectRequestsV1Response","type":"object"},"ListProjectsV1Response":{"properties":{"projects":{"items":{"$ref":"#/components/schemas/ListProjectsV1ResponseProjectsItems"},"type":"array"}},"title":"ListProjectsV1Response","type":"object"},"ListProjectsV1ResponseProjectsItems":{"properties":{"name":{"description":"The name of the project","type":"string"},"project_id":{"description":"The unique identifier of the project","type":"string"}},"title":"ListProjectsV1ResponseProjectsItems","type":"object"},"ListenV1AcceptedResponse":{"description":"Accepted response for asynchronous transcription requests","properties":{"request_id":{"description":"Unique identifier for tracking the asynchronous request","format":"uuid","type":"string"}},"required":["request_id"],"title":"ListenV1AcceptedResponse","type":"object"},"ListenV1RequestUrl":{"description":"Audio file URL to transcribe","properties":{"url":{"format":"uri","type":"string"}},"required":["url"],"title":"ListenV1RequestUrl","type":"object"},"ListenV1Response":{"description":"The standard transcription response","properties":{"metadata":{"$ref":"#/components/schemas/ListenV1ResponseMetadata"},"results":{"$ref":"#/components/schemas/ListenV1ResponseResults"}},"required":["metadata","results"],"title":"ListenV1Response","type":"object"},"ListenV1ResponseMetadata":{"properties":{"channels":{"type":"integer"},"created":{"format":"date-time","type":"string"},"diarize_info":{"$ref":"#/components/schemas/ListenV1ResponseMetadataDiarizeInfo","description":"The diarizer that produced the speaker labels. Present only when a diarizer ran."},"duration":{"format":"double","type":"number"},"intents_info":{"$ref":"#/components/schemas/ListenV1ResponseMetadataIntentsInfo"},"model_info":{"$ref":"#/components/schemas/ListenV1ResponseMetadataModelInfo"},"models":{"items":{"type":"string"},"type":"array"},"request_id":{"format":"uuid","type":"string"},"sentiment_info":{"$ref":"#/components/schemas/ListenV1ResponseMetadataSentimentInfo"},"sha256":{"type":"string"},"summary_info":{"$ref":"#/components/schemas/ListenV1ResponseMetadataSummaryInfo"},"tags":{"items":{"type":"string"},"type":"array"},"topics_info":{"$ref":"#/components/schemas/ListenV1ResponseMetadataTopicsInfo"},"transaction_key":{"default":"deprecated","deprecated":true,"type":"string"}},"required":["channels","created","duration","model_info","models","request_id","sha256"],"title":"ListenV1ResponseMetadata","type":"object"},"ListenV1ResponseMetadataDiarizeInfo":{"description":"The diarizer that produced the speaker labels. Present only when a diarizer ran.","properties":{"arch":{"description":"The diarizer arch, such as `v1` or `v2`","type":"string"},"model_uuid":{"description":"The diarizer model UUID","type":"string"}},"required":["arch","model_uuid"],"title":"ListenV1ResponseMetadataDiarizeInfo","type":"object"},"ListenV1ResponseMetadataIntentsInfo":{"properties":{"input_tokens":{"type":"integer"},"model_uuid":{"type":"string"},"output_tokens":{"type":"integer"}},"title":"ListenV1ResponseMetadataIntentsInfo","type":"object"},"ListenV1ResponseMetadataModelInfo":{"properties":{},"title":"ListenV1ResponseMetadataModelInfo","type":"object"},"ListenV1ResponseMetadataSentimentInfo":{"properties":{"input_tokens":{"type":"integer"},"model_uuid":{"type":"string"},"output_tokens":{"type":"integer"}},"title":"ListenV1ResponseMetadataSentimentInfo","type":"object"},"ListenV1ResponseMetadataSummaryInfo":{"properties":{"input_tokens":{"type":"integer"},"model_uuid":{"type":"string"},"output_tokens":{"type":"integer"}},"title":"ListenV1ResponseMetadataSummaryInfo","type":"object"},"ListenV1ResponseMetadataTopicsInfo":{"properties":{"input_tokens":{"type":"integer"},"model_uuid":{"type":"string"},"output_tokens":{"type":"integer"}},"title":"ListenV1ResponseMetadataTopicsInfo","type":"object"},"ListenV1ResponseResults":{"properties":{"channels":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannels"},"intents":{"$ref":"#/components/schemas/SharedIntents"},"sentiments":{"$ref":"#/components/schemas/SharedSentiments"},"summary":{"$ref":"#/components/schemas/ListenV1ResponseResultsSummary"},"topics":{"$ref":"#/components/schemas/SharedTopics"},"utterances":{"$ref":"#/components/schemas/ListenV1ResponseResultsUtterances"}},"required":["channels"],"title":"ListenV1ResponseResults","type":"object"},"ListenV1ResponseResultsChannels":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannelsItems"},"title":"ListenV1ResponseResultsChannels","type":"array"},"ListenV1ResponseResultsChannelsItems":{"properties":{"alternatives":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannelsItemsAlternativesItems"},"type":"array"},"detected_language":{"type":"string"},"search":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannelsItemsSearchItems"},"type":"array"}},"title":"ListenV1ResponseResultsChannelsItems","type":"object"},"ListenV1ResponseResultsChannelsItemsAlternativesItems":{"properties":{"confidence":{"title":"float","type":"string"},"entities":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannelsItemsAlternativesItemsEntitiesItems"},"type":"array"},"paragraphs":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannelsItemsAlternativesItemsParagraphs"},"summaries":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannelsItemsAlternativesItemsSummariesItems"},"type":"array"},"topics":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannelsItemsAlternativesItemsTopicsItems"},"type":"array"},"transcript":{"type":"string"},"words":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannelsItemsAlternativesItemsWordsItems"},"type":"array"}},"title":"ListenV1ResponseResultsChannelsItemsAlternativesItems","type":"object"},"ListenV1ResponseResultsChannelsItemsAlternativesItemsEntitiesItems":{"properties":{"confidence":{"title":"float","type":"string"},"end_word":{"title":"float","type":"string"},"label":{"type":"string"},"raw_value":{"type":"string"},"start_word":{"title":"float","type":"string"},"value":{"type":"string"}},"title":"ListenV1ResponseResultsChannelsItemsAlternativesItemsEntitiesItems","type":"object"},"ListenV1ResponseResultsChannelsItemsAlternativesItemsParagraphs":{"properties":{"paragraphs":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannelsItemsAlternativesItemsParagraphsParagraphsItems"},"type":"array"},"transcript":{"type":"string"}},"title":"ListenV1ResponseResultsChannelsItemsAlternativesItemsParagraphs","type":"object"},"ListenV1ResponseResultsChannelsItemsAlternativesItemsParagraphsParagraphsItems":{"properties":{"end":{"title":"float","type":"string"},"num_words":{"type":"integer"},"sentences":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannelsItemsAlternativesItemsParagraphsParagraphsItemsSentencesItems"},"type":"array"},"speaker":{"type":"integer"},"start":{"title":"float","type":"string"}},"title":"ListenV1ResponseResultsChannelsItemsAlternativesItemsParagraphsParagraphsItems","type":"object"},"ListenV1ResponseResultsChannelsItemsAlternativesItemsParagraphsParagraphsItemsSentencesItems":{"properties":{"end":{"title":"float","type":"string"},"start":{"title":"float","type":"string"},"text":{"type":"string"}},"title":"ListenV1ResponseResultsChannelsItemsAlternativesItemsParagraphsParagraphsItemsSentencesItems","type":"object"},"ListenV1ResponseResultsChannelsItemsAlternativesItemsSummariesItems":{"properties":{"end_word":{"title":"float","type":"string"},"start_word":{"title":"float","type":"string"},"summary":{"type":"string"}},"title":"ListenV1ResponseResultsChannelsItemsAlternativesItemsSummariesItems","type":"object"},"ListenV1ResponseResultsChannelsItemsAlternativesItemsTopicsItems":{"properties":{"end_word":{"title":"float","type":"string"},"start_word":{"title":"float","type":"string"},"text":{"type":"string"},"topics":{"items":{"type":"string"},"type":"array"}},"title":"ListenV1ResponseResultsChannelsItemsAlternativesItemsTopicsItems","type":"object"},"ListenV1ResponseResultsChannelsItemsAlternativesItemsWordsItems":{"properties":{"confidence":{"title":"float","type":"string"},"end":{"title":"float","type":"string"},"speaker":{"description":"The speaker of the word, present when diarization is enabled","type":"integer"},"speaker_confidence":{"description":"Confidence in the speaker assignment. Returned only for pre-recorded diarization; not available for streaming","title":"float","type":"string"},"start":{"title":"float","type":"string"},"word":{"type":"string"}},"title":"ListenV1ResponseResultsChannelsItemsAlternativesItemsWordsItems","type":"object"},"ListenV1ResponseResultsChannelsItemsSearchItems":{"properties":{"hits":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsChannelsItemsSearchItemsHitsItems"},"type":"array"},"query":{"type":"string"}},"title":"ListenV1ResponseResultsChannelsItemsSearchItems","type":"object"},"ListenV1ResponseResultsChannelsItemsSearchItemsHitsItems":{"properties":{"confidence":{"title":"float","type":"string"},"end":{"title":"float","type":"string"},"snippet":{"type":"string"},"start":{"title":"float","type":"string"}},"title":"ListenV1ResponseResultsChannelsItemsSearchItemsHitsItems","type":"object"},"ListenV1ResponseResultsSummary":{"properties":{"result":{"type":"string"},"short":{"type":"string"}},"title":"ListenV1ResponseResultsSummary","type":"object"},"ListenV1ResponseResultsUtterances":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsUtterancesItems"},"title":"ListenV1ResponseResultsUtterances","type":"array"},"ListenV1ResponseResultsUtterancesItems":{"properties":{"channel":{"type":"integer"},"confidence":{"title":"float","type":"string"},"end":{"title":"float","type":"string"},"id":{"format":"uuid","type":"string"},"speaker":{"type":"integer"},"start":{"title":"float","type":"string"},"transcript":{"type":"string"},"words":{"items":{"$ref":"#/components/schemas/ListenV1ResponseResultsUtterancesItemsWordsItems"},"type":"array"}},"title":"ListenV1ResponseResultsUtterancesItems","type":"object"},"ListenV1ResponseResultsUtterancesItemsWordsItems":{"properties":{"confidence":{"title":"float","type":"string"},"end":{"title":"float","type":"string"},"punctuated_word":{"type":"string"},"speaker":{"type":"integer"},"speaker_confidence":{"title":"float","type":"string"},"start":{"title":"float","type":"string"},"word":{"type":"string"}},"title":"ListenV1ResponseResultsUtterancesItemsWordsItems","type":"object"},"ProjectRequestResponse":{"description":"A single request","properties":{"api_key_id":{"description":"The unique identifier of the API key","type":"string"},"callback":{"description":"The callback URL for the request","type":"string"},"code":{"description":"The response code of the request","format":"double","type":"number"},"created":{"description":"The date and time the request was created","format":"date-time","type":"string"},"deployment":{"description":"The deployment type","type":"string"},"path":{"description":"The API path of the request","type":"string"},"project_uuid":{"description":"The unique identifier of the project","type":"string"},"request_id":{"description":"The unique identifier of the request","type":"string"},"response":{"$ref":"#/components/schemas/ProjectRequestResponseResponse","description":"The response of the request"}},"title":"ProjectRequestResponse","type":"object"},"ProjectRequestResponseResponse":{"description":"The response of the request","properties":{},"title":"ProjectRequestResponseResponse","type":"object"},"ReadV1Request":{"oneOf":[{"$ref":"#/components/schemas/ReadV1RequestUrl"},{"$ref":"#/components/schemas/ReadV1RequestText"}],"title":"ReadV1Request"},"ReadV1RequestText":{"properties":{"text":{"description":"The plain text to analyze","type":"string"}},"required":["text"],"title":"ReadV1RequestText","type":"object"},"ReadV1RequestUrl":{"properties":{"url":{"description":"A URL pointing to the text source","format":"uri","type":"string"}},"required":["url"],"title":"ReadV1RequestUrl","type":"object"},"ReadV1Response":{"description":"The standard text response","properties":{"metadata":{"$ref":"#/components/schemas/ReadV1ResponseMetadata"},"results":{"$ref":"#/components/schemas/ReadV1ResponseResults"}},"required":["metadata","results"],"title":"ReadV1Response","type":"object"},"ReadV1ResponseMetadata":{"properties":{"metadata":{"$ref":"#/components/schemas/ReadV1ResponseMetadataMetadata"}},"title":"ReadV1ResponseMetadata","type":"object"},"ReadV1ResponseMetadataMetadata":{"properties":{"created":{"format":"date-time","type":"string"},"intents_info":{"$ref":"#/components/schemas/ReadV1ResponseMetadataMetadataIntentsInfo"},"language":{"type":"string"},"request_id":{"format":"uuid","type":"string"},"sentiment_info":{"$ref":"#/components/schemas/ReadV1ResponseMetadataMetadataSentimentInfo"},"summary_info":{"$ref":"#/components/schemas/ReadV1ResponseMetadataMetadataSummaryInfo"},"topics_info":{"$ref":"#/components/schemas/ReadV1ResponseMetadataMetadataTopicsInfo"}},"title":"ReadV1ResponseMetadataMetadata","type":"object"},"ReadV1ResponseMetadataMetadataIntentsInfo":{"properties":{"input_tokens":{"type":"integer"},"model_uuid":{"format":"uuid","type":"string"},"output_tokens":{"type":"integer"}},"title":"ReadV1ResponseMetadataMetadataIntentsInfo","type":"object"},"ReadV1ResponseMetadataMetadataSentimentInfo":{"properties":{"input_tokens":{"type":"integer"},"model_uuid":{"format":"uuid","type":"string"},"output_tokens":{"type":"integer"}},"title":"ReadV1ResponseMetadataMetadataSentimentInfo","type":"object"},"ReadV1ResponseMetadataMetadataSummaryInfo":{"properties":{"input_tokens":{"type":"integer"},"model_uuid":{"format":"uuid","type":"string"},"output_tokens":{"type":"integer"}},"title":"ReadV1ResponseMetadataMetadataSummaryInfo","type":"object"},"ReadV1ResponseMetadataMetadataTopicsInfo":{"properties":{"input_tokens":{"type":"integer"},"model_uuid":{"format":"uuid","type":"string"},"output_tokens":{"type":"integer"}},"title":"ReadV1ResponseMetadataMetadataTopicsInfo","type":"object"},"ReadV1ResponseResults":{"properties":{"intents":{"$ref":"#/components/schemas/SharedIntents"},"sentiments":{"$ref":"#/components/schemas/SharedSentiments"},"summary":{"$ref":"#/components/schemas/ReadV1ResponseResultsSummary"},"topics":{"$ref":"#/components/schemas/SharedTopics"}},"title":"ReadV1ResponseResults","type":"object"},"ReadV1ResponseResultsSummary":{"description":"Output whenever `summary=true` is used","properties":{"results":{"$ref":"#/components/schemas/ReadV1ResponseResultsSummaryResults"}},"title":"ReadV1ResponseResultsSummary","type":"object"},"ReadV1ResponseResultsSummaryResults":{"properties":{"summary":{"$ref":"#/components/schemas/ReadV1ResponseResultsSummaryResultsSummary"}},"title":"ReadV1ResponseResultsSummaryResults","type":"object"},"ReadV1ResponseResultsSummaryResultsSummary":{"properties":{"text":{"type":"string"}},"title":"ReadV1ResponseResultsSummaryResultsSummary","type":"object"},"SharedIntents":{"description":"Output whenever `intents=true` is used","properties":{"segments":{"items":{"$ref":"#/components/schemas/SharedIntentsSegmentsItems"},"type":"array"}},"title":"SharedIntents","type":"object"},"SharedIntentsSegmentsItems":{"properties":{"end_word":{"format":"double","type":"number"},"intents":{"items":{"$ref":"#/components/schemas/SharedIntentsSegmentsItemsIntentsItems"},"type":"array"},"start_word":{"format":"double","type":"number"},"text":{"type":"string"}},"title":"SharedIntentsSegmentsItems","type":"object"},"SharedIntentsSegmentsItemsIntentsItems":{"properties":{"confidence_score":{"title":"float","type":"string"},"intent":{"type":"string"}},"title":"SharedIntentsSegmentsItemsIntentsItems","type":"object"},"SharedSentiments":{"description":"Output whenever `sentiment=true` is used","properties":{"average":{"$ref":"#/components/schemas/SharedSentimentsAverage"},"segments":{"items":{"$ref":"#/components/schemas/SharedSentimentsSegmentsItems"},"type":"array"}},"title":"SharedSentiments","type":"object"},"SharedSentimentsAverage":{"properties":{"sentiment":{"type":"string"},"sentiment_score":{"format":"double","type":"number"}},"title":"SharedSentimentsAverage","type":"object"},"SharedSentimentsSegmentsItems":{"properties":{"end_word":{"format":"double","type":"number"},"sentiment":{"type":"string"},"sentiment_score":{"format":"double","type":"number"},"start_word":{"format":"double","type":"number"},"text":{"type":"string"}},"title":"SharedSentimentsSegmentsItems","type":"object"},"SharedTopics":{"description":"Output whenever `topics=true` is used","properties":{"segments":{"items":{"$ref":"#/components/schemas/SharedTopicsSegmentsItems"},"type":"array"}},"title":"SharedTopics","type":"object"},"SharedTopicsSegmentsItems":{"properties":{"end_word":{"format":"double","type":"number"},"start_word":{"format":"double","type":"number"},"text":{"type":"string"},"topics":{"items":{"$ref":"#/components/schemas/SharedTopicsSegmentsItemsTopicsItems"},"type":"array"}},"title":"SharedTopicsSegmentsItems","type":"object"},"SharedTopicsSegmentsItemsTopicsItems":{"properties":{"confidence_score":{"title":"float","type":"string"},"topic":{"type":"string"}},"title":"SharedTopicsSegmentsItemsTopicsItems","type":"object"},"SpeakV1Request":{"description":"Request body for text-to-speech conversion","properties":{"text":{"description":"The text content to be converted to speech","type":"string"}},"required":["text"],"title":"SpeakV1Request","type":"object"},"SpeakV2AcceptedResponse":{"description":"Accepted response returned when a callback URL is supplied; the audio is delivered asynchronously to that URL.","properties":{"request_id":{"description":"Unique identifier for tracking the asynchronous request","format":"uuid","type":"string"}},"required":["request_id"],"title":"SpeakV2AcceptedResponse","type":"object"},"SpeakV2Request":{"description":"Request body for Flux TTS batch (REST) text-to-speech conversion. The full block of text is synthesized in a single request and returned as one audio response.","properties":{"text":{"description":"The text content to be converted to speech. The server normalizes and preprocesses the text before synthesis. Inline pause and pronunciation controls are not yet applied; they are stripped from the text before synthesis.","type":"string"}},"required":["text"],"title":"SpeakV2Request","type":"object"},"UpdateAgentMetadataV1Request":{"description":"Request body for updating agent configuration metadata","properties":{"metadata":{"additionalProperties":{"type":"string"},"description":"A map of string key-value pairs to associate with this agent configuration","type":"object"}},"required":["metadata"],"title":"UpdateAgentMetadataV1Request","type":"object"},"UpdateAgentVariableV1Request":{"description":"Request body for updating an agent variable","properties":{"value":{"description":"The new value to substitute"}},"required":["value"],"title":"UpdateAgentVariableV1Request","type":"object"},"UpdateProjectMemberScopesV1Request":{"properties":{"scope":{"description":"A scope to update","type":"string"}},"required":["scope"],"title":"UpdateProjectMemberScopesV1Request","type":"object"},"UpdateProjectMemberScopesV1Response":{"properties":{"message":{"description":"confirmation message","type":"string"}},"title":"UpdateProjectMemberScopesV1Response","type":"object"},"UpdateProjectV1Request":{"properties":{"name":{"description":"The name of the project","type":"string"}},"title":"UpdateProjectV1Request","type":"object"},"UpdateProjectV1Response":{"properties":{"message":{"description":"confirmation message","type":"string"}},"title":"UpdateProjectV1Response","type":"object"},"UsageBreakdownV1Response":{"properties":{"end":{"description":"End date of the usage period","format":"date","type":"string"},"resolution":{"$ref":"#/components/schemas/UsageBreakdownV1ResponseResolution"},"results":{"items":{"$ref":"#/components/schemas/UsageBreakdownV1ResponseResultsItems"},"type":"array"},"start":{"description":"Start date of the usage period","format":"date","type":"string"}},"required":["end","resolution","results","start"],"title":"UsageBreakdownV1Response","type":"object"},"UsageBreakdownV1ResponseResolution":{"properties":{"amount":{"description":"Amount of units","format":"double","type":"number"},"units":{"description":"Time unit for the resolution","type":"string"}},"required":["amount","units"],"title":"UsageBreakdownV1ResponseResolution","type":"object"},"UsageBreakdownV1ResponseResultsItems":{"properties":{"agent_hours":{"description":"Agent hours used","title":"float","type":"string"},"grouping":{"$ref":"#/components/schemas/UsageBreakdownV1ResponseResultsItemsGrouping"},"hours":{"description":"Audio hours processed","title":"float","type":"string"},"requests":{"description":"Number of requests","format":"double","type":"number"},"tokens_in":{"description":"Number of input tokens","format":"double","type":"number"},"tokens_out":{"description":"Number of output tokens","format":"double","type":"number"},"total_hours":{"description":"Total hours including all processing","title":"float","type":"string"},"tts_characters":{"description":"Number of text-to-speech characters processed","format":"double","type":"number"}},"required":["agent_hours","grouping","hours","requests","tokens_in","tokens_out","total_hours","tts_characters"],"title":"UsageBreakdownV1ResponseResultsItems","type":"object"},"UsageBreakdownV1ResponseResultsItemsGrouping":{"properties":{"accessor":{"description":"Optional accessor identifier","type":["null","string"]},"deployment":{"description":"Optional deployment identifier","type":["null","string"]},"end":{"description":"End date for this group","format":"date","type":"string"},"endpoint":{"description":"Optional endpoint identifier","type":["null","string"]},"feature_set":{"description":"Optional feature set identifier","type":["null","string"]},"method":{"description":"Optional method identifier","type":["null","string"]},"models":{"items":{"type":"string"},"type":"array"},"start":{"description":"Start date for this group","format":"date","type":"string"},"tags":{"description":"Optional list of tags, null unless grouped by tags.","items":{"type":"string"},"type":["array","null"]}},"title":"UsageBreakdownV1ResponseResultsItemsGrouping","type":"object"},"UsageFieldsV1Response":{"properties":{"features":{"description":"API features available to the project","items":{"type":"string"},"type":"array"},"models":{"description":"List of models available for the project.","items":{"$ref":"#/components/schemas/UsageFieldsV1ResponseModelsItems"},"type":"array"},"processing_methods":{"description":"Processing methods supported by the API","items":{"type":"string"},"type":"array"},"tags":{"description":"List of tags associated with the project","items":{"type":"string"},"type":"array"}},"title":"UsageFieldsV1Response","type":"object"},"UsageFieldsV1ResponseModelsItems":{"properties":{"language":{"description":"The language supported by the model (IETF language tag).","type":"string"},"model_id":{"description":"Unique identifier for the model.","type":"string"},"name":{"description":"Name of the model.","type":"string"},"version":{"description":"Version identifier of the model, typically with a date and a revision number.","type":"string"}},"title":"UsageFieldsV1ResponseModelsItems","type":"object"},"UsageV1Response":{"properties":{"end":{"format":"date","type":"string"},"resolution":{"$ref":"#/components/schemas/UsageV1ResponseResolution"},"start":{"format":"date","type":"string"}},"title":"UsageV1Response","type":"object"},"UsageV1ResponseResolution":{"properties":{"amount":{"format":"double","type":"number"},"units":{"type":"string"}},"title":"UsageV1ResponseResolution","type":"object"},"V1ListenPostParametersCallbackMethod":{"default":"POST","enum":["POST","PUT"],"title":"V1ListenPostParametersCallbackMethod","type":"string"},"V1ListenPostParametersCustomIntent":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V1ListenPostParametersCustomIntent"},"V1ListenPostParametersCustomIntentMode":{"default":"extended","enum":["extended","strict"],"title":"V1ListenPostParametersCustomIntentMode","type":"string"},"V1ListenPostParametersCustomTopic":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V1ListenPostParametersCustomTopic"},"V1ListenPostParametersCustomTopicMode":{"default":"extended","enum":["extended","strict"],"title":"V1ListenPostParametersCustomTopicMode","type":"string"},"V1ListenPostParametersDetectLanguage":{"oneOf":[{"default":false,"type":"boolean"},{"items":{"type":"string"},"type":"array"}],"title":"V1ListenPostParametersDetectLanguage"},"V1ListenPostParametersDiarizeModel":{"enum":["latest","v1","v2"],"title":"V1ListenPostParametersDiarizeModel","type":"string"},"V1ListenPostParametersEncoding":{"enum":["linear16","flac","mulaw","amr-nb","amr-wb","opus","speex","g729"],"title":"V1ListenPostParametersEncoding","type":"string"},"V1ListenPostParametersExtra":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V1ListenPostParametersExtra"},"V1ListenPostParametersKeywords":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V1ListenPostParametersKeywords"},"V1ListenPostParametersModel":{"oneOf":[{"$ref":"#/components/schemas/V1ListenPostParametersModel0"},{"type":"string"}],"title":"V1ListenPostParametersModel"},"V1ListenPostParametersModel0":{"description":"Our public models available to all accounts","enum":["nova-3","nova-3-general","nova-3-medical","nova-2","nova-2-general","nova-2-meeting","nova-2-finance","nova-2-conversationalai","nova-2-voicemail","nova-2-video","nova-2-medical","nova-2-drivethru","nova-2-automotive","nova","nova-general","nova-phonecall","nova-medical","enhanced","enhanced-general","enhanced-meeting","enhanced-phonecall","enhanced-finance","base","meeting","phonecall","finance","conversationalai","voicemail","video"],"title":"V1ListenPostParametersModel0","type":"string"},"V1ListenPostParametersRedact":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/V1ListenPostParametersRedact1"}],"title":"V1ListenPostParametersRedact"},"V1ListenPostParametersRedact1":{"items":{"$ref":"#/components/schemas/V1ListenPostParametersRedactSchemaOneOf1Items"},"title":"V1ListenPostParametersRedact1","type":"array"},"V1ListenPostParametersRedactSchemaOneOf1Items":{"enum":["pci","pii","numbers"],"title":"V1ListenPostParametersRedactSchemaOneOf1Items","type":"string"},"V1ListenPostParametersReplace":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V1ListenPostParametersReplace"},"V1ListenPostParametersSearch":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V1ListenPostParametersSearch"},"V1ListenPostParametersSummarize":{"oneOf":[{"$ref":"#/components/schemas/V1ListenPostParametersSummarize0"},{"default":false,"type":"boolean"}],"title":"V1ListenPostParametersSummarize"},"V1ListenPostParametersSummarize0":{"enum":["v2"],"title":"V1ListenPostParametersSummarize0","type":"string"},"V1ListenPostParametersTag":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V1ListenPostParametersTag"},"V1ListenPostParametersVersion":{"oneOf":[{"$ref":"#/components/schemas/V1ListenPostParametersVersion0"},{"type":"string"}],"title":"V1ListenPostParametersVersion"},"V1ListenPostParametersVersion0":{"description":"Use the latest version of a model","enum":["latest"],"title":"V1ListenPostParametersVersion0","type":"string"},"V1ProjectsProjectIdBillingBreakdownGetParametersDeployment":{"description":"Deployment type for the requests","enum":["hosted","beta","self-hosted"],"title":"V1ProjectsProjectIdBillingBreakdownGetParametersDeployment","type":"string"},"V1ProjectsProjectIdBillingBreakdownGetParametersGroupingSchemaItems":{"enum":["accessor","deployment","line_item","tags"],"title":"V1ProjectsProjectIdBillingBreakdownGetParametersGroupingSchemaItems","type":"string"},"V1ProjectsProjectIdKeysGetParametersStatus":{"enum":["active","expired"],"title":"V1ProjectsProjectIdKeysGetParametersStatus","type":"string"},"V1ProjectsProjectIdRequestsGetParametersDeployment":{"description":"Deployment type for the requests","enum":["hosted","beta","self-hosted"],"title":"V1ProjectsProjectIdRequestsGetParametersDeployment","type":"string"},"V1ProjectsProjectIdRequestsGetParametersEndpoint":{"enum":["listen","read","speak","agent"],"title":"V1ProjectsProjectIdRequestsGetParametersEndpoint","type":"string"},"V1ProjectsProjectIdRequestsGetParametersMethod":{"description":"Method type for the request","enum":["sync","async","streaming"],"title":"V1ProjectsProjectIdRequestsGetParametersMethod","type":"string"},"V1ProjectsProjectIdRequestsGetParametersStatus":{"enum":["succeeded","failed"],"title":"V1ProjectsProjectIdRequestsGetParametersStatus","type":"string"},"V1ProjectsProjectIdSelfHostedDistributionCredentialsPostParametersProvider":{"default":"quay","enum":["quay"],"title":"V1ProjectsProjectIdSelfHostedDistributionCredentialsPostParametersProvider","type":"string"},"V1ProjectsProjectIdSelfHostedDistributionCredentialsPostParametersScopesSchemaItems":{"enum":["self-hosted:products","self-hosted:product:api","self-hosted:product:engine","self-hosted:product:license-proxy","self-hosted:product:dgtools","self-hosted:product:billing","self-hosted:product:hotpepper","self-hosted:product:metrics-server"],"title":"V1ProjectsProjectIdSelfHostedDistributionCredentialsPostParametersScopesSchemaItems","type":"string"},"V1ProjectsProjectIdUsageBreakdownGetParametersDeployment":{"description":"Deployment type for the requests","enum":["hosted","beta","self-hosted"],"title":"V1ProjectsProjectIdUsageBreakdownGetParametersDeployment","type":"string"},"V1ProjectsProjectIdUsageBreakdownGetParametersEndpoint":{"enum":["listen","read","speak","agent"],"title":"V1ProjectsProjectIdUsageBreakdownGetParametersEndpoint","type":"string"},"V1ProjectsProjectIdUsageBreakdownGetParametersGrouping":{"enum":["accessor","endpoint","feature_set","models","method","tags","deployment"],"title":"V1ProjectsProjectIdUsageBreakdownGetParametersGrouping","type":"string"},"V1ProjectsProjectIdUsageBreakdownGetParametersMethod":{"description":"Method type for the request","enum":["sync","async","streaming"],"title":"V1ProjectsProjectIdUsageBreakdownGetParametersMethod","type":"string"},"V1ProjectsProjectIdUsageGetParametersDeployment":{"description":"Deployment type for the requests","enum":["hosted","beta","self-hosted"],"title":"V1ProjectsProjectIdUsageGetParametersDeployment","type":"string"},"V1ProjectsProjectIdUsageGetParametersEndpoint":{"enum":["listen","read","speak","agent"],"title":"V1ProjectsProjectIdUsageGetParametersEndpoint","type":"string"},"V1ProjectsProjectIdUsageGetParametersMethod":{"description":"Method type for the request","enum":["sync","async","streaming"],"title":"V1ProjectsProjectIdUsageGetParametersMethod","type":"string"},"V1ReadPostParametersCallbackMethod":{"default":"POST","enum":["POST","PUT"],"title":"V1ReadPostParametersCallbackMethod","type":"string"},"V1ReadPostParametersCustomIntent":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V1ReadPostParametersCustomIntent"},"V1ReadPostParametersCustomIntentMode":{"default":"extended","enum":["extended","strict"],"title":"V1ReadPostParametersCustomIntentMode","type":"string"},"V1ReadPostParametersCustomTopic":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V1ReadPostParametersCustomTopic"},"V1ReadPostParametersCustomTopicMode":{"default":"extended","enum":["extended","strict"],"title":"V1ReadPostParametersCustomTopicMode","type":"string"},"V1ReadPostParametersSummarize":{"oneOf":[{"$ref":"#/components/schemas/V1ReadPostParametersSummarize0"},{"default":false,"type":"boolean"}],"title":"V1ReadPostParametersSummarize"},"V1ReadPostParametersSummarize0":{"enum":["v2"],"title":"V1ReadPostParametersSummarize0","type":"string"},"V1ReadPostParametersTag":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V1ReadPostParametersTag"},"V1SpeakPostParametersBitRate":{"oneOf":[{"$ref":"#/components/schemas/V1SpeakPostParametersBitRate0"},{"format":"double","maximum":650000,"minimum":4000,"type":"number"},{"format":"double","maximum":192000,"minimum":4000,"type":"number"}],"title":"V1SpeakPostParametersBitRate"},"V1SpeakPostParametersBitRate0":{"description":"Encoding - mp3(default). Supported bitrates - 32000, 48000(default) bps.","enum":["32000","48000"],"title":"V1SpeakPostParametersBitRate0","type":"string"},"V1SpeakPostParametersCallbackMethod":{"default":"POST","enum":["POST","PUT"],"title":"V1SpeakPostParametersCallbackMethod","type":"string"},"V1SpeakPostParametersContainer":{"oneOf":[{"$ref":"#/components/schemas/V1SpeakPostParametersContainer0"},{"$ref":"#/components/schemas/V1SpeakPostParametersContainer1"},{"$ref":"#/components/schemas/V1SpeakPostParametersContainer2"},{"$ref":"#/components/schemas/V1SpeakPostParametersContainer3"},{"$ref":"#/components/schemas/V1SpeakPostParametersContainer4"}],"title":"V1SpeakPostParametersContainer"},"V1SpeakPostParametersContainer0":{"description":"No container.","enum":["none"],"title":"V1SpeakPostParametersContainer0","type":"string"},"V1SpeakPostParametersContainer1":{"description":"Encoding - linear16. Supported container - wav (default), or no container.","enum":["wav"],"title":"V1SpeakPostParametersContainer1","type":"string"},"V1SpeakPostParametersContainer2":{"description":"Encoding - mulaw. Supported container - wav (default), or no container.","enum":["wav"],"title":"V1SpeakPostParametersContainer2","type":"string"},"V1SpeakPostParametersContainer3":{"description":"Encoding - alaw. Supported container - wav (default), or no container.","enum":["wav"],"title":"V1SpeakPostParametersContainer3","type":"string"},"V1SpeakPostParametersContainer4":{"description":"Encoding - opus. Supported container - ogg (default).","enum":["ogg"],"title":"V1SpeakPostParametersContainer4","type":"string"},"V1SpeakPostParametersEncoding":{"oneOf":[{"$ref":"#/components/schemas/V1SpeakPostParametersEncoding0"},{"$ref":"#/components/schemas/V1SpeakPostParametersEncoding1"},{"$ref":"#/components/schemas/V1SpeakPostParametersEncoding2"},{"$ref":"#/components/schemas/V1SpeakPostParametersEncoding3"},{"$ref":"#/components/schemas/V1SpeakPostParametersEncoding4"},{"$ref":"#/components/schemas/V1SpeakPostParametersEncoding5"},{"$ref":"#/components/schemas/V1SpeakPostParametersEncoding6"}],"title":"V1SpeakPostParametersEncoding"},"V1SpeakPostParametersEncoding0":{"description":"Encoding - linear16. Uncompressed, high-quality audio format often used for telephony or audio processing.","enum":["linear16"],"title":"V1SpeakPostParametersEncoding0","type":"string"},"V1SpeakPostParametersEncoding1":{"description":"Encoding - flac. Lossless audio format for high-quality compression.","enum":["flac"],"title":"V1SpeakPostParametersEncoding1","type":"string"},"V1SpeakPostParametersEncoding2":{"description":"Encoding - mulaw. Compressed audio format commonly used in telephony.","enum":["mulaw"],"title":"V1SpeakPostParametersEncoding2","type":"string"},"V1SpeakPostParametersEncoding3":{"description":"Encoding - alaw. Similar to mulaw but used in international telephony.","enum":["alaw"],"title":"V1SpeakPostParametersEncoding3","type":"string"},"V1SpeakPostParametersEncoding4":{"description":"Encoding - mp3. Popular compressed audio format for music and streaming.","enum":["mp3"],"title":"V1SpeakPostParametersEncoding4","type":"string"},"V1SpeakPostParametersEncoding5":{"description":"Encoding - opus. High-compression audio format optimized for real-time communications.","enum":["opus"],"title":"V1SpeakPostParametersEncoding5","type":"string"},"V1SpeakPostParametersEncoding6":{"description":"Encoding - aac. Advanced audio format offering better quality at smaller file sizes than mp3.","enum":["aac"],"title":"V1SpeakPostParametersEncoding6","type":"string"},"V1SpeakPostParametersModel":{"default":"aura-asteria-en","enum":["aura-angus-en","aura-arcas-en","aura-asteria-en","aura-athena-en","aura-helios-en","aura-hera-en","aura-luna-en","aura-orion-en","aura-orpheus-en","aura-perseus-en","aura-stella-en","aura-zeus-en","aura-2-amalthea-en","aura-2-andromeda-en","aura-2-apollo-en","aura-2-arcas-en","aura-2-aries-en","aura-2-asteria-en","aura-2-athena-en","aura-2-atlas-en","aura-2-aurora-en","aura-2-callista-en","aura-2-cora-en","aura-2-cordelia-en","aura-2-delia-en","aura-2-draco-en","aura-2-electra-en","aura-2-harmonia-en","aura-2-helena-en","aura-2-hera-en","aura-2-hermes-en","aura-2-hyperion-en","aura-2-iris-en","aura-2-janus-en","aura-2-juno-en","aura-2-jupiter-en","aura-2-luna-en","aura-2-mars-en","aura-2-minerva-en","aura-2-neptune-en","aura-2-odysseus-en","aura-2-ophelia-en","aura-2-orion-en","aura-2-orpheus-en","aura-2-pandora-en","aura-2-phoebe-en","aura-2-pluto-en","aura-2-saturn-en","aura-2-selene-en","aura-2-thalia-en","aura-2-theia-en","aura-2-vesta-en","aura-2-zeus-en","aura-2-agustina-es","aura-2-alvaro-es","aura-2-antonia-es","aura-2-aquila-es","aura-2-carina-es","aura-2-celeste-es","aura-2-diana-es","aura-2-estrella-es","aura-2-gloria-es","aura-2-javier-es","aura-2-luciano-es","aura-2-nestor-es","aura-2-olivia-es","aura-2-selena-es","aura-2-silvia-es","aura-2-sirio-es","aura-2-valerio-es","aura-2-aurelia-de","aura-2-elara-de","aura-2-fabian-de","aura-2-julius-de","aura-2-kara-de","aura-2-lara-de","aura-2-viktoria-de","aura-2-beatrix-nl","aura-2-cornelia-nl","aura-2-daphne-nl","aura-2-hestia-nl","aura-2-lars-nl","aura-2-leda-nl","aura-2-rhea-nl","aura-2-roman-nl","aura-2-sander-nl","aura-2-agathe-fr","aura-2-hector-fr","aura-2-cesare-it","aura-2-cinzia-it","aura-2-demetra-it","aura-2-dionisio-it","aura-2-elio-it","aura-2-flavio-it","aura-2-livia-it","aura-2-maia-it","aura-2-melia-it","aura-2-ama-ja","aura-2-ebisu-ja","aura-2-fujin-ja","aura-2-izanami-ja","aura-2-uzume-ja"],"title":"V1SpeakPostParametersModel","type":"string"},"V1SpeakPostParametersSampleRate":{"oneOf":[{"$ref":"#/components/schemas/V1SpeakPostParametersSampleRate0"},{"$ref":"#/components/schemas/V1SpeakPostParametersSampleRate1"},{"$ref":"#/components/schemas/V1SpeakPostParametersSampleRate2"},{"$ref":"#/components/schemas/V1SpeakPostParametersSampleRate3"},{"$ref":"#/components/schemas/V1SpeakPostParametersSampleRate4"}],"title":"V1SpeakPostParametersSampleRate"},"V1SpeakPostParametersSampleRate0":{"description":"Encoding - linear16. Supported sample rates - 8000, 16000, 24000, 32000, 48000 Hz.","enum":["8000","16000","24000","32000","48000"],"title":"V1SpeakPostParametersSampleRate0","type":"string"},"V1SpeakPostParametersSampleRate1":{"description":"Encoding - mulaw. Supported sample rates - 8000, 16000 Hz.","enum":["8000","16000"],"title":"V1SpeakPostParametersSampleRate1","type":"string"},"V1SpeakPostParametersSampleRate2":{"description":"Encoding - alaw. Supported sample rates - 8000, 16000 Hz.","enum":["8000","16000"],"title":"V1SpeakPostParametersSampleRate2","type":"string"},"V1SpeakPostParametersSampleRate3":{"description":"Encoding - mp3. Sample rate is fixed and not configurable (22050 Hz).","enum":["22050"],"title":"V1SpeakPostParametersSampleRate3","type":"string"},"V1SpeakPostParametersSampleRate4":{"description":"Encoding - opus. Sample rate is fixed at 48000 Hz.","enum":["48000"],"title":"V1SpeakPostParametersSampleRate4","type":"string"},"V1SpeakPostParametersTag":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V1SpeakPostParametersTag"},"V2SpeakPostParametersBitRate":{"oneOf":[{"$ref":"#/components/schemas/V2SpeakPostParametersBitRate0"},{"maximum":650000,"minimum":4000,"type":"integer"},{"maximum":192000,"minimum":4000,"type":"integer"}],"title":"V2SpeakPostParametersBitRate"},"V2SpeakPostParametersBitRate0":{"description":"Encoding - mp3(default). Supported bitrates - 8000, 16000, 24000, 32000, 40000, 48000(default) bps.","enum":["8000","16000","24000","32000","40000","48000"],"title":"V2SpeakPostParametersBitRate0","type":"string"},"V2SpeakPostParametersCallbackMethod":{"default":"POST","enum":["POST","PUT"],"title":"V2SpeakPostParametersCallbackMethod","type":"string"},"V2SpeakPostParametersContainer":{"oneOf":[{"$ref":"#/components/schemas/V2SpeakPostParametersContainer0"},{"$ref":"#/components/schemas/V2SpeakPostParametersContainer1"},{"$ref":"#/components/schemas/V2SpeakPostParametersContainer2"},{"$ref":"#/components/schemas/V2SpeakPostParametersContainer3"},{"$ref":"#/components/schemas/V2SpeakPostParametersContainer4"}],"title":"V2SpeakPostParametersContainer"},"V2SpeakPostParametersContainer0":{"description":"No container.","enum":["none"],"title":"V2SpeakPostParametersContainer0","type":"string"},"V2SpeakPostParametersContainer1":{"description":"Encoding - linear16. Supported container - wav (default), or no container.","enum":["wav"],"title":"V2SpeakPostParametersContainer1","type":"string"},"V2SpeakPostParametersContainer2":{"description":"Encoding - mulaw. Supported container - wav (default), or no container.","enum":["wav"],"title":"V2SpeakPostParametersContainer2","type":"string"},"V2SpeakPostParametersContainer3":{"description":"Encoding - alaw. Supported container - wav (default), or no container.","enum":["wav"],"title":"V2SpeakPostParametersContainer3","type":"string"},"V2SpeakPostParametersContainer4":{"description":"Encoding - opus. Supported container - ogg (default).","enum":["ogg"],"title":"V2SpeakPostParametersContainer4","type":"string"},"V2SpeakPostParametersEncoding":{"oneOf":[{"$ref":"#/components/schemas/V2SpeakPostParametersEncoding0"},{"$ref":"#/components/schemas/V2SpeakPostParametersEncoding1"},{"$ref":"#/components/schemas/V2SpeakPostParametersEncoding2"},{"$ref":"#/components/schemas/V2SpeakPostParametersEncoding3"},{"$ref":"#/components/schemas/V2SpeakPostParametersEncoding4"},{"$ref":"#/components/schemas/V2SpeakPostParametersEncoding5"},{"$ref":"#/components/schemas/V2SpeakPostParametersEncoding6"}],"title":"V2SpeakPostParametersEncoding"},"V2SpeakPostParametersEncoding0":{"description":"Encoding - linear16. Uncompressed, high-quality audio format often used for telephony or audio processing.","enum":["linear16"],"title":"V2SpeakPostParametersEncoding0","type":"string"},"V2SpeakPostParametersEncoding1":{"description":"Encoding - flac. Lossless audio format for high-quality compression.","enum":["flac"],"title":"V2SpeakPostParametersEncoding1","type":"string"},"V2SpeakPostParametersEncoding2":{"description":"Encoding - mulaw. Compressed audio format commonly used in telephony.","enum":["mulaw"],"title":"V2SpeakPostParametersEncoding2","type":"string"},"V2SpeakPostParametersEncoding3":{"description":"Encoding - alaw. Similar to mulaw but used in international telephony.","enum":["alaw"],"title":"V2SpeakPostParametersEncoding3","type":"string"},"V2SpeakPostParametersEncoding4":{"description":"Encoding - mp3. Popular compressed audio format for music and streaming.","enum":["mp3"],"title":"V2SpeakPostParametersEncoding4","type":"string"},"V2SpeakPostParametersEncoding5":{"description":"Encoding - opus. High-compression audio format optimized for real-time communications.","enum":["opus"],"title":"V2SpeakPostParametersEncoding5","type":"string"},"V2SpeakPostParametersEncoding6":{"description":"Encoding - aac. Advanced audio format offering better quality at smaller file sizes than mp3.","enum":["aac"],"title":"V2SpeakPostParametersEncoding6","type":"string"},"V2SpeakPostParametersExpressivity":{"enum":["-2","-1","0","1","2"],"title":"V2SpeakPostParametersExpressivity","type":"string"},"V2SpeakPostParametersPriority":{"enum":["low"],"title":"V2SpeakPostParametersPriority","type":"string"},"V2SpeakPostParametersSampleRate":{"oneOf":[{"$ref":"#/components/schemas/V2SpeakPostParametersSampleRate0"},{"$ref":"#/components/schemas/V2SpeakPostParametersSampleRate1"},{"$ref":"#/components/schemas/V2SpeakPostParametersSampleRate2"},{"$ref":"#/components/schemas/V2SpeakPostParametersSampleRate3"}],"title":"V2SpeakPostParametersSampleRate"},"V2SpeakPostParametersSampleRate0":{"description":"Encoding - linear16. Supported sample rates - 8000, 16000, 24000, 32000, 44100, 48000 Hz.","enum":["8000","16000","24000","32000","44100","48000"],"title":"V2SpeakPostParametersSampleRate0","type":"string"},"V2SpeakPostParametersSampleRate1":{"description":"Encoding - mulaw. Supported sample rates - 8000, 16000 Hz.","enum":["8000","16000"],"title":"V2SpeakPostParametersSampleRate1","type":"string"},"V2SpeakPostParametersSampleRate2":{"description":"Encoding - alaw. Supported sample rates - 8000, 16000 Hz.","enum":["8000","16000"],"title":"V2SpeakPostParametersSampleRate2","type":"string"},"V2SpeakPostParametersSampleRate3":{"description":"Encoding - flac. Supported sample rates - 8000, 16000, 22050, 32000, 48000 Hz.","enum":["8000","16000","22050","32000","48000"],"title":"V2SpeakPostParametersSampleRate3","type":"string"},"V2SpeakPostParametersTag":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"V2SpeakPostParametersTag"},"listen_v1_media_transcribe_Response_200":{"oneOf":[{"$ref":"#/components/schemas/ListenV1Response"},{"$ref":"#/components/schemas/ListenV1AcceptedResponse"}],"title":"listen_v1_media_transcribe_Response_200"},"speak_v1_audio_generate_Response_200":{"description":"Empty response body","properties":{},"title":"speak_v1_audio_generate_Response_200","type":"object"}},"securitySchemes":{"ApiKeyAuth":{"description":"Use `Authorization: Token <API_KEY>`\nExample: `Authorization: Token 12345abcdef`\n","in":"header","name":"Authorization","type":"apiKey"}}},"info":{"title":"REST API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/v1/agent/settings/think/models":{"get":{"description":"Retrieves the available think models that can be used for AI agent processing","operationId":"models_list","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentThinkModelsV1Response"}}},"description":"List of available think models"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"summary":"List Agent Think Models","tags":["models"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/agent/settings/think/models\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/agent/settings/think/models'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/agent/settings/think/models\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/agent/settings/think/models\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/agent/settings/think/models', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/agent/settings/think/models', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/agent/settings/think/models\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/agent/settings/think/models\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/agent/settings/think/models\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/auth/grant":{"post":{"description":"Generates a temporary JSON Web Token (JWT) with a 30-second (by default) TTL and usage::write permission for core voice APIs, requiring an API key with Member or higher authorization. Tokens created with this endpoint will not work with the Manage APIs.","operationId":"tokens_grant","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantV1Request"}}},"description":"Time to live settings"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantV1Response"}}},"description":"Grant response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Token-based Authentication","tags":["tokens"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Post, \"https://agent.deepgram.com/v1/auth/grant\");\nrequest.Content = new StringContent(\"{\\\"ttl_seconds\\\":0}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X POST 'https://agent.deepgram.com/v1/auth/grant' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"ttl_seconds\":0}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"ttl_seconds\":0}`)\n\treq, err := http.NewRequestWithContext(ctx, \"POST\", \"https://agent.deepgram.com/v1/auth/grant\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/auth/grant\"))\n    .method(\"POST\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"{\\\"ttl_seconds\\\":0}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/auth/grant', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"ttl_seconds\":0}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/auth/grant', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"ttl_seconds\\\":0}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/auth/grant\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"ttl_seconds\\\":0}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://agent.deepgram.com/v1/auth/grant\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"ttl_seconds\":0}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/auth/grant\")\nrequest = Net::HTTPGenericRequest.new(\"POST\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"ttl_seconds\\\":0}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/listen":{"post":{"description":"Transcribe audio and video using Deepgram's speech-to-text REST API","operationId":"media_transcribe","parameters":[{"description":"URL to which we'll make the callback request","in":"query","name":"callback","required":false,"schema":{"type":"string"}},{"description":"HTTP method by which the callback request will be made","in":"query","name":"callback_method","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersCallbackMethod","default":"POST"}},{"description":"Arbitrary key-value pairs that are attached to the API response for usage in downstream processing","in":"query","name":"extra","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersExtra"}},{"description":"Recognizes the sentiment throughout a transcript or text","in":"query","name":"sentiment","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Summarize content. For Listen API, supports string version option. For Read API, accepts boolean only.","in":"query","name":"summarize","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersSummarize"}},{"description":"Label your requests for the purpose of identification during usage reporting","in":"query","name":"tag","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersTag"}},{"description":"Detect topics throughout a transcript or text","in":"query","name":"topics","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Custom topics you want the model to detect within your input audio or text if present Submit up to `100`.","in":"query","name":"custom_topic","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersCustomTopic"}},{"description":"Sets how the model will interpret strings submitted to the `custom_topic` param. When `strict`, the model will only return topics submitted using the `custom_topic` param. When `extended`, the model will return its own detected topics in addition to those submitted using the `custom_topic` param","in":"query","name":"custom_topic_mode","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersCustomTopicMode","default":"extended"}},{"description":"Recognizes speaker intent throughout a transcript or text","in":"query","name":"intents","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Custom intents you want the model to detect within your input audio if present","in":"query","name":"custom_intent","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersCustomIntent"}},{"description":"Sets how the model will interpret intents submitted to the `custom_intent` param. When `strict`, the model will only return intents submitted using the `custom_intent` param. When `extended`, the model will return its own detected intents in the `custom_intent` param.","in":"query","name":"custom_intent_mode","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersCustomIntentMode","default":"extended"}},{"description":"Identifies and extracts key entities from content in submitted audio","in":"query","name":"detect_entities","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Identifies the dominant language spoken in submitted audio","in":"query","name":"detect_language","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersDetectLanguage"}},{"deprecated":true,"description":"Deprecated: use `diarize_model` instead. Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0.","in":"query","name":"diarize","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Select and enable a specific diarization model version. Specifying this parameter enables diarization and selects the model — you do not need to also set the deprecated `diarize=true` parameter. For batch, supported values are `latest` (currently v2), `v1`, and `v2`. For streaming, supported values are `latest` (currently v1) and `v1`; `v2` returns a validation error on streaming requests.","in":"query","name":"diarize_model","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersDiarizeModel"}},{"description":"Dictation mode for controlling formatting with dictated speech","in":"query","name":"dictation","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Specify the expected encoding of your submitted audio","in":"query","name":"encoding","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersEncoding"}},{"description":"Filler Words can help transcribe interruptions in your audio, like \"uh\" and \"um\"","in":"query","name":"filler_words","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Key term prompting improves recognition of specialized terminology and brands. Only compatible with Nova-3.\n\n`keyterm` accepts plain terms only. Unlike the legacy `keywords` feature, it does not support weights or intensifiers. Appending one (for example, `keyterm=term:0.15`) is not rejected—the weight is silently ignored and the entire value is treated as a literal keyterm.\n\nTo boost multiple separate keyterms, repeat the `keyterm` parameter (for example, `keyterm=term1&keyterm=term2`). To boost one multi-word phrase as a single keyterm, join the words with `%20` or `+` (for example, `keyterm=customer%20service`). Do not separate keyterms with commas, semicolons, or line breaks.\n","in":"query","name":"keyterm","required":false,"schema":{"items":{"type":"string"},"type":"array"}},{"description":"Keywords can boost or suppress specialized terminology and brands. `keywords` is not supported with Nova-3 models; use `keyterm` instead.","in":"query","name":"keywords","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersKeywords"}},{"description":"The [BCP-47 language tag](https://tools.ietf.org/html/bcp47) that hints at the primary spoken language. Depending on the Model and API endpoint you choose only certain languages are available","in":"query","name":"language","required":false,"schema":{"default":"en","type":"string"}},{"description":"Spoken measurements will be converted to their corresponding abbreviations","in":"query","name":"measurements","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"AI model used to process submitted audio","in":"query","name":"model","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersModel","default":"base-general"}},{"description":"Transcribe each audio channel independently","in":"query","name":"multichannel","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Numerals converts numbers from written format to numerical format","in":"query","name":"numerals","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Splits audio into paragraphs to improve transcript readability","in":"query","name":"paragraphs","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Profanity Filter looks for recognized profanity and converts it to the nearest recognized non-profane word or removes it from the transcript completely","in":"query","name":"profanity_filter","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Add punctuation and capitalization to the transcript","in":"query","name":"punctuate","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Redaction removes sensitive information from your transcripts","in":"query","name":"redact","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersRedact","default":false}},{"description":"Search for terms or phrases in submitted audio and replaces them","in":"query","name":"replace","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersReplace"}},{"description":"Search for terms or phrases in submitted audio","in":"query","name":"search","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersSearch"}},{"description":"Apply formatting to transcript output. When set to true, additional formatting will be applied to transcripts to improve readability","in":"query","name":"smart_format","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Segments speech into meaningful semantic units","in":"query","name":"utterances","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Seconds to wait before detecting a pause between words in submitted audio","in":"query","name":"utt_split","required":false,"schema":{"default":0.8,"format":"double","type":"number"}},{"description":"Version of an AI model to use","in":"query","name":"version","required":false,"schema":{"$ref":"#/components/schemas/V1ListenPostParametersVersion","default":"latest"}},{"description":"Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip","in":"query","name":"mip_opt_out","required":false,"schema":{"default":false,"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListenV1RequestUrl"}}},"description":"Transcribe an audio or video file"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/listen_v1_media_transcribe_Response_200"}}},"description":"Returns either transcription results, or a request_id when using a callback."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListenV1Response"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Transcribe and analyze pre-recorded audio and video","tags":["media"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Post, \"https://agent.deepgram.com/v1/listen?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&detect_entities=false&detect_language=false&diarize=false&diarize_model=latest&dictation=false&encoding=amr-nb&extra=string&filler_words=false&intents=false&keyterm=%5B%22string%22%5D&keywords=string&language=en&measurements=false&mip_opt_out=false&model=base&multichannel=false&numerals=false&paragraphs=false&profanity_filter=false&punctuate=false&redact=%5B%22numbers%22%5D&replace=string&search=string&sentiment=false&smart_format=false&summarize=v2&tag=string&topics=false&utt_split=0.8&utterances=false&version=latest\");\nrequest.Content = new StringContent(\"{\\\"url\\\":\\\"https://example.com\\\"}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X POST 'https://agent.deepgram.com/v1/listen?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&detect_entities=false&detect_language=false&diarize=false&diarize_model=latest&dictation=false&encoding=amr-nb&extra=string&filler_words=false&intents=false&keyterm=%5B%22string%22%5D&keywords=string&language=en&measurements=false&mip_opt_out=false&model=base&multichannel=false&numerals=false&paragraphs=false&profanity_filter=false&punctuate=false&redact=%5B%22numbers%22%5D&replace=string&search=string&sentiment=false&smart_format=false&summarize=v2&tag=string&topics=false&utt_split=0.8&utterances=false&version=latest' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"url\":\"https://example.com\"}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"url\":\"https://example.com\"}`)\n\treq, err := http.NewRequestWithContext(ctx, \"POST\", \"https://agent.deepgram.com/v1/listen?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&detect_entities=false&detect_language=false&diarize=false&diarize_model=latest&dictation=false&encoding=amr-nb&extra=string&filler_words=false&intents=false&keyterm=%5B%22string%22%5D&keywords=string&language=en&measurements=false&mip_opt_out=false&model=base&multichannel=false&numerals=false&paragraphs=false&profanity_filter=false&punctuate=false&redact=%5B%22numbers%22%5D&replace=string&search=string&sentiment=false&smart_format=false&summarize=v2&tag=string&topics=false&utt_split=0.8&utterances=false&version=latest\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/listen?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&detect_entities=false&detect_language=false&diarize=false&diarize_model=latest&dictation=false&encoding=amr-nb&extra=string&filler_words=false&intents=false&keyterm=%5B%22string%22%5D&keywords=string&language=en&measurements=false&mip_opt_out=false&model=base&multichannel=false&numerals=false&paragraphs=false&profanity_filter=false&punctuate=false&redact=%5B%22numbers%22%5D&replace=string&search=string&sentiment=false&smart_format=false&summarize=v2&tag=string&topics=false&utt_split=0.8&utterances=false&version=latest\"))\n    .method(\"POST\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"{\\\"url\\\":\\\"https://example.com\\\"}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/listen?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&detect_entities=false&detect_language=false&diarize=false&diarize_model=latest&dictation=false&encoding=amr-nb&extra=string&filler_words=false&intents=false&keyterm=%5B%22string%22%5D&keywords=string&language=en&measurements=false&mip_opt_out=false&model=base&multichannel=false&numerals=false&paragraphs=false&profanity_filter=false&punctuate=false&redact=%5B%22numbers%22%5D&replace=string&search=string&sentiment=false&smart_format=false&summarize=v2&tag=string&topics=false&utt_split=0.8&utterances=false&version=latest', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"url\":\"https://example.com\"}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/listen?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&detect_entities=false&detect_language=false&diarize=false&diarize_model=latest&dictation=false&encoding=amr-nb&extra=string&filler_words=false&intents=false&keyterm=%5B%22string%22%5D&keywords=string&language=en&measurements=false&mip_opt_out=false&model=base&multichannel=false&numerals=false&paragraphs=false&profanity_filter=false&punctuate=false&redact=%5B%22numbers%22%5D&replace=string&search=string&sentiment=false&smart_format=false&summarize=v2&tag=string&topics=false&utt_split=0.8&utterances=false&version=latest', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"url\\\":\\\"https://example.com\\\"}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/listen?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&detect_entities=false&detect_language=false&diarize=false&diarize_model=latest&dictation=false&encoding=amr-nb&extra=string&filler_words=false&intents=false&keyterm=%5B%22string%22%5D&keywords=string&language=en&measurements=false&mip_opt_out=false&model=base&multichannel=false&numerals=false&paragraphs=false&profanity_filter=false&punctuate=false&redact=%5B%22numbers%22%5D&replace=string&search=string&sentiment=false&smart_format=false&summarize=v2&tag=string&topics=false&utt_split=0.8&utterances=false&version=latest\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"url\\\":\\\"https://example.com\\\"}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://agent.deepgram.com/v1/listen?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&detect_entities=false&detect_language=false&diarize=false&diarize_model=latest&dictation=false&encoding=amr-nb&extra=string&filler_words=false&intents=false&keyterm=%5B%22string%22%5D&keywords=string&language=en&measurements=false&mip_opt_out=false&model=base&multichannel=false&numerals=false&paragraphs=false&profanity_filter=false&punctuate=false&redact=%5B%22numbers%22%5D&replace=string&search=string&sentiment=false&smart_format=false&summarize=v2&tag=string&topics=false&utt_split=0.8&utterances=false&version=latest\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"url\":\"https://example.com\"}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/listen?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&detect_entities=false&detect_language=false&diarize=false&diarize_model=latest&dictation=false&encoding=amr-nb&extra=string&filler_words=false&intents=false&keyterm=%5B%22string%22%5D&keywords=string&language=en&measurements=false&mip_opt_out=false&model=base&multichannel=false&numerals=false&paragraphs=false&profanity_filter=false&punctuate=false&redact=%5B%22numbers%22%5D&replace=string&search=string&sentiment=false&smart_format=false&summarize=v2&tag=string&topics=false&utt_split=0.8&utterances=false&version=latest\")\nrequest = Net::HTTPGenericRequest.new(\"POST\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"url\\\":\\\"https://example.com\\\"}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/models":{"get":{"description":"Returns metadata on all the latest public models. To retrieve custom models, use Get Project Models.","operationId":"models_list_3","parameters":[{"description":"returns non-latest versions of models","in":"query","name":"include_outdated","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListModelsV1Response"}}},"description":"A list of models"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Models","tags":["models"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/models?include_outdated=true\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/models?include_outdated=true'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/models?include_outdated=true\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/models?include_outdated=true\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/models?include_outdated=true', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/models?include_outdated=true', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/models?include_outdated=true\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/models?include_outdated=true\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/models?include_outdated=true\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/models/{model_id}":{"get":{"description":"Returns metadata for a specific public model","operationId":"models_get_2","parameters":[{"description":"The specific UUID of the model","in":"path","name":"model_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetModelV1Response"}}},"description":"A model object that can be either STT or TTS"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get a specific Model","tags":["models"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/models/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/models/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/models/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/models/string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/models/string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/models/string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/models/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/models/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/models/string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects":{"get":{"description":"Retrieves basic information about the projects associated with the API key","operationId":"projects_list","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectsV1Response"}}},"description":"A list of projects"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Projects","tags":["projects"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}":{"delete":{"description":"Deletes the specified project","operationId":"projects_delete","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteProjectV1Response"}}},"description":"A project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Delete a Project","tags":["projects"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Delete, \"https://agent.deepgram.com/v1/projects/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X DELETE 'https://agent.deepgram.com/v1/projects/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"DELETE\", \"https://agent.deepgram.com/v1/projects/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string\"))\n    .method(\"DELETE\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string', { method: 'DELETE' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string', { method: 'DELETE' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"DELETE\", \"https://agent.deepgram.com/v1/projects/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string\")\nrequest = Net::HTTPGenericRequest.new(\"DELETE\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"get":{"description":"Retrieves information about the specified project","operationId":"projects_get","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Number of results to return per page. Default 10. Range [1,1000]","in":"query","name":"limit","required":false,"schema":{"default":10,"format":"double","maximum":1000,"minimum":1,"type":"number"}},{"description":"Navigate and return the results to retrieve specific portions of information of the response","in":"query","name":"page","required":false,"schema":{"format":"double","type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProjectV1Response"}}},"description":"A project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get a Project","tags":["projects"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string?limit=10&page=0\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string?limit=10&page=0'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string?limit=10&page=0\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string?limit=10&page=0\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string?limit=10&page=0', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string?limit=10&page=0', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string?limit=10&page=0\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string?limit=10&page=0\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string?limit=10&page=0\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"patch":{"description":"Updates the name or other properties of an existing project","operationId":"projects_update","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProjectV1Request"}}},"description":"The name of the project"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProjectV1Response"}}},"description":"A project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Update a Project","tags":["projects"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Patch, \"https://agent.deepgram.com/v1/projects/string\");\nrequest.Content = new StringContent(\"{\\\"name\\\":\\\"string\\\"}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X PATCH 'https://agent.deepgram.com/v1/projects/string' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"name\":\"string\"}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"name\":\"string\"}`)\n\treq, err := http.NewRequestWithContext(ctx, \"PATCH\", \"https://agent.deepgram.com/v1/projects/string\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string\"))\n    .method(\"PATCH\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"PATCH\", HttpRequest.BodyPublishers.ofString(\"{\\\"name\\\":\\\"string\\\"}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string', {\n  method: 'PATCH',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"name\":\"string\"}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string', { method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"name\\\":\\\"string\\\"}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"PATCH\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"name\\\":\\\"string\\\"}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"PATCH\",\n    \"https://agent.deepgram.com/v1/projects/string\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"name\":\"string\"}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string\")\nrequest = Net::HTTPGenericRequest.new(\"PATCH\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"name\\\":\\\"string\\\"}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/agent-variables":{"get":{"description":"Returns all template variables for the specified project","operationId":"variables_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAgentVariablesV1Response"}}},"description":"A list of agent variables"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Agent Variables","tags":["variables"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/agent-variables\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/agent-variables'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/agent-variables\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/agent-variables\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agent-variables', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agent-variables', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/agent-variables\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/agent-variables\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/agent-variables\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"post":{"description":"Creates a new template variable. Variables follow the `DG_<VARIABLE_NAME>` naming format and can substitute any JSON value in an agent configuration.","operationId":"variables_create","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentVariableV1Request"}}},"description":"Agent variable details"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVariableV1"}}},"description":"Agent variable created successfully"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create an Agent Variable","tags":["variables"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Post, \"https://agent.deepgram.com/v1/projects/string/agent-variables\");\nrequest.Content = new StringContent(\"{\\\"api_version\\\":1,\\\"key\\\":\\\"string\\\",\\\"value\\\":null}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X POST 'https://agent.deepgram.com/v1/projects/string/agent-variables' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"api_version\":1,\"key\":\"string\",\"value\":null}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"api_version\":1,\"key\":\"string\",\"value\":null}`)\n\treq, err := http.NewRequestWithContext(ctx, \"POST\", \"https://agent.deepgram.com/v1/projects/string/agent-variables\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/agent-variables\"))\n    .method(\"POST\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"{\\\"api_version\\\":1,\\\"key\\\":\\\"string\\\",\\\"value\\\":null}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agent-variables', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"api_version\":1,\"key\":\"string\",\"value\":null}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agent-variables', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"api_version\\\":1,\\\"key\\\":\\\"string\\\",\\\"value\\\":null}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/agent-variables\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"api_version\\\":1,\\\"key\\\":\\\"string\\\",\\\"value\\\":null}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://agent.deepgram.com/v1/projects/string/agent-variables\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"api_version\":1,\"key\":\"string\",\"value\":null}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/agent-variables\")\nrequest = Net::HTTPGenericRequest.new(\"POST\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"api_version\\\":1,\\\"key\\\":\\\"string\\\",\\\"value\\\":null}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/agent-variables/{variable_id}":{"delete":{"description":"Deletes the specified template variable","operationId":"variables_delete","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the agent variable","in":"path","name":"variable_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAgentVariableV1Response"}}},"description":"Agent variable deleted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Delete an Agent Variable","tags":["variables"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Delete, \"https://agent.deepgram.com/v1/projects/string/agent-variables/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X DELETE 'https://agent.deepgram.com/v1/projects/string/agent-variables/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"DELETE\", \"https://agent.deepgram.com/v1/projects/string/agent-variables/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/agent-variables/string\"))\n    .method(\"DELETE\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agent-variables/string', { method: 'DELETE' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agent-variables/string', { method: 'DELETE' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/agent-variables/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"DELETE\", \"https://agent.deepgram.com/v1/projects/string/agent-variables/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/agent-variables/string\")\nrequest = Net::HTTPGenericRequest.new(\"DELETE\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"get":{"description":"Returns the specified template variable","operationId":"variables_get","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the agent variable","in":"path","name":"variable_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVariableV1"}}},"description":"An agent variable"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get an Agent Variable","tags":["variables"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/agent-variables/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/agent-variables/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/agent-variables/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/agent-variables/string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agent-variables/string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agent-variables/string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/agent-variables/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/agent-variables/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/agent-variables/string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"patch":{"description":"Updates the value of an existing template variable","operationId":"variables_update","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the agent variable","in":"path","name":"variable_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentVariableV1Request"}}},"description":"Updated value for the agent variable"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVariableV1"}}},"description":"Agent variable updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Update an Agent Variable","tags":["variables"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Patch, \"https://agent.deepgram.com/v1/projects/string/agent-variables/string\");\nrequest.Content = new StringContent(\"{\\\"value\\\":null}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X PATCH 'https://agent.deepgram.com/v1/projects/string/agent-variables/string' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"value\":null}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"value\":null}`)\n\treq, err := http.NewRequestWithContext(ctx, \"PATCH\", \"https://agent.deepgram.com/v1/projects/string/agent-variables/string\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/agent-variables/string\"))\n    .method(\"PATCH\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"PATCH\", HttpRequest.BodyPublishers.ofString(\"{\\\"value\\\":null}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agent-variables/string', {\n  method: 'PATCH',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"value\":null}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agent-variables/string', { method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"value\\\":null}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/agent-variables/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"PATCH\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"value\\\":null}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"PATCH\",\n    \"https://agent.deepgram.com/v1/projects/string/agent-variables/string\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"value\":null}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/agent-variables/string\")\nrequest = Net::HTTPGenericRequest.new(\"PATCH\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"value\\\":null}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/agents":{"get":{"description":"Returns all agent configurations for the specified project. Configurations are returned in their uninterpolated form—template variable placeholders appear as-is rather than with their substituted values.","operationId":"configurations_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAgentConfigurationsV1Response"}}},"description":"A list of agent configurations"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Agent Configurations","tags":["configurations"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/agents\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/agents'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/agents\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/agents\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agents', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agents', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/agents\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/agents\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/agents\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"post":{"description":"Creates a new reusable agent configuration. The `config` field must be a valid JSON string representing the `agent` block of a Settings message. The returned `agent_id` can be passed in place of the full `agent` object in future Settings messages.","operationId":"configurations_create","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentConfigurationV1Request"}}},"description":"Agent configuration details"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentConfigurationV1Response"}}},"description":"Agent configuration created successfully"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create an Agent Configuration","tags":["configurations"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Post, \"https://agent.deepgram.com/v1/projects/string/agents\");\nrequest.Content = new StringContent(\"{\\\"api_version\\\":1,\\\"config\\\":\\\"string\\\",\\\"metadata\\\":{\\\"additionalProp1\\\":\\\"string\\\"}}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X POST 'https://agent.deepgram.com/v1/projects/string/agents' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"api_version\":1,\"config\":\"string\",\"metadata\":{\"additionalProp1\":\"string\"}}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"api_version\":1,\"config\":\"string\",\"metadata\":{\"additionalProp1\":\"string\"}}`)\n\treq, err := http.NewRequestWithContext(ctx, \"POST\", \"https://agent.deepgram.com/v1/projects/string/agents\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/agents\"))\n    .method(\"POST\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"{\\\"api_version\\\":1,\\\"config\\\":\\\"string\\\",\\\"metadata\\\":{\\\"additionalProp1\\\":\\\"string\\\"}}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agents', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"api_version\":1,\"config\":\"string\",\"metadata\":{\"additionalProp1\":\"string\"}}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agents', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"api_version\\\":1,\\\"config\\\":\\\"string\\\",\\\"metadata\\\":{\\\"additionalProp1\\\":\\\"string\\\"}}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/agents\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"api_version\\\":1,\\\"config\\\":\\\"string\\\",\\\"metadata\\\":{\\\"additionalProp1\\\":\\\"string\\\"}}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://agent.deepgram.com/v1/projects/string/agents\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"api_version\":1,\"config\":\"string\",\"metadata\":{\"additionalProp1\":\"string\"}}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/agents\")\nrequest = Net::HTTPGenericRequest.new(\"POST\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"api_version\\\":1,\\\"config\\\":\\\"string\\\",\\\"metadata\\\":{\\\"additionalProp1\\\":\\\"string\\\"}}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/agents/{agent_id}":{"delete":{"description":"Deletes the specified agent configuration. Deleting an agent configuration can cause a production outage if your service references this agent UUID. Migrate all active sessions to a new configuration before deleting.","operationId":"configurations_delete","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the agent configuration","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAgentConfigurationV1Response"}}},"description":"Agent configuration deleted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Delete an Agent Configuration","tags":["configurations"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Delete, \"https://agent.deepgram.com/v1/projects/string/agents/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X DELETE 'https://agent.deepgram.com/v1/projects/string/agents/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"DELETE\", \"https://agent.deepgram.com/v1/projects/string/agents/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/agents/string\"))\n    .method(\"DELETE\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agents/string', { method: 'DELETE' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agents/string', { method: 'DELETE' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/agents/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"DELETE\", \"https://agent.deepgram.com/v1/projects/string/agents/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/agents/string\")\nrequest = Net::HTTPGenericRequest.new(\"DELETE\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"get":{"description":"Returns the specified agent configuration in its uninterpolated form","operationId":"configurations_get","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the agent configuration","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConfigurationV1"}}},"description":"An agent configuration"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get an Agent Configuration","tags":["configurations"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/agents/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/agents/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/agents/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/agents/string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agents/string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agents/string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/agents/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/agents/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/agents/string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"put":{"description":"Updates the metadata associated with an agent configuration. The config itself is immutable—to change the configuration, delete the existing agent and create a new one.","operationId":"configurations_update","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the agent configuration","in":"path","name":"agent_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentMetadataV1Request"}}},"description":"Updated metadata for the agent configuration"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConfigurationV1"}}},"description":"Agent configuration updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Update Agent Metadata","tags":["configurations"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Put, \"https://agent.deepgram.com/v1/projects/string/agents/string\");\nrequest.Content = new StringContent(\"{\\\"metadata\\\":{\\\"additionalProp1\\\":\\\"string\\\"}}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X PUT 'https://agent.deepgram.com/v1/projects/string/agents/string' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"metadata\":{\"additionalProp1\":\"string\"}}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"metadata\":{\"additionalProp1\":\"string\"}}`)\n\treq, err := http.NewRequestWithContext(ctx, \"PUT\", \"https://agent.deepgram.com/v1/projects/string/agents/string\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/agents/string\"))\n    .method(\"PUT\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"PUT\", HttpRequest.BodyPublishers.ofString(\"{\\\"metadata\\\":{\\\"additionalProp1\\\":\\\"string\\\"}}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agents/string', {\n  method: 'PUT',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"metadata\":{\"additionalProp1\":\"string\"}}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/agents/string', { method: 'PUT', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"metadata\\\":{\\\"additionalProp1\\\":\\\"string\\\"}}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/agents/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"metadata\\\":{\\\"additionalProp1\\\":\\\"string\\\"}}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"PUT\",\n    \"https://agent.deepgram.com/v1/projects/string/agents/string\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"metadata\":{\"additionalProp1\":\"string\"}}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/agents/string\")\nrequest = Net::HTTPGenericRequest.new(\"PUT\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"metadata\\\":{\\\"additionalProp1\\\":\\\"string\\\"}}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/balances":{"get":{"description":"Generates a list of outstanding balances for the specified project","operationId":"balances_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectBalancesV1Response"}}},"description":"A list of outstanding balances"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get Project Balances","tags":["balances"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/balances\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/balances'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/balances\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/balances\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/balances', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/balances', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/balances\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/balances\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/balances\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/balances/{balance_id}":{"get":{"description":"Retrieves details about the specified balance","operationId":"balances_get","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the balance","in":"path","name":"balance_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProjectBalanceV1Response"}}},"description":"A specific balance"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get a Project Balance","tags":["balances"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/balances/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/balances/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/balances/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/balances/string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/balances/string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/balances/string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/balances/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/balances/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/balances/string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/billing/breakdown":{"get":{"description":"Retrieves the billing summary for a specific project, with various filter options or by grouping options.","operationId":"breakdown_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Start date of the requested date range. Format accepted is YYYY-MM-DD","in":"query","name":"start","required":false,"schema":{"format":"date","type":"string"}},{"description":"End date of the requested date range. Format accepted is YYYY-MM-DD","in":"query","name":"end","required":false,"schema":{"format":"date","type":"string"}},{"description":"Filter for requests where a specific accessor was used","in":"query","name":"accessor","required":false,"schema":{"type":"string"}},{"description":"Filter for requests where a specific deployment was used","in":"query","name":"deployment","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdBillingBreakdownGetParametersDeployment"}},{"description":"Filter for requests where a specific tag was used","in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"description":"Filter requests by line item (e.g. streaming::nova-3)","in":"query","name":"line_item","required":false,"schema":{"type":"string"}},{"description":"Group billing breakdown by one or more dimensions (accessor, deployment, line_item, tags)","in":"query","name":"grouping","required":false,"schema":{"items":{"$ref":"#/components/schemas/V1ProjectsProjectIdBillingBreakdownGetParametersGroupingSchemaItems"},"type":"array"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingBreakdownV1Response"}}},"description":"Billing breakdown response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get Project Billing Breakdown","tags":["breakdown"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/billing/breakdown?accessor=string&deployment=beta&end=2026-06-09&grouping=%5B%22accessor%22%5D&line_item=string&start=2026-06-09&tag=string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/billing/breakdown?accessor=string&deployment=beta&end=2026-06-09&grouping=%5B%22accessor%22%5D&line_item=string&start=2026-06-09&tag=string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/billing/breakdown?accessor=string&deployment=beta&end=2026-06-09&grouping=%5B%22accessor%22%5D&line_item=string&start=2026-06-09&tag=string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/billing/breakdown?accessor=string&deployment=beta&end=2026-06-09&grouping=%5B%22accessor%22%5D&line_item=string&start=2026-06-09&tag=string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/billing/breakdown?accessor=string&deployment=beta&end=2026-06-09&grouping=%5B%22accessor%22%5D&line_item=string&start=2026-06-09&tag=string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/billing/breakdown?accessor=string&deployment=beta&end=2026-06-09&grouping=%5B%22accessor%22%5D&line_item=string&start=2026-06-09&tag=string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/billing/breakdown?accessor=string&deployment=beta&end=2026-06-09&grouping=%5B%22accessor%22%5D&line_item=string&start=2026-06-09&tag=string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/billing/breakdown?accessor=string&deployment=beta&end=2026-06-09&grouping=%5B%22accessor%22%5D&line_item=string&start=2026-06-09&tag=string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/billing/breakdown?accessor=string&deployment=beta&end=2026-06-09&grouping=%5B%22accessor%22%5D&line_item=string&start=2026-06-09&tag=string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/billing/fields":{"get":{"description":"Lists the accessors, deployment types, tags, and line items used for billing data in the specified time period. Use this endpoint if you want to filter your results from the Billing Breakdown endpoint and want to know what filters are available.","operationId":"fields_list_2","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Start date of the requested date range. Format accepted is YYYY-MM-DD","in":"query","name":"start","required":false,"schema":{"format":"date","type":"string"}},{"description":"End date of the requested date range. Format accepted is YYYY-MM-DD","in":"query","name":"end","required":false,"schema":{"format":"date","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBillingFieldsV1Response"}}},"description":"A list of billing fields for a specific project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Project Billing Fields","tags":["fields"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/billing/fields?end=2026-06-09&start=2026-06-09\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/billing/fields?end=2026-06-09&start=2026-06-09'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/billing/fields?end=2026-06-09&start=2026-06-09\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/billing/fields?end=2026-06-09&start=2026-06-09\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/billing/fields?end=2026-06-09&start=2026-06-09', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/billing/fields?end=2026-06-09&start=2026-06-09', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/billing/fields?end=2026-06-09&start=2026-06-09\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/billing/fields?end=2026-06-09&start=2026-06-09\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/billing/fields?end=2026-06-09&start=2026-06-09\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/invites":{"get":{"description":"Generates a list of invites for a specific project","operationId":"invites_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectInvitesV1Response"}}},"description":"A list of invites for a specific project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Project Invites","tags":["invites"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/invites\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/invites'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/invites\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/invites\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/invites', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/invites', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/invites\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/invites\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/invites\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"post":{"description":"Generates an invite for a specific project","operationId":"invites_create","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectInviteV1Request"}}},"description":"email to invite to the project"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectInviteV1Response"}}},"description":"The invite was successfully generated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create a Project Invite","tags":["invites"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Post, \"https://agent.deepgram.com/v1/projects/string/invites\");\nrequest.Content = new StringContent(\"{\\\"email\\\":\\\"string\\\",\\\"scope\\\":\\\"string\\\"}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X POST 'https://agent.deepgram.com/v1/projects/string/invites' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"email\":\"string\",\"scope\":\"string\"}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"email\":\"string\",\"scope\":\"string\"}`)\n\treq, err := http.NewRequestWithContext(ctx, \"POST\", \"https://agent.deepgram.com/v1/projects/string/invites\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/invites\"))\n    .method(\"POST\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"{\\\"email\\\":\\\"string\\\",\\\"scope\\\":\\\"string\\\"}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/invites', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"email\":\"string\",\"scope\":\"string\"}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/invites', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"email\\\":\\\"string\\\",\\\"scope\\\":\\\"string\\\"}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/invites\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"email\\\":\\\"string\\\",\\\"scope\\\":\\\"string\\\"}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://agent.deepgram.com/v1/projects/string/invites\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"email\":\"string\",\"scope\":\"string\"}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/invites\")\nrequest = Net::HTTPGenericRequest.new(\"POST\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"email\\\":\\\"string\\\",\\\"scope\\\":\\\"string\\\"}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/invites/{email}":{"delete":{"description":"Deletes an invite for a specific project","operationId":"invites_delete","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The email address of the member","in":"path","name":"email","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteProjectInviteV1Response"}}},"description":"The invite was successfully deleted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Delete a Project Invite","tags":["invites"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Delete, \"https://agent.deepgram.com/v1/projects/string/invites/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X DELETE 'https://agent.deepgram.com/v1/projects/string/invites/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"DELETE\", \"https://agent.deepgram.com/v1/projects/string/invites/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/invites/string\"))\n    .method(\"DELETE\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/invites/string', { method: 'DELETE' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/invites/string', { method: 'DELETE' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/invites/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"DELETE\", \"https://agent.deepgram.com/v1/projects/string/invites/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/invites/string\")\nrequest = Net::HTTPGenericRequest.new(\"DELETE\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/keys":{"get":{"description":"Retrieves all API keys associated with the specified project","operationId":"keys_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Only return keys with a specific status","in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdKeysGetParametersStatus"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectKeysV1Response"}}},"description":"A list of API keys"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Project Keys","tags":["keys"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/keys?status=active\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/keys?status=active'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/keys?status=active\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/keys?status=active\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/keys?status=active', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/keys?status=active', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/keys?status=active\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/keys?status=active\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/keys?status=active\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"post":{"description":"Creates a new API key with specified settings for the project","operationId":"keys_create","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyV1Request"}}},"description":"API key settings"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyV1Response"}}},"description":"API key created successfully"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create a Project Key","tags":["keys"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Post, \"https://agent.deepgram.com/v1/projects/string/keys\");\nrequest.Content = new StringContent(\"null\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X POST 'https://agent.deepgram.com/v1/projects/string/keys' \\\n  -H 'Content-Type: application/json' \\\n  -d 'null'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`null`)\n\treq, err := http.NewRequestWithContext(ctx, \"POST\", \"https://agent.deepgram.com/v1/projects/string/keys\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/keys\"))\n    .method(\"POST\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"null\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/keys', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify(null),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/keys', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: \"null\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/keys\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"null\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://agent.deepgram.com/v1/projects/string/keys\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='null',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/keys\")\nrequest = Net::HTTPGenericRequest.new(\"POST\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"null\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/keys/{key_id}":{"delete":{"description":"Deletes an API key for a specific project","operationId":"keys_delete","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the API key","in":"path","name":"key_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteProjectKeyV1Response"}}},"description":"API key deleted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Delete a Project Key","tags":["keys"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Delete, \"https://agent.deepgram.com/v1/projects/string/keys/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X DELETE 'https://agent.deepgram.com/v1/projects/string/keys/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"DELETE\", \"https://agent.deepgram.com/v1/projects/string/keys/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/keys/string\"))\n    .method(\"DELETE\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/keys/string', { method: 'DELETE' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/keys/string', { method: 'DELETE' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/keys/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"DELETE\", \"https://agent.deepgram.com/v1/projects/string/keys/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/keys/string\")\nrequest = Net::HTTPGenericRequest.new(\"DELETE\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"get":{"description":"Retrieves information about a specified API key","operationId":"keys_get","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the API key","in":"path","name":"key_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProjectKeyV1Response"}}},"description":"A specific API key"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get a Project Key","tags":["keys"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/keys/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/keys/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/keys/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/keys/string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/keys/string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/keys/string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/keys/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/keys/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/keys/string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/leave":{"delete":{"description":"Removes the authenticated account from the specific project","operationId":"projects_leave","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaveProjectV1Response"}}},"description":"Successfully removed account from project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Leave a Project","tags":["projects"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Delete, \"https://agent.deepgram.com/v1/projects/string/leave\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X DELETE 'https://agent.deepgram.com/v1/projects/string/leave'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"DELETE\", \"https://agent.deepgram.com/v1/projects/string/leave\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/leave\"))\n    .method(\"DELETE\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/leave', { method: 'DELETE' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/leave', { method: 'DELETE' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/leave\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"DELETE\", \"https://agent.deepgram.com/v1/projects/string/leave\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/leave\")\nrequest = Net::HTTPGenericRequest.new(\"DELETE\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/members":{"get":{"description":"Retrieves a list of members for a given project","operationId":"members_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectMembersV1Response"}}},"description":"A list of members for a given project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Project Members","tags":["members"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/members\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/members'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/members\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/members\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/members', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/members', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/members\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/members\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/members\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/members/{member_id}":{"delete":{"description":"Removes a member from the project using their unique member ID","operationId":"members_delete","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the Member","in":"path","name":"member_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteProjectMemberV1Response"}}},"description":"Delete the specific member from the project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Delete a Project Member","tags":["members"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Delete, \"https://agent.deepgram.com/v1/projects/string/members/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X DELETE 'https://agent.deepgram.com/v1/projects/string/members/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"DELETE\", \"https://agent.deepgram.com/v1/projects/string/members/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/members/string\"))\n    .method(\"DELETE\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/members/string', { method: 'DELETE' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/members/string', { method: 'DELETE' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/members/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"DELETE\", \"https://agent.deepgram.com/v1/projects/string/members/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/members/string\")\nrequest = Net::HTTPGenericRequest.new(\"DELETE\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/members/{member_id}/scopes":{"get":{"description":"Retrieves a list of scopes for a specific member","operationId":"scopes_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the Member","in":"path","name":"member_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectMemberScopesV1Response"}}},"description":"A list of scopes for a specific member"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Project Member Scopes","tags":["scopes"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/members/string/scopes\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/members/string/scopes'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/members/string/scopes\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/members/string/scopes\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/members/string/scopes', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/members/string/scopes', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/members/string/scopes\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/members/string/scopes\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/members/string/scopes\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"put":{"description":"Updates the scopes for a specific member","operationId":"scopes_update","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the Member","in":"path","name":"member_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProjectMemberScopesV1Request"}}},"description":"A scope to update"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProjectMemberScopesV1Response"}}},"description":"Updated the scopes for a specific member"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Update Project Member Scopes","tags":["scopes"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Put, \"https://agent.deepgram.com/v1/projects/string/members/string/scopes\");\nrequest.Content = new StringContent(\"{\\\"scope\\\":\\\"string\\\"}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X PUT 'https://agent.deepgram.com/v1/projects/string/members/string/scopes' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"scope\":\"string\"}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"scope\":\"string\"}`)\n\treq, err := http.NewRequestWithContext(ctx, \"PUT\", \"https://agent.deepgram.com/v1/projects/string/members/string/scopes\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/members/string/scopes\"))\n    .method(\"PUT\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"PUT\", HttpRequest.BodyPublishers.ofString(\"{\\\"scope\\\":\\\"string\\\"}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/members/string/scopes', {\n  method: 'PUT',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"scope\":\"string\"}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/members/string/scopes', { method: 'PUT', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"scope\\\":\\\"string\\\"}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/members/string/scopes\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"scope\\\":\\\"string\\\"}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"PUT\",\n    \"https://agent.deepgram.com/v1/projects/string/members/string/scopes\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"scope\":\"string\"}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/members/string/scopes\")\nrequest = Net::HTTPGenericRequest.new(\"PUT\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"scope\\\":\\\"string\\\"}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/models":{"get":{"description":"Returns metadata on all the latest models that a specific project has access to, including non-public models","operationId":"models_list_2","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"returns non-latest versions of models","in":"query","name":"include_outdated","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListModelsV1Response"}}},"description":"A list of models"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Project Models","tags":["models"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/models?include_outdated=true\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/models?include_outdated=true'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/models?include_outdated=true\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/models?include_outdated=true\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/models?include_outdated=true', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/models?include_outdated=true', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/models?include_outdated=true\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/models?include_outdated=true\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/models?include_outdated=true\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/models/{model_id}":{"get":{"description":"Returns metadata for a specific model","operationId":"models_get","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The specific UUID of the model","in":"path","name":"model_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetModelV1Response"}}},"description":"A model object that can be either STT or TTS"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get a Project Model","tags":["models"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/models/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/models/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/models/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/models/string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/models/string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/models/string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/models/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/models/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/models/string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/purchases":{"get":{"description":"Returns the original purchased amount on an order transaction","operationId":"purchases_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Number of results to return per page. Default 10. Range [1,1000]","in":"query","name":"limit","required":false,"schema":{"default":10,"format":"double","maximum":1000,"minimum":1,"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectPurchasesV1Response"}}},"description":"A list of purchases for a specific project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Project Purchases","tags":["purchases"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/purchases?limit=10\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/purchases?limit=10'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/purchases?limit=10\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/purchases?limit=10\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/purchases?limit=10', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/purchases?limit=10', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/purchases?limit=10\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/purchases?limit=10\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/purchases?limit=10\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/requests":{"get":{"description":"Generates a list of requests for a specific project","operationId":"requests_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Start date of the requested date range. Formats accepted are YYYY-MM-DD, YYYY-MM-DDTHH:MM:SS, or YYYY-MM-DDTHH:MM:SS+HH:MM","in":"query","name":"start","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"End date of the requested date range. Formats accepted are YYYY-MM-DD, YYYY-MM-DDTHH:MM:SS, or YYYY-MM-DDTHH:MM:SS+HH:MM","in":"query","name":"end","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Number of results to return per page. Default 10. Range [1,1000]","in":"query","name":"limit","required":false,"schema":{"default":10,"format":"double","maximum":1000,"minimum":1,"type":"number"}},{"description":"Navigate and return the results to retrieve specific portions of information of the response","in":"query","name":"page","required":false,"schema":{"format":"double","type":"number"}},{"description":"Filter for requests where a specific accessor was used","in":"query","name":"accessor","required":false,"schema":{"type":"string"}},{"description":"Filter for a specific request id","in":"query","name":"request_id","required":false,"schema":{"type":"string"}},{"description":"Filter for requests where a specific deployment was used","in":"query","name":"deployment","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdRequestsGetParametersDeployment"}},{"description":"Filter for requests where a specific endpoint was used","in":"query","name":"endpoint","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdRequestsGetParametersEndpoint"}},{"description":"Filter for requests where a specific method was used","in":"query","name":"method","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdRequestsGetParametersMethod"}},{"description":"Filter for requests that succeeded (status code < 300) or failed (status code >=400)","in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdRequestsGetParametersStatus"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectRequestsV1Response"}}},"description":"A list of requests for a specific project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Project Requests","tags":["requests"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/requests?accessor=string&deployment=beta&end=2026-06-09T00%3A00%3A00Z&endpoint=agent&limit=10&method=async&page=0&request_id=string&start=2026-06-09T00%3A00%3A00Z&status=failed\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/requests?accessor=string&deployment=beta&end=2026-06-09T00%3A00%3A00Z&endpoint=agent&limit=10&method=async&page=0&request_id=string&start=2026-06-09T00%3A00%3A00Z&status=failed'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/requests?accessor=string&deployment=beta&end=2026-06-09T00%3A00%3A00Z&endpoint=agent&limit=10&method=async&page=0&request_id=string&start=2026-06-09T00%3A00%3A00Z&status=failed\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/requests?accessor=string&deployment=beta&end=2026-06-09T00%3A00%3A00Z&endpoint=agent&limit=10&method=async&page=0&request_id=string&start=2026-06-09T00%3A00%3A00Z&status=failed\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/requests?accessor=string&deployment=beta&end=2026-06-09T00%3A00%3A00Z&endpoint=agent&limit=10&method=async&page=0&request_id=string&start=2026-06-09T00%3A00%3A00Z&status=failed', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/requests?accessor=string&deployment=beta&end=2026-06-09T00%3A00%3A00Z&endpoint=agent&limit=10&method=async&page=0&request_id=string&start=2026-06-09T00%3A00%3A00Z&status=failed', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/requests?accessor=string&deployment=beta&end=2026-06-09T00%3A00%3A00Z&endpoint=agent&limit=10&method=async&page=0&request_id=string&start=2026-06-09T00%3A00%3A00Z&status=failed\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/requests?accessor=string&deployment=beta&end=2026-06-09T00%3A00%3A00Z&endpoint=agent&limit=10&method=async&page=0&request_id=string&start=2026-06-09T00%3A00%3A00Z&status=failed\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/requests?accessor=string&deployment=beta&end=2026-06-09T00%3A00%3A00Z&endpoint=agent&limit=10&method=async&page=0&request_id=string&start=2026-06-09T00%3A00%3A00Z&status=failed\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/requests/{request_id}":{"get":{"description":"Retrieves a specific request for a specific project","operationId":"requests_get","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The unique identifier of the request","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProjectRequestV1Response"}}},"description":"A specific request for a specific project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get a Project Request","tags":["requests"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/requests/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/requests/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/requests/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/requests/string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/requests/string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/requests/string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/requests/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/requests/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/requests/string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/self-hosted/distribution/credentials":{"get":{"description":"Lists sets of distribution credentials for the specified project","operationId":"distributionCredentials_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectDistributionCredentialsV1Response"}}},"description":"A list of distribution credentials for a specific project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Project Self-Hosted Distribution Credentials","tags":["distributionCredentials"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"post":{"description":"Creates a set of distribution credentials for the specified project","operationId":"distributionCredentials_create","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"List of permission scopes for the credentials","in":"query","name":"scopes","required":false,"schema":{"default":["self-hosted:products"],"items":{"$ref":"#/components/schemas/V1ProjectsProjectIdSelfHostedDistributionCredentialsPostParametersScopesSchemaItems"},"type":"array"}},{"description":"The provider of the distribution service","in":"query","name":"provider","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdSelfHostedDistributionCredentialsPostParametersProvider","default":"quay"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectDistributionCredentialsV1Request"}}},"description":"The set of distribution credentials to create"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectDistributionCredentialsV1Response"}}},"description":"Single distribution credential"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create a Project Self-Hosted Distribution Credential","tags":["distributionCredentials"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Post, \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials?provider=quay&scopes=%5B%22self-hosted%3Aproducts%22%5D\");\nrequest.Content = new StringContent(\"{\\\"comment\\\":\\\"string\\\"}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X POST 'https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials?provider=quay&scopes=%5B%22self-hosted%3Aproducts%22%5D' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"comment\":\"string\"}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"comment\":\"string\"}`)\n\treq, err := http.NewRequestWithContext(ctx, \"POST\", \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials?provider=quay&scopes=%5B%22self-hosted%3Aproducts%22%5D\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials?provider=quay&scopes=%5B%22self-hosted%3Aproducts%22%5D\"))\n    .method(\"POST\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"{\\\"comment\\\":\\\"string\\\"}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials?provider=quay&scopes=%5B%22self-hosted%3Aproducts%22%5D', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"comment\":\"string\"}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials?provider=quay&scopes=%5B%22self-hosted%3Aproducts%22%5D', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"comment\\\":\\\"string\\\"}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials?provider=quay&scopes=%5B%22self-hosted%3Aproducts%22%5D\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"comment\\\":\\\"string\\\"}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials?provider=quay&scopes=%5B%22self-hosted%3Aproducts%22%5D\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"comment\":\"string\"}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials?provider=quay&scopes=%5B%22self-hosted%3Aproducts%22%5D\")\nrequest = Net::HTTPGenericRequest.new(\"POST\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"comment\\\":\\\"string\\\"}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/self-hosted/distribution/credentials/{distribution_credentials_id}":{"delete":{"description":"Deletes a set of distribution credentials for the specified project","operationId":"distributionCredentials_delete","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The UUID of the distribution credentials","in":"path","name":"distribution_credentials_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProjectDistributionCredentialsV1Response"}}},"description":"Single distribution credential"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Delete a Project Self-Hosted Distribution Credential","tags":["distributionCredentials"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Delete, \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X DELETE 'https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"DELETE\", \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\"))\n    .method(\"DELETE\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string', { method: 'DELETE' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string', { method: 'DELETE' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"DELETE\", \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\")\nrequest = Net::HTTPGenericRequest.new(\"DELETE\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]},"get":{"description":"Returns a set of distribution credentials for the specified project","operationId":"distributionCredentials_get","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"The UUID of the distribution credentials","in":"path","name":"distribution_credentials_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProjectDistributionCredentialsV1Response"}}},"description":"Single distribution credential"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get a Project Self-Hosted Distribution Credential","tags":["distributionCredentials"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/self-hosted/distribution/credentials/string\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/usage":{"get":{"deprecated":true,"description":"Retrieves the usage for a specific project. Use Get Project Usage Breakdown for a more comprehensive usage summary.","operationId":"usage_get","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Start date of the requested date range. Format accepted is YYYY-MM-DD","in":"query","name":"start","required":false,"schema":{"format":"date","type":"string"}},{"description":"End date of the requested date range. Format accepted is YYYY-MM-DD","in":"query","name":"end","required":false,"schema":{"format":"date","type":"string"}},{"description":"Filter for requests where a specific accessor was used","in":"query","name":"accessor","required":false,"schema":{"type":"string"}},{"description":"Filter for requests where alternatives were used","in":"query","name":"alternatives","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where callback method was used","in":"query","name":"callback_method","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where callback was used","in":"query","name":"callback","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where channels were used","in":"query","name":"channels","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where custom intent mode was used","in":"query","name":"custom_intent_mode","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where custom intent was used","in":"query","name":"custom_intent","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where custom topic mode was used","in":"query","name":"custom_topic_mode","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where custom topic was used","in":"query","name":"custom_topic","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where a specific deployment was used","in":"query","name":"deployment","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdUsageGetParametersDeployment"}},{"description":"Filter for requests where detect entities was used","in":"query","name":"detect_entities","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where detect language was used","in":"query","name":"detect_language","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where diarize was used","in":"query","name":"diarize","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where dictation was used","in":"query","name":"dictation","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where encoding was used","in":"query","name":"encoding","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where a specific endpoint was used","in":"query","name":"endpoint","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdUsageGetParametersEndpoint"}},{"description":"Filter for requests where extra was used","in":"query","name":"extra","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where filler words was used","in":"query","name":"filler_words","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where intents was used","in":"query","name":"intents","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where keyterm was used","in":"query","name":"keyterm","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where keywords was used","in":"query","name":"keywords","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where language was used","in":"query","name":"language","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where measurements were used","in":"query","name":"measurements","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where a specific method was used","in":"query","name":"method","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdUsageGetParametersMethod"}},{"description":"Filter for requests where a specific model uuid was used","in":"query","name":"model","required":false,"schema":{"type":"string"}},{"description":"Filter for requests where multichannel was used","in":"query","name":"multichannel","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where numerals were used","in":"query","name":"numerals","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where paragraphs were used","in":"query","name":"paragraphs","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where profanity filter was used","in":"query","name":"profanity_filter","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where punctuate was used","in":"query","name":"punctuate","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where redact was used","in":"query","name":"redact","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where replace was used","in":"query","name":"replace","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where sample rate was used","in":"query","name":"sample_rate","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where search was used","in":"query","name":"search","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where sentiment was used","in":"query","name":"sentiment","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where smart format was used","in":"query","name":"smart_format","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where summarize was used","in":"query","name":"summarize","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where a specific tag was used","in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"description":"Filter for requests where topics was used","in":"query","name":"topics","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where utt split was used","in":"query","name":"utt_split","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where utterances was used","in":"query","name":"utterances","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where version was used","in":"query","name":"version","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageV1Response"}}},"description":"A specific request for a specific project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get Project Usage","tags":["usage"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/usage?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/usage?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/usage?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/usage?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/usage?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/usage?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/usage?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/usage?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/usage?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/usage/breakdown":{"get":{"description":"Retrieves the usage breakdown for a specific project, with various filter options by API feature or by groupings. Setting a feature (e.g. diarize) to true includes requests that used that feature, while false excludes requests that used it. Multiple true filters are combined with OR logic, while false filters use AND logic.","operationId":"breakdown_get","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Start date of the requested date range. Format accepted is YYYY-MM-DD","in":"query","name":"start","required":false,"schema":{"format":"date","type":"string"}},{"description":"End date of the requested date range. Format accepted is YYYY-MM-DD","in":"query","name":"end","required":false,"schema":{"format":"date","type":"string"}},{"description":"Common usage grouping parameters","in":"query","name":"grouping","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdUsageBreakdownGetParametersGrouping"}},{"description":"Filter for requests where a specific accessor was used","in":"query","name":"accessor","required":false,"schema":{"type":"string"}},{"description":"Filter for requests where alternatives were used","in":"query","name":"alternatives","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where callback method was used","in":"query","name":"callback_method","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where callback was used","in":"query","name":"callback","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where channels were used","in":"query","name":"channels","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where custom intent mode was used","in":"query","name":"custom_intent_mode","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where custom intent was used","in":"query","name":"custom_intent","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where custom topic mode was used","in":"query","name":"custom_topic_mode","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where custom topic was used","in":"query","name":"custom_topic","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where a specific deployment was used","in":"query","name":"deployment","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdUsageBreakdownGetParametersDeployment"}},{"description":"Filter for requests where detect entities was used","in":"query","name":"detect_entities","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where detect language was used","in":"query","name":"detect_language","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where diarize was used","in":"query","name":"diarize","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where dictation was used","in":"query","name":"dictation","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where encoding was used","in":"query","name":"encoding","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where a specific endpoint was used","in":"query","name":"endpoint","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdUsageBreakdownGetParametersEndpoint"}},{"description":"Filter for requests where extra was used","in":"query","name":"extra","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where filler words was used","in":"query","name":"filler_words","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where intents was used","in":"query","name":"intents","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where keyterm was used","in":"query","name":"keyterm","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where keywords was used","in":"query","name":"keywords","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where language was used","in":"query","name":"language","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where measurements were used","in":"query","name":"measurements","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where a specific method was used","in":"query","name":"method","required":false,"schema":{"$ref":"#/components/schemas/V1ProjectsProjectIdUsageBreakdownGetParametersMethod"}},{"description":"Filter for requests where a specific model uuid was used","in":"query","name":"model","required":false,"schema":{"type":"string"}},{"description":"Filter for requests where multichannel was used","in":"query","name":"multichannel","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where numerals were used","in":"query","name":"numerals","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where paragraphs were used","in":"query","name":"paragraphs","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where profanity filter was used","in":"query","name":"profanity_filter","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where punctuate was used","in":"query","name":"punctuate","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where redact was used","in":"query","name":"redact","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where replace was used","in":"query","name":"replace","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where sample rate was used","in":"query","name":"sample_rate","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where search was used","in":"query","name":"search","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where sentiment was used","in":"query","name":"sentiment","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where smart format was used","in":"query","name":"smart_format","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where summarize was used","in":"query","name":"summarize","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where a specific tag was used","in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"description":"Filter for requests where topics was used","in":"query","name":"topics","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where utt split was used","in":"query","name":"utt_split","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where utterances was used","in":"query","name":"utterances","required":false,"schema":{"type":"boolean"}},{"description":"Filter for requests where version was used","in":"query","name":"version","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageBreakdownV1Response"}}},"description":"Usage breakdown response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get Project Usage Breakdown","tags":["breakdown"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/usage/breakdown?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&grouping=accessor&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/usage/breakdown?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&grouping=accessor&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/usage/breakdown?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&grouping=accessor&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/usage/breakdown?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&grouping=accessor&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/usage/breakdown?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&grouping=accessor&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/usage/breakdown?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&grouping=accessor&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/usage/breakdown?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&grouping=accessor&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/usage/breakdown?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&grouping=accessor&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/usage/breakdown?accessor=string&alternatives=true&callback=true&callback_method=true&channels=true&custom_intent=true&custom_intent_mode=true&custom_topic=true&custom_topic_mode=true&deployment=beta&detect_entities=true&detect_language=true&diarize=true&dictation=true&encoding=true&end=2026-06-09&endpoint=agent&extra=true&filler_words=true&grouping=accessor&intents=true&keyterm=true&keywords=true&language=true&measurements=true&method=async&model=string&multichannel=true&numerals=true&paragraphs=true&profanity_filter=true&punctuate=true&redact=true&replace=true&sample_rate=true&search=true&sentiment=true&smart_format=true&start=2026-06-09&summarize=true&tag=string&topics=true&utt_split=true&utterances=true&version=true\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/projects/{project_id}/usage/fields":{"get":{"description":"Lists the features, models, tags, languages, and processing method used for requests in the specified project","operationId":"fields_list","parameters":[{"description":"The unique identifier of the project","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Start date of the requested date range. Format accepted is YYYY-MM-DD","in":"query","name":"start","required":false,"schema":{"format":"date","type":"string"}},{"description":"End date of the requested date range. Format accepted is YYYY-MM-DD","in":"query","name":"end","required":false,"schema":{"format":"date","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageFieldsV1Response"}}},"description":"A list of fields for a specific project"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"List Project Usage Fields","tags":["fields"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, \"https://agent.deepgram.com/v1/projects/string/usage/fields?end=2026-06-09&start=2026-06-09\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X GET 'https://agent.deepgram.com/v1/projects/string/usage/fields?end=2026-06-09&start=2026-06-09'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\treq, err := http.NewRequestWithContext(ctx, \"GET\", \"https://agent.deepgram.com/v1/projects/string/usage/fields?end=2026-06-09&start=2026-06-09\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/projects/string/usage/fields?end=2026-06-09&start=2026-06-09\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/usage/fields?end=2026-06-09&start=2026-06-09', { method: 'GET' });\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/projects/string/usage/fields?end=2026-06-09&start=2026-06-09', { method: 'GET' });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/projects/string/usage/fields?end=2026-06-09&start=2026-06-09\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"GET\");\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\"GET\", \"https://agent.deepgram.com/v1/projects/string/usage/fields?end=2026-06-09&start=2026-06-09\")\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/projects/string/usage/fields?end=2026-06-09&start=2026-06-09\")\nrequest = Net::HTTPGenericRequest.new(\"GET\", false, true, uri)\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/read":{"post":{"description":"Analyze text content using Deepgrams text analysis API","operationId":"text_analyze","parameters":[{"description":"URL to which we'll make the callback request","in":"query","name":"callback","required":false,"schema":{"type":"string"}},{"description":"HTTP method by which the callback request will be made","in":"query","name":"callback_method","required":false,"schema":{"$ref":"#/components/schemas/V1ReadPostParametersCallbackMethod","default":"POST"}},{"description":"Recognizes the sentiment throughout a transcript or text","in":"query","name":"sentiment","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Summarize content. For Listen API, supports string version option. For Read API, accepts boolean only.","in":"query","name":"summarize","required":false,"schema":{"$ref":"#/components/schemas/V1ReadPostParametersSummarize"}},{"description":"Label your requests for the purpose of identification during usage reporting","in":"query","name":"tag","required":false,"schema":{"$ref":"#/components/schemas/V1ReadPostParametersTag"}},{"description":"Detect topics throughout a transcript or text","in":"query","name":"topics","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Custom topics you want the model to detect within your input audio or text if present Submit up to `100`.","in":"query","name":"custom_topic","required":false,"schema":{"$ref":"#/components/schemas/V1ReadPostParametersCustomTopic"}},{"description":"Sets how the model will interpret strings submitted to the `custom_topic` param. When `strict`, the model will only return topics submitted using the `custom_topic` param. When `extended`, the model will return its own detected topics in addition to those submitted using the `custom_topic` param","in":"query","name":"custom_topic_mode","required":false,"schema":{"$ref":"#/components/schemas/V1ReadPostParametersCustomTopicMode","default":"extended"}},{"description":"Recognizes speaker intent throughout a transcript or text","in":"query","name":"intents","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Custom intents you want the model to detect within your input audio if present","in":"query","name":"custom_intent","required":false,"schema":{"$ref":"#/components/schemas/V1ReadPostParametersCustomIntent"}},{"description":"Sets how the model will interpret intents submitted to the `custom_intent` param. When `strict`, the model will only return intents submitted using the `custom_intent` param. When `extended`, the model will return its own detected intents in the `custom_intent` param.","in":"query","name":"custom_intent_mode","required":false,"schema":{"$ref":"#/components/schemas/V1ReadPostParametersCustomIntentMode","default":"extended"}},{"description":"The [BCP-47 language tag](https://tools.ietf.org/html/bcp47) that hints at the primary spoken language. Depending on the Model and API endpoint you choose only certain languages are available","in":"query","name":"language","required":false,"schema":{"default":"en","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadV1Request"}}},"description":"Analyze a text file"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadV1Response"}}},"description":"Successful text analysis"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Analyze text content","tags":["text"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Post, \"https://agent.deepgram.com/v1/read?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&intents=false&language=en&sentiment=false&summarize=v2&tag=string&topics=false\");\nrequest.Content = new StringContent(\"{\\\"url\\\":\\\"https://example.com\\\"}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X POST 'https://agent.deepgram.com/v1/read?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&intents=false&language=en&sentiment=false&summarize=v2&tag=string&topics=false' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"url\":\"https://example.com\"}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"url\":\"https://example.com\"}`)\n\treq, err := http.NewRequestWithContext(ctx, \"POST\", \"https://agent.deepgram.com/v1/read?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&intents=false&language=en&sentiment=false&summarize=v2&tag=string&topics=false\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/read?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&intents=false&language=en&sentiment=false&summarize=v2&tag=string&topics=false\"))\n    .method(\"POST\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"{\\\"url\\\":\\\"https://example.com\\\"}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/read?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&intents=false&language=en&sentiment=false&summarize=v2&tag=string&topics=false', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"url\":\"https://example.com\"}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/read?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&intents=false&language=en&sentiment=false&summarize=v2&tag=string&topics=false', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"url\\\":\\\"https://example.com\\\"}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/read?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&intents=false&language=en&sentiment=false&summarize=v2&tag=string&topics=false\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"url\\\":\\\"https://example.com\\\"}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://agent.deepgram.com/v1/read?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&intents=false&language=en&sentiment=false&summarize=v2&tag=string&topics=false\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"url\":\"https://example.com\"}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/read?callback=string&callback_method=POST&custom_intent=string&custom_intent_mode=extended&custom_topic=string&custom_topic_mode=extended&intents=false&language=en&sentiment=false&summarize=v2&tag=string&topics=false\")\nrequest = Net::HTTPGenericRequest.new(\"POST\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"url\\\":\\\"https://example.com\\\"}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v1/speak":{"post":{"description":"Convert text into natural-sounding speech using Deepgram's TTS REST API","operationId":"audio_generate","parameters":[{"description":"URL to which we'll make the callback request","in":"query","name":"callback","required":false,"schema":{"type":"string"}},{"description":"HTTP method by which the callback request will be made","in":"query","name":"callback_method","required":false,"schema":{"$ref":"#/components/schemas/V1SpeakPostParametersCallbackMethod","default":"POST"}},{"description":"Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip","in":"query","name":"mip_opt_out","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Label your requests for the purpose of identification during usage reporting","in":"query","name":"tag","required":false,"schema":{"$ref":"#/components/schemas/V1SpeakPostParametersTag"}},{"description":"The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.","in":"query","name":"bit_rate","required":false,"schema":{"$ref":"#/components/schemas/V1SpeakPostParametersBitRate","default":48000}},{"description":"Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.","in":"query","name":"container","required":false,"schema":{"$ref":"#/components/schemas/V1SpeakPostParametersContainer","default":"wav"}},{"description":"Encoding allows you to specify the expected encoding of your audio output","in":"query","name":"encoding","required":false,"schema":{"$ref":"#/components/schemas/V1SpeakPostParametersEncoding","default":"mp3"}},{"description":"AI model used to process submitted text","in":"query","name":"model","required":false,"schema":{"$ref":"#/components/schemas/V1SpeakPostParametersModel","default":"aura-asteria-en"}},{"description":"Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable","in":"query","name":"sample_rate","required":false,"schema":{"$ref":"#/components/schemas/V1SpeakPostParametersSampleRate","default":24000}},{"description":"Speaking rate multiplier that adjusts the pace of generated speech while preserving natural prosody and voice quality. Not yet supported in all languages.","in":"query","name":"speed","required":false,"schema":{"default":1,"format":"double","maximum":1.5,"minimum":0.7,"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakV1Request"}}},"description":"Transform text to speech"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/speak_v1_audio_generate_Response_200"}}},"description":"Successful text-to-speech transformation"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request"}},"security":[{"ApiKeyAuth":[]}],"summary":"Text to Speech transformation","tags":["audio"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Post, \"https://agent.deepgram.com/v1/speak?bit_rate=32000&callback=string&callback_method=POST&container=none&encoding=linear16&mip_opt_out=false&model=aura-asteria-en&sample_rate=16000&speed=1&tag=string\");\nrequest.Content = new StringContent(\"{\\\"text\\\":\\\"string\\\"}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X POST 'https://agent.deepgram.com/v1/speak?bit_rate=32000&callback=string&callback_method=POST&container=none&encoding=linear16&mip_opt_out=false&model=aura-asteria-en&sample_rate=16000&speed=1&tag=string' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"text\":\"string\"}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"text\":\"string\"}`)\n\treq, err := http.NewRequestWithContext(ctx, \"POST\", \"https://agent.deepgram.com/v1/speak?bit_rate=32000&callback=string&callback_method=POST&container=none&encoding=linear16&mip_opt_out=false&model=aura-asteria-en&sample_rate=16000&speed=1&tag=string\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v1/speak?bit_rate=32000&callback=string&callback_method=POST&container=none&encoding=linear16&mip_opt_out=false&model=aura-asteria-en&sample_rate=16000&speed=1&tag=string\"))\n    .method(\"POST\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"{\\\"text\\\":\\\"string\\\"}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v1/speak?bit_rate=32000&callback=string&callback_method=POST&container=none&encoding=linear16&mip_opt_out=false&model=aura-asteria-en&sample_rate=16000&speed=1&tag=string', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"text\":\"string\"}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v1/speak?bit_rate=32000&callback=string&callback_method=POST&container=none&encoding=linear16&mip_opt_out=false&model=aura-asteria-en&sample_rate=16000&speed=1&tag=string', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"text\\\":\\\"string\\\"}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v1/speak?bit_rate=32000&callback=string&callback_method=POST&container=none&encoding=linear16&mip_opt_out=false&model=aura-asteria-en&sample_rate=16000&speed=1&tag=string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"text\\\":\\\"string\\\"}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://agent.deepgram.com/v1/speak?bit_rate=32000&callback=string&callback_method=POST&container=none&encoding=linear16&mip_opt_out=false&model=aura-asteria-en&sample_rate=16000&speed=1&tag=string\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"text\":\"string\"}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v1/speak?bit_rate=32000&callback=string&callback_method=POST&container=none&encoding=linear16&mip_opt_out=false&model=aura-asteria-en&sample_rate=16000&speed=1&tag=string\")\nrequest = Net::HTTPGenericRequest.new(\"POST\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"text\\\":\\\"string\\\"}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}},"/v2/speak":{"post":{"description":"Synthesize a complete block of text into a single audio response using Deepgram's Flux TTS batch (REST) API. Use this for pre-rendering fixed audio (IVR prompts, notifications, narration) where the whole text is known up front and you don't need incremental playback or interruption.","operationId":"audio_generate_2","parameters":[{"description":"URL to which we'll make the callback request","in":"query","name":"callback","required":false,"schema":{"type":"string"}},{"description":"HTTP method by which the callback request will be made","in":"query","name":"callback_method","required":false,"schema":{"$ref":"#/components/schemas/V2SpeakPostParametersCallbackMethod","default":"POST"}},{"description":"Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip","in":"query","name":"mip_opt_out","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Label your requests for the purpose of identification during usage reporting","in":"query","name":"tag","required":false,"schema":{"$ref":"#/components/schemas/V2SpeakPostParametersTag"}},{"description":"The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.","in":"query","name":"bit_rate","required":false,"schema":{"$ref":"#/components/schemas/V2SpeakPostParametersBitRate","default":48000}},{"description":"Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.","in":"query","name":"container","required":false,"schema":{"$ref":"#/components/schemas/V2SpeakPostParametersContainer","default":"wav"}},{"description":"Encoding allows you to specify the expected encoding of your audio output","in":"query","name":"encoding","required":false,"schema":{"$ref":"#/components/schemas/V2SpeakPostParametersEncoding","default":"mp3"}},{"description":"Expressive range of the generated speech, on a calm-to-animated axis. Accepted values: `-2`, `-1`, `0`, `1`, `2`. `0` (the default) is the voice's tuned delivery and the production-validated setting, with `-2` the calm end of the range and `2` the animated end. Supported on all Flux voices; applies to the whole request. Beta: behavior may change in future model versions, and non-default values increase the risk of hallucinations and pronunciation errors; audition before shipping. An invalid value is rejected with a `400` — `EXPRESSIVITY_OUT_OF_RANGE` for a value outside the range, `EXPRESSIVITY_INCREMENT_INVALID` for a fractional value. See [Expressivity](/docs/tts-expressivity).","in":"query","name":"expressivity","required":false,"schema":{"$ref":"#/components/schemas/V2SpeakPostParametersExpressivity","default":0}},{"description":"Flux TTS model used to synthesize the submitted text, in the form `flux-{voice}-{language}` (for example, `flux-alexis-en`). Required; unlike the v1 (Aura) endpoint there is no default and only flux models are accepted. English-only at launch.","in":"query","name":"model","required":true,"schema":{"type":"string"}},{"description":"Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable","in":"query","name":"sample_rate","required":false,"schema":{"$ref":"#/components/schemas/V2SpeakPostParametersSampleRate","default":24000}},{"description":"Speaking rate multiplier that adjusts the pace of generated speech while preserving natural prosody and voice quality. Accepted values run `0.5` to `1.5` in `0.05` increments. Not yet supported in all languages.","in":"query","name":"speed","required":false,"schema":{"default":1,"format":"double","maximum":1.5,"minimum":0.5,"multipleOf":0.05,"type":"number"}},{"description":"Processing priority for asynchronous (callback) requests. The only supported value is low.","in":"query","name":"priority","required":false,"schema":{"$ref":"#/components/schemas/V2SpeakPostParametersPriority"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakV2Request"}}},"description":"Transform text to speech"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakV2AcceptedResponse"}}},"description":"Returns the synthesized audio in the requested encoding as a binary stream. When a `callback` URL is supplied, the request is processed asynchronously and the response body is instead a JSON acknowledgement (Content-Type `application/json`) of the form {\"request_id\": \"...\"}, with the audio delivered to the callback URL. Because this endpoint is typed as a binary audio stream, SDK callers that set `callback` receive this JSON acknowledgement through the audio byte iterator as raw bytes and must join the chunks and parse `request_id` themselves."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid Request. Inline pause and pronunciation controls are not applied and are stripped rather than rejected."}},"security":[{"ApiKeyAuth":[]}],"summary":"Flux Text to Speech (batch)","tags":["audio"],"x-codeSamples":[{"lang":"csharp","source":"using var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Post, \"https://agent.deepgram.com/v2/speak?bit_rate=16000&callback=string&callback_method=POST&container=none&encoding=linear16&expressivity=-1&mip_opt_out=false&model=string&priority=low&sample_rate=16000&speed=1&tag=string\");\nrequest.Content = new StringContent(\"{\\\"text\\\":\\\"string\\\"}\", Encoding.UTF8, \"application/json\");\nusing var response = await client.SendAsync(request);"},{"lang":"curl","source":"curl -X POST 'https://agent.deepgram.com/v2/speak?bit_rate=16000&callback=string&callback_method=POST&container=none&encoding=linear16&expressivity=-1&mip_opt_out=false&model=string&priority=low&sample_rate=16000&speed=1&tag=string' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"text\":\"string\"}'"},{"lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tbody := strings.NewReader(`{\"text\":\"string\"}`)\n\treq, err := http.NewRequestWithContext(ctx, \"POST\", \"https://agent.deepgram.com/v2/speak?bit_rate=16000&callback=string&callback_method=POST&container=none&encoding=linear16&expressivity=-1&mip_opt_out=false&model=string&priority=low&sample_rate=16000&speed=1&tag=string\", body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n}"},{"lang":"java","source":"var request = HttpRequest.newBuilder(URI.create(\"https://agent.deepgram.com/v2/speak?bit_rate=16000&callback=string&callback_method=POST&container=none&encoding=linear16&expressivity=-1&mip_opt_out=false&model=string&priority=low&sample_rate=16000&speed=1&tag=string\"))\n    .method(\"POST\", HttpRequest.BodyPublishers.noBody())\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"{\\\"text\\\":\\\"string\\\"}\"))\n    .build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"},{"lang":"javascript-fetch","source":"const response = await fetch('https://agent.deepgram.com/v2/speak?bit_rate=16000&callback=string&callback_method=POST&container=none&encoding=linear16&expressivity=-1&mip_opt_out=false&model=string&priority=low&sample_rate=16000&speed=1&tag=string', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\"text\":\"string\"}),\n});\nconst data = await response.json();"},{"lang":"node","source":"const response = await fetch('https://agent.deepgram.com/v2/speak?bit_rate=16000&callback=string&callback_method=POST&container=none&encoding=linear16&expressivity=-1&mip_opt_out=false&model=string&priority=low&sample_rate=16000&speed=1&tag=string', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: \"{\\\"text\\\":\\\"string\\\"}\" });\nconsole.log(await response.json());"},{"lang":"php","source":"<?php\n$request = curl_init(\"https://agent.deepgram.com/v2/speak?bit_rate=16000&callback=string&callback_method=POST&container=none&encoding=linear16&expressivity=-1&mip_opt_out=false&model=string&priority=low&sample_rate=16000&speed=1&tag=string\");\ncurl_setopt($request, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($request, CURLOPT_POSTFIELDS, \"{\\\"text\\\":\\\"string\\\"}\");\ncurl_setopt($request, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n$response = curl_exec($request);\ncurl_close($request);"},{"lang":"python","source":"import requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://agent.deepgram.com/v2/speak?bit_rate=16000&callback=string&callback_method=POST&container=none&encoding=linear16&expressivity=-1&mip_opt_out=false&model=string&priority=low&sample_rate=16000&speed=1&tag=string\",\n    headers={\"Content-Type\": \"application/json\"},\n    data='{\"text\":\"string\"}',\n)\nprint(response.json())"},{"lang":"ruby","source":"require 'net/http'\n\nuri = URI(\"https://agent.deepgram.com/v2/speak?bit_rate=16000&callback=string&callback_method=POST&container=none&encoding=linear16&expressivity=-1&mip_opt_out=false&model=string&priority=low&sample_rate=16000&speed=1&tag=string\")\nrequest = Net::HTTPGenericRequest.new(\"POST\", true, true, uri)\nrequest['Content-Type'] = 'application/json'\nrequest.body = \"{\\\"text\\\":\\\"string\\\"}\"\nresponse = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }"}]}}},"servers":[{"description":"Production","url":"https://agent.deepgram.com"},{"description":"Base","url":"https://api.deepgram.com"}],"tags":[{"name":"models"},{"name":"configurations"},{"name":"variables"},{"name":"media"},{"name":"audio"},{"name":"text"},{"name":"projects"},{"name":"keys"},{"name":"members"},{"name":"scopes"},{"name":"invites"},{"name":"requests"},{"name":"usage"},{"name":"fields"},{"name":"breakdown"},{"name":"balances"},{"name":"purchases"},{"name":"distributionCredentials"},{"name":"tokens"}]}