# Components

The Components API lets you retrieve components, get the details of a specific component, search datasources in a component, and create a component datasource.

 - [POST /api/v1/components/{componentId}/datasources](https://api-docs.sitecore.com/sai/agent-api/components/components-create_component_datasource.md): Creates a new datasource item for a specific component using the provided data field values. The datasource will be created in the appropriate location based on the component's configuration.
 - [GET /api/v1/components/{componentId}/datasources/search](https://api-docs.sitecore.com/sai/agent-api/components/components-search_component_datasources.md): Searches for available datasources that can be used with a specific component. This helps you find existing content to use as datasources.
 - [GET /api/v1/components](https://api-docs.sitecore.com/sai/agent-api/components/components-list_components.md): Retrieves a list of components available for a specific site, including both built-in components and custom components that can be used on pages.
 - [GET /api/v1/components/{componentId}](https://api-docs.sitecore.com/sai/agent-api/components/components-get_component.md): Retrieves the details of a specific component, including its ID, name, and datasource options.
