# Using a component

Add a component to your API definition.

## Before you begin

You have created a component.

## Procedure

1. In your API, select the operation in which you want to add a component.
2. Click Use a component next to the corresponding element.

   ![View of the request parameter with Use a component button.](https://help.qlik.com/talend/en-US/api-designer-user-guide/Resources/images/designer_extract_as_component.png)
3. Select a component in the drop-down list.
4. Click Add.

## Results

The component is added to your definition. In the Components tab, you can open your component and see the name of the operations that use it in the Referenced by section.

### In this section

* [Using a path variable component](https://help.qlik.com/talend/en-US/api-designer-user-guide/Cloud/using-path-variable-component)
* [Using a response component](https://help.qlik.com/talend/en-US/api-designer-user-guide/Cloud/using-response-component)