---
title: prefactor_http
editUrl: true
head: []
template: doc
sidebar:
  hidden: false
  attrs: {}
pagefind: true
draft: false
---

# prefactor_http

* [prefactor_http package](prefactor_http.md)
  * [`AgentInstance`](prefactor_http.md#prefactor_http.AgentInstance)
    * [`AgentInstance.type`](prefactor_http.md#prefactor_http.AgentInstance.type)
    * [`AgentInstance.id`](prefactor_http.md#prefactor_http.AgentInstance.id)
    * [`AgentInstance.account_id`](prefactor_http.md#prefactor_http.AgentInstance.account_id)
    * [`AgentInstance.agent_id`](prefactor_http.md#prefactor_http.AgentInstance.agent_id)
    * [`AgentInstance.agent_version_id`](prefactor_http.md#prefactor_http.AgentInstance.agent_version_id)
    * [`AgentInstance.environment_id`](prefactor_http.md#prefactor_http.AgentInstance.environment_id)
    * [`AgentInstance.status`](prefactor_http.md#prefactor_http.AgentInstance.status)
    * [`AgentInstance.inserted_at`](prefactor_http.md#prefactor_http.AgentInstance.inserted_at)
    * [`AgentInstance.updated_at`](prefactor_http.md#prefactor_http.AgentInstance.updated_at)
    * [`AgentInstance.started_at`](prefactor_http.md#prefactor_http.AgentInstance.started_at)
    * [`AgentInstance.finished_at`](prefactor_http.md#prefactor_http.AgentInstance.finished_at)
    * [`AgentInstance.span_counts`](prefactor_http.md#prefactor_http.AgentInstance.span_counts)
    * [`AgentInstance.account_id`](prefactor_http.md#id0)
    * [`AgentInstance.agent_id`](prefactor_http.md#id1)
    * [`AgentInstance.agent_version_id`](prefactor_http.md#id2)
    * [`AgentInstance.environment_id`](prefactor_http.md#id3)
    * [`AgentInstance.finished_at`](prefactor_http.md#id4)
    * [`AgentInstance.id`](prefactor_http.md#id5)
    * [`AgentInstance.inserted_at`](prefactor_http.md#id6)
    * [`AgentInstance.model_config`](prefactor_http.md#prefactor_http.AgentInstance.model_config)
    * [`AgentInstance.span_counts`](prefactor_http.md#id7)
    * [`AgentInstance.started_at`](prefactor_http.md#id8)
    * [`AgentInstance.status`](prefactor_http.md#id9)
    * [`AgentInstance.type`](prefactor_http.md#id10)
    * [`AgentInstance.updated_at`](prefactor_http.md#id11)
  * [`AgentInstanceSpanCounts`](prefactor_http.md#prefactor_http.AgentInstanceSpanCounts)
    * [`AgentInstanceSpanCounts.total`](prefactor_http.md#prefactor_http.AgentInstanceSpanCounts.total)
    * [`AgentInstanceSpanCounts.pending`](prefactor_http.md#prefactor_http.AgentInstanceSpanCounts.pending)
    * [`AgentInstanceSpanCounts.active`](prefactor_http.md#prefactor_http.AgentInstanceSpanCounts.active)
    * [`AgentInstanceSpanCounts.complete`](prefactor_http.md#prefactor_http.AgentInstanceSpanCounts.complete)
    * [`AgentInstanceSpanCounts.failed`](prefactor_http.md#prefactor_http.AgentInstanceSpanCounts.failed)
    * [`AgentInstanceSpanCounts.cancelled`](prefactor_http.md#prefactor_http.AgentInstanceSpanCounts.cancelled)
    * [`AgentInstanceSpanCounts.finished`](prefactor_http.md#prefactor_http.AgentInstanceSpanCounts.finished)
    * [`AgentInstanceSpanCounts.active`](prefactor_http.md#id12)
    * [`AgentInstanceSpanCounts.cancelled`](prefactor_http.md#id13)
    * [`AgentInstanceSpanCounts.complete`](prefactor_http.md#id14)
    * [`AgentInstanceSpanCounts.failed`](prefactor_http.md#id15)
    * [`AgentInstanceSpanCounts.finished`](prefactor_http.md#id16)
    * [`AgentInstanceSpanCounts.model_config`](prefactor_http.md#prefactor_http.AgentInstanceSpanCounts.model_config)
    * [`AgentInstanceSpanCounts.pending`](prefactor_http.md#id17)
    * [`AgentInstanceSpanCounts.total`](prefactor_http.md#id18)
  * [`AgentSchemaVersionForRegister`](prefactor_http.md#prefactor_http.AgentSchemaVersionForRegister)
    * [`AgentSchemaVersionForRegister.external_identifier`](prefactor_http.md#prefactor_http.AgentSchemaVersionForRegister.external_identifier)
    * [`AgentSchemaVersionForRegister.span_schemas`](prefactor_http.md#prefactor_http.AgentSchemaVersionForRegister.span_schemas)
    * [`AgentSchemaVersionForRegister.span_result_schemas`](prefactor_http.md#prefactor_http.AgentSchemaVersionForRegister.span_result_schemas)
    * [`AgentSchemaVersionForRegister.span_type_schemas`](prefactor_http.md#prefactor_http.AgentSchemaVersionForRegister.span_type_schemas)
    * [`AgentSchemaVersionForRegister.external_identifier`](prefactor_http.md#id19)
    * [`AgentSchemaVersionForRegister.model_config`](prefactor_http.md#prefactor_http.AgentSchemaVersionForRegister.model_config)
    * [`AgentSchemaVersionForRegister.span_result_schemas`](prefactor_http.md#id20)
    * [`AgentSchemaVersionForRegister.span_schemas`](prefactor_http.md#id21)
    * [`AgentSchemaVersionForRegister.span_type_schemas`](prefactor_http.md#id22)
  * [`AgentSpan`](prefactor_http.md#prefactor_http.AgentSpan)
    * [`AgentSpan.type`](prefactor_http.md#prefactor_http.AgentSpan.type)
    * [`AgentSpan.id`](prefactor_http.md#prefactor_http.AgentSpan.id)
    * [`AgentSpan.account_id`](prefactor_http.md#prefactor_http.AgentSpan.account_id)
    * [`AgentSpan.agent_id`](prefactor_http.md#prefactor_http.AgentSpan.agent_id)
    * [`AgentSpan.agent_instance_id`](prefactor_http.md#prefactor_http.AgentSpan.agent_instance_id)
    * [`AgentSpan.parent_span_id`](prefactor_http.md#prefactor_http.AgentSpan.parent_span_id)
    * [`AgentSpan.schema_name`](prefactor_http.md#prefactor_http.AgentSpan.schema_name)
    * [`AgentSpan.schema_title`](prefactor_http.md#prefactor_http.AgentSpan.schema_title)
    * [`AgentSpan.status`](prefactor_http.md#prefactor_http.AgentSpan.status)
    * [`AgentSpan.payload`](prefactor_http.md#prefactor_http.AgentSpan.payload)
    * [`AgentSpan.result_payload`](prefactor_http.md#prefactor_http.AgentSpan.result_payload)
    * [`AgentSpan.summary`](prefactor_http.md#prefactor_http.AgentSpan.summary)
    * [`AgentSpan.started_at`](prefactor_http.md#prefactor_http.AgentSpan.started_at)
    * [`AgentSpan.inserted_at`](prefactor_http.md#prefactor_http.AgentSpan.inserted_at)
    * [`AgentSpan.updated_at`](prefactor_http.md#prefactor_http.AgentSpan.updated_at)
    * [`AgentSpan.finished_at`](prefactor_http.md#prefactor_http.AgentSpan.finished_at)
    * [`AgentSpan.account_id`](prefactor_http.md#id23)
    * [`AgentSpan.agent_id`](prefactor_http.md#id24)
    * [`AgentSpan.agent_instance_id`](prefactor_http.md#id25)
    * [`AgentSpan.finished_at`](prefactor_http.md#id26)
    * [`AgentSpan.id`](prefactor_http.md#id27)
    * [`AgentSpan.inserted_at`](prefactor_http.md#id28)
    * [`AgentSpan.model_config`](prefactor_http.md#prefactor_http.AgentSpan.model_config)
    * [`AgentSpan.parent_span_id`](prefactor_http.md#id29)
    * [`AgentSpan.payload`](prefactor_http.md#id30)
    * [`AgentSpan.result_payload`](prefactor_http.md#id31)
    * [`AgentSpan.schema_name`](prefactor_http.md#id32)
    * [`AgentSpan.schema_title`](prefactor_http.md#id33)
    * [`AgentSpan.started_at`](prefactor_http.md#id34)
    * [`AgentSpan.status`](prefactor_http.md#id35)
    * [`AgentSpan.summary`](prefactor_http.md#id36)
    * [`AgentSpan.type`](prefactor_http.md#id37)
    * [`AgentSpan.updated_at`](prefactor_http.md#id38)
  * [`AgentVersionForRegister`](prefactor_http.md#prefactor_http.AgentVersionForRegister)
    * [`AgentVersionForRegister.name`](prefactor_http.md#prefactor_http.AgentVersionForRegister.name)
    * [`AgentVersionForRegister.external_identifier`](prefactor_http.md#prefactor_http.AgentVersionForRegister.external_identifier)
    * [`AgentVersionForRegister.description`](prefactor_http.md#prefactor_http.AgentVersionForRegister.description)
    * [`AgentVersionForRegister.description`](prefactor_http.md#id39)
    * [`AgentVersionForRegister.external_identifier`](prefactor_http.md#id40)
    * [`AgentVersionForRegister.model_config`](prefactor_http.md#prefactor_http.AgentVersionForRegister.model_config)
    * [`AgentVersionForRegister.name`](prefactor_http.md#id41)
  * [`ApiResponse`](prefactor_http.md#prefactor_http.ApiResponse)
    * [`ApiResponse.status`](prefactor_http.md#prefactor_http.ApiResponse.status)
    * [`ApiResponse.details`](prefactor_http.md#prefactor_http.ApiResponse.details)
    * [`ApiResponse.details`](prefactor_http.md#id42)
    * [`ApiResponse.model_config`](prefactor_http.md#prefactor_http.ApiResponse.model_config)
    * [`ApiResponse.status`](prefactor_http.md#id43)
  * [`BulkItem`](prefactor_http.md#prefactor_http.BulkItem)
    * [`BulkItem.idempotency_key`](prefactor_http.md#prefactor_http.BulkItem.idempotency_key)
    * [`BulkItem.model_config`](prefactor_http.md#prefactor_http.BulkItem.model_config)
    * [`BulkItem.type`](prefactor_http.md#prefactor_http.BulkItem.type)
  * [`BulkOutput`](prefactor_http.md#prefactor_http.BulkOutput)
    * [`BulkOutput.model_config`](prefactor_http.md#prefactor_http.BulkOutput.model_config)
    * [`BulkOutput.status`](prefactor_http.md#prefactor_http.BulkOutput.status)
    * [`BulkOutput.validate_status()`](prefactor_http.md#prefactor_http.BulkOutput.validate_status)
  * [`BulkRequest`](prefactor_http.md#prefactor_http.BulkRequest)
    * [`BulkRequest.items`](prefactor_http.md#prefactor_http.BulkRequest.items)
    * [`BulkRequest.model_config`](prefactor_http.md#prefactor_http.BulkRequest.model_config)
    * [`BulkRequest.validate_unique_idempotency_keys()`](prefactor_http.md#prefactor_http.BulkRequest.validate_unique_idempotency_keys)
  * [`BulkResponse`](prefactor_http.md#prefactor_http.BulkResponse)
    * [`BulkResponse.model_config`](prefactor_http.md#prefactor_http.BulkResponse.model_config)
    * [`BulkResponse.outputs`](prefactor_http.md#prefactor_http.BulkResponse.outputs)
    * [`BulkResponse.status`](prefactor_http.md#prefactor_http.BulkResponse.status)
  * [`FinishInstanceRequest`](prefactor_http.md#prefactor_http.FinishInstanceRequest)
    * [`FinishInstanceRequest.status`](prefactor_http.md#prefactor_http.FinishInstanceRequest.status)
    * [`FinishInstanceRequest.timestamp`](prefactor_http.md#prefactor_http.FinishInstanceRequest.timestamp)
    * [`FinishInstanceRequest.idempotency_key`](prefactor_http.md#prefactor_http.FinishInstanceRequest.idempotency_key)
    * [`FinishInstanceRequest.idempotency_key`](prefactor_http.md#id44)
    * [`FinishInstanceRequest.model_config`](prefactor_http.md#prefactor_http.FinishInstanceRequest.model_config)
    * [`FinishInstanceRequest.status`](prefactor_http.md#id45)
    * [`FinishInstanceRequest.timestamp`](prefactor_http.md#id46)
  * [`HttpClientConfig`](prefactor_http.md#prefactor_http.HttpClientConfig)
    * [`HttpClientConfig.api_url`](prefactor_http.md#prefactor_http.HttpClientConfig.api_url)
    * [`HttpClientConfig.api_token`](prefactor_http.md#prefactor_http.HttpClientConfig.api_token)
    * [`HttpClientConfig.request_timeout`](prefactor_http.md#prefactor_http.HttpClientConfig.request_timeout)
    * [`HttpClientConfig.connect_timeout`](prefactor_http.md#prefactor_http.HttpClientConfig.connect_timeout)
    * [`HttpClientConfig.max_retries`](prefactor_http.md#prefactor_http.HttpClientConfig.max_retries)
    * [`HttpClientConfig.initial_retry_delay`](prefactor_http.md#prefactor_http.HttpClientConfig.initial_retry_delay)
    * [`HttpClientConfig.max_retry_delay`](prefactor_http.md#prefactor_http.HttpClientConfig.max_retry_delay)
    * [`HttpClientConfig.retry_multiplier`](prefactor_http.md#prefactor_http.HttpClientConfig.retry_multiplier)
    * [`HttpClientConfig.retry_on_status_codes`](prefactor_http.md#prefactor_http.HttpClientConfig.retry_on_status_codes)
    * [`HttpClientConfig.default_idempotency_key`](prefactor_http.md#prefactor_http.HttpClientConfig.default_idempotency_key)
    * [`HttpClientConfig.api_token`](prefactor_http.md#id47)
    * [`HttpClientConfig.api_url`](prefactor_http.md#id48)
    * [`HttpClientConfig.connect_timeout`](prefactor_http.md#id49)
    * [`HttpClientConfig.default_idempotency_key`](prefactor_http.md#id50)
    * [`HttpClientConfig.initial_retry_delay`](prefactor_http.md#id51)
    * [`HttpClientConfig.max_retries`](prefactor_http.md#id52)
    * [`HttpClientConfig.max_retry_delay`](prefactor_http.md#id53)
    * [`HttpClientConfig.request_timeout`](prefactor_http.md#id54)
    * [`HttpClientConfig.retry_multiplier`](prefactor_http.md#id55)
    * [`HttpClientConfig.retry_on_status_codes`](prefactor_http.md#id56)
  * [`PrefactorApiError`](prefactor_http.md#prefactor_http.PrefactorApiError)
    * [`PrefactorApiError.message`](prefactor_http.md#prefactor_http.PrefactorApiError.message)
    * [`PrefactorApiError.code`](prefactor_http.md#prefactor_http.PrefactorApiError.code)
    * [`PrefactorApiError.status_code`](prefactor_http.md#prefactor_http.PrefactorApiError.status_code)
  * [`PrefactorAuthError`](prefactor_http.md#prefactor_http.PrefactorAuthError)
  * [`PrefactorClientError`](prefactor_http.md#prefactor_http.PrefactorClientError)
  * [`PrefactorHttpClient`](prefactor_http.md#prefactor_http.PrefactorHttpClient)
    * [`PrefactorHttpClient.agent_instances`](prefactor_http.md#prefactor_http.PrefactorHttpClient.agent_instances)
    * [`PrefactorHttpClient.agent_spans`](prefactor_http.md#prefactor_http.PrefactorHttpClient.agent_spans)
    * [`PrefactorHttpClient.bulk`](prefactor_http.md#prefactor_http.PrefactorHttpClient.bulk)
    * [`PrefactorHttpClient.close()`](prefactor_http.md#prefactor_http.PrefactorHttpClient.close)
    * [`PrefactorHttpClient.request()`](prefactor_http.md#prefactor_http.PrefactorHttpClient.request)
  * [`PrefactorHttpError`](prefactor_http.md#prefactor_http.PrefactorHttpError)
  * [`PrefactorNotFoundError`](prefactor_http.md#prefactor_http.PrefactorNotFoundError)
  * [`PrefactorResponseContractError`](prefactor_http.md#prefactor_http.PrefactorResponseContractError)
  * [`PrefactorRetryExhaustedError`](prefactor_http.md#prefactor_http.PrefactorRetryExhaustedError)
    * [`PrefactorRetryExhaustedError.last_error`](prefactor_http.md#prefactor_http.PrefactorRetryExhaustedError.last_error)
  * [`PrefactorValidationError`](prefactor_http.md#prefactor_http.PrefactorValidationError)
    * [`PrefactorValidationError.errors`](prefactor_http.md#prefactor_http.PrefactorValidationError.errors)
  * [`SpanTypeSchemaForCreate`](prefactor_http.md#prefactor_http.SpanTypeSchemaForCreate)
    * [`SpanTypeSchemaForCreate.name`](prefactor_http.md#prefactor_http.SpanTypeSchemaForCreate.name)
    * [`SpanTypeSchemaForCreate.params_schema`](prefactor_http.md#prefactor_http.SpanTypeSchemaForCreate.params_schema)
    * [`SpanTypeSchemaForCreate.result_schema`](prefactor_http.md#prefactor_http.SpanTypeSchemaForCreate.result_schema)
    * [`SpanTypeSchemaForCreate.title`](prefactor_http.md#prefactor_http.SpanTypeSchemaForCreate.title)
    * [`SpanTypeSchemaForCreate.description`](prefactor_http.md#prefactor_http.SpanTypeSchemaForCreate.description)
    * [`SpanTypeSchemaForCreate.template`](prefactor_http.md#prefactor_http.SpanTypeSchemaForCreate.template)
    * [`SpanTypeSchemaForCreate.data_risk`](prefactor_http.md#prefactor_http.SpanTypeSchemaForCreate.data_risk)
    * [`SpanTypeSchemaForCreate.data_risk`](prefactor_http.md#id57)
    * [`SpanTypeSchemaForCreate.description`](prefactor_http.md#id58)
    * [`SpanTypeSchemaForCreate.model_config`](prefactor_http.md#prefactor_http.SpanTypeSchemaForCreate.model_config)
    * [`SpanTypeSchemaForCreate.name`](prefactor_http.md#id59)
    * [`SpanTypeSchemaForCreate.params_schema`](prefactor_http.md#id60)
    * [`SpanTypeSchemaForCreate.result_schema`](prefactor_http.md#id61)
    * [`SpanTypeSchemaForCreate.template`](prefactor_http.md#id62)
    * [`SpanTypeSchemaForCreate.title`](prefactor_http.md#id63)
  * [Subpackages](prefactor_http.md#subpackages)
    * [prefactor_http.endpoints package](prefactor_http.endpoints.md)
      * [`AgentInstanceClient`](prefactor_http.endpoints.md#prefactor_http.endpoints.AgentInstanceClient)
      * [`AgentSpanClient`](prefactor_http.endpoints.md#prefactor_http.endpoints.AgentSpanClient)
      * [`BulkClient`](prefactor_http.endpoints.md#prefactor_http.endpoints.BulkClient)
      * [Submodules](prefactor_http.endpoints.md#submodules)
    * [prefactor_http.models package](prefactor_http.models.md)
      * [`ActionProfile`](prefactor_http.models.md#prefactor_http.models.ActionProfile)
      * [`AgentInstance`](prefactor_http.models.md#prefactor_http.models.AgentInstance)
      * [`AgentInstanceSpanCounts`](prefactor_http.models.md#prefactor_http.models.AgentInstanceSpanCounts)
      * [`AgentSchemaVersionForRegister`](prefactor_http.models.md#prefactor_http.models.AgentSchemaVersionForRegister)
      * [`AgentSpan`](prefactor_http.models.md#prefactor_http.models.AgentSpan)
      * [`AgentVersionForRegister`](prefactor_http.models.md#prefactor_http.models.AgentVersionForRegister)
      * [`ApiResponse`](prefactor_http.models.md#prefactor_http.models.ApiResponse)
      * [`BulkItem`](prefactor_http.models.md#prefactor_http.models.BulkItem)
      * [`BulkOutput`](prefactor_http.models.md#prefactor_http.models.BulkOutput)
      * [`BulkRequest`](prefactor_http.models.md#prefactor_http.models.BulkRequest)
      * [`BulkResponse`](prefactor_http.models.md#prefactor_http.models.BulkResponse)
      * [`DataCategories`](prefactor_http.models.md#prefactor_http.models.DataCategories)
      * [`DataRisk`](prefactor_http.models.md#prefactor_http.models.DataRisk)
      * [`FinishInstanceRequest`](prefactor_http.models.md#prefactor_http.models.FinishInstanceRequest)
      * [`SpanTypeSchemaForCreate`](prefactor_http.models.md#prefactor_http.models.SpanTypeSchemaForCreate)
      * [Submodules](prefactor_http.models.md#submodules)
  * [Submodules](prefactor_http.md#submodules)
    * [prefactor_http.client module](prefactor_http.client.md)
      * [`PrefactorHttpClient`](prefactor_http.client.md#prefactor_http.client.PrefactorHttpClient)
    * [prefactor_http.config module](prefactor_http.config.md)
      * [`HttpClientConfig`](prefactor_http.config.md#prefactor_http.config.HttpClientConfig)
    * [prefactor_http.exceptions module](prefactor_http.exceptions.md)
      * [`PrefactorApiError`](prefactor_http.exceptions.md#prefactor_http.exceptions.PrefactorApiError)
      * [`PrefactorAuthError`](prefactor_http.exceptions.md#prefactor_http.exceptions.PrefactorAuthError)
      * [`PrefactorClientError`](prefactor_http.exceptions.md#prefactor_http.exceptions.PrefactorClientError)
      * [`PrefactorHttpError`](prefactor_http.exceptions.md#prefactor_http.exceptions.PrefactorHttpError)
      * [`PrefactorNotFoundError`](prefactor_http.exceptions.md#prefactor_http.exceptions.PrefactorNotFoundError)
      * [`PrefactorResponseContractError`](prefactor_http.exceptions.md#prefactor_http.exceptions.PrefactorResponseContractError)
      * [`PrefactorRetryExhaustedError`](prefactor_http.exceptions.md#prefactor_http.exceptions.PrefactorRetryExhaustedError)
      * [`PrefactorValidationError`](prefactor_http.exceptions.md#prefactor_http.exceptions.PrefactorValidationError)
      * [`is_permanent_http_error()`](prefactor_http.exceptions.md#prefactor_http.exceptions.is_permanent_http_error)
      * [`is_transient_http_error()`](prefactor_http.exceptions.md#prefactor_http.exceptions.is_transient_http_error)
    * [prefactor_http.retry module](prefactor_http.retry.md)
      * [`RetryHandler`](prefactor_http.retry.md#prefactor_http.retry.RetryHandler)