# Notify all devices or teams

**The targeting is based on which API key you specify in the request:**&#x20;

* If you use you account API key the notification will be send to all devices in **your account**.
* If you specify a team API key then the notification will be send to **all devices for every member in the team**.

> Your API Key is required for making any requests using our API, you can find it inside the console integrations page (<https://push.techulus.com/console/integrations>) or `Account` tab in mobile app. Team API keys can be found in the team details screen.

{% hint style="info" %}
**The authentication header (API Key) to be specified in the request is `x-api-key`**
{% endhint %}

### There are several ways you can make this request:&#x20;

{% openapi src="<https://3949046982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt89BeSuYfwUX8PpQ6V%2Fuploads%2FmJuOUe5RPz05aOwYDuY5%2Fopenapi.yaml?alt=media&token=8da10805-d5b6-4423-9819-04f51986ab5d>" path="/notify" method="post" %}
[openapi.yaml](https://3949046982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt89BeSuYfwUX8PpQ6V%2Fuploads%2FmJuOUe5RPz05aOwYDuY5%2Fopenapi.yaml?alt=media\&token=8da10805-d5b6-4423-9819-04f51986ab5d)
{% endopenapi %}

{% openapi src="<https://3949046982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt89BeSuYfwUX8PpQ6V%2Fuploads%2FmJuOUe5RPz05aOwYDuY5%2Fopenapi.yaml?alt=media&token=8da10805-d5b6-4423-9819-04f51986ab5d>" path="/notify/{apiKey}" method="get" %}
[openapi.yaml](https://3949046982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt89BeSuYfwUX8PpQ6V%2Fuploads%2FmJuOUe5RPz05aOwYDuY5%2Fopenapi.yaml?alt=media\&token=8da10805-d5b6-4423-9819-04f51986ab5d)
{% endopenapi %}

{% openapi src="<https://3949046982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt89BeSuYfwUX8PpQ6V%2Fuploads%2FmJuOUe5RPz05aOwYDuY5%2Fopenapi.yaml?alt=media&token=8da10805-d5b6-4423-9819-04f51986ab5d>" path="/notify/{apiKey}" method="post" %}
[openapi.yaml](https://3949046982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt89BeSuYfwUX8PpQ6V%2Fuploads%2FmJuOUe5RPz05aOwYDuY5%2Fopenapi.yaml?alt=media\&token=8da10805-d5b6-4423-9819-04f51986ab5d)
{% endopenapi %}

### We recommend the asynchronous API if you've more than 10 devices:

{% openapi src="<https://3949046982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt89BeSuYfwUX8PpQ6V%2Fuploads%2FmJuOUe5RPz05aOwYDuY5%2Fopenapi.yaml?alt=media&token=8da10805-d5b6-4423-9819-04f51986ab5d>" path="/notify-async" method="post" %}
[openapi.yaml](https://3949046982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt89BeSuYfwUX8PpQ6V%2Fuploads%2FmJuOUe5RPz05aOwYDuY5%2Fopenapi.yaml?alt=media\&token=8da10805-d5b6-4423-9819-04f51986ab5d)
{% endopenapi %}

### Sample Request body

```
{
    "title": "Welcome to Push by Techulus",
    "body": "This is your first notification"
}
```
