# Defining security for your API

Define a global security scheme to use in all operations of your API.

## Procedure

1. Scroll down to the SECURITY SCHEMES section and click Add.
2. In the Type drop-down list, select Bearer authentication.
3. Click Add next to HEADERS.
4. Enter Authorization in the Name field and toggle the Required button to Yes.

   ![SECURITY SCHEMES section of the Loans API.](https://help.qlik.com/talend/en-US/api-designer-getting-started-guide/Resources/images/define_security_01_scheme.png)
5. Click Save.
6. Click the pencil icon in the GLOBAL SECURITY section to set a default security for the whole API.
7. Clear the No authentication check box and select Bearer authentication.

   ![GLOBAL SECURITY section.](https://help.qlik.com/talend/en-US/api-designer-getting-started-guide/Resources/images/define_security_02_global.png)
8. Click Save.

## Results

You have defined a default security scheme for your API. All new operations will automatically include the Authorization header.