
Send FCM
No credit card required

Send FCM
No credit card required
This actor can be used as integration with Firebase Cloud Messaging (FCM). It sends a message (aka push notification) to a device, group of devices or topics. The message can be fully customised supporting all FCM options.
You can access the Send FCM programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1{
2 "openapi": "3.0.1",
3 "info": {
4 "version": "0.1",
5 "x-build-id": "atSgwEDEe11GcCpiB"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/martin.forejt~send-fcm/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-martin.forejt-send-fcm",
16 "x-openai-isConsequential": false,
17 "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18 "tags": [
19 "Run Actor"
20 ],
21 "requestBody": {
22 "required": true,
23 "content": {
24 "application/json": {
25 "schema": {
26 "$ref": "#/components/schemas/inputSchema"
27 }
28 }
29 }
30 },
31 "parameters": [
32 {
33 "name": "token",
34 "in": "query",
35 "required": true,
36 "schema": {
37 "type": "string"
38 },
39 "description": "Enter your Apify token here"
40 }
41 ],
42 "responses": {
43 "200": {
44 "description": "OK"
45 }
46 }
47 }
48 },
49 "/acts/martin.forejt~send-fcm/runs": {
50 "post": {
51 "operationId": "runs-sync-martin.forejt-send-fcm",
52 "x-openai-isConsequential": false,
53 "summary": "Executes an Actor and returns information about the initiated run in response.",
54 "tags": [
55 "Run Actor"
56 ],
57 "requestBody": {
58 "required": true,
59 "content": {
60 "application/json": {
61 "schema": {
62 "$ref": "#/components/schemas/inputSchema"
63 }
64 }
65 }
66 },
67 "parameters": [
68 {
69 "name": "token",
70 "in": "query",
71 "required": true,
72 "schema": {
73 "type": "string"
74 },
75 "description": "Enter your Apify token here"
76 }
77 ],
78 "responses": {
79 "200": {
80 "description": "OK",
81 "content": {
82 "application/json": {
83 "schema": {
84 "$ref": "#/components/schemas/runsResponseSchema"
85 }
86 }
87 }
88 }
89 }
90 }
91 },
92 "/acts/martin.forejt~send-fcm/run-sync": {
93 "post": {
94 "operationId": "run-sync-martin.forejt-send-fcm",
95 "x-openai-isConsequential": false,
96 "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97 "tags": [
98 "Run Actor"
99 ],
100 "requestBody": {
101 "required": true,
102 "content": {
103 "application/json": {
104 "schema": {
105 "$ref": "#/components/schemas/inputSchema"
106 }
107 }
108 }
109 },
110 "parameters": [
111 {
112 "name": "token",
113 "in": "query",
114 "required": true,
115 "schema": {
116 "type": "string"
117 },
118 "description": "Enter your Apify token here"
119 }
120 ],
121 "responses": {
122 "200": {
123 "description": "OK"
124 }
125 }
126 }
127 }
128 },
129 "components": {
130 "schemas": {
131 "inputSchema": {
132 "type": "object",
133 "required": [
134 "serviceAccountKey",
135 "notification"
136 ],
137 "properties": {
138 "serviceAccountKey": {
139 "title": "Service Account Key",
140 "type": "string",
141 "description": "Service account key in JSON format. You can get it from Firebase Console -> Project Settings -> Service accounts -> Generate new private key."
142 },
143 "deviceTokens": {
144 "title": "Device Tokens",
145 "type": "array",
146 "description": "Array of device tokens to send the message to.",
147 "items": {
148 "type": "string"
149 }
150 },
151 "topic": {
152 "title": "Topic",
153 "type": "string",
154 "description": "Topic to send the message to."
155 },
156 "condition": {
157 "title": "Condition",
158 "type": "string",
159 "description": "Condition to send the message to."
160 },
161 "notification": {
162 "title": "Notification",
163 "type": "object",
164 "description": "Notification object to send. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#resource:-message for more details."
165 },
166 "data": {
167 "title": "Data",
168 "type": "object",
169 "description": "Data object to send. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#resource:-message for more details."
170 },
171 "android": {
172 "title": "Android",
173 "type": "object",
174 "description": "Android specific options. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#androidconfig for more details."
175 },
176 "webPush": {
177 "title": "WebPush",
178 "type": "object",
179 "description": "WebPush specific options. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushconfig for more details."
180 },
181 "apns": {
182 "title": "APNs",
183 "type": "object",
184 "description": "APNs specific options. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#apnsconfig for more details."
185 },
186 "fcmOptions": {
187 "title": "FCM Options",
188 "type": "object",
189 "description": "FCM options. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#fcmoptions for more details."
190 }
191 }
192 },
193 "runsResponseSchema": {
194 "type": "object",
195 "properties": {
196 "data": {
197 "type": "object",
198 "properties": {
199 "id": {
200 "type": "string"
201 },
202 "actId": {
203 "type": "string"
204 },
205 "userId": {
206 "type": "string"
207 },
208 "startedAt": {
209 "type": "string",
210 "format": "date-time",
211 "example": "2025-01-08T00:00:00.000Z"
212 },
213 "finishedAt": {
214 "type": "string",
215 "format": "date-time",
216 "example": "2025-01-08T00:00:00.000Z"
217 },
218 "status": {
219 "type": "string",
220 "example": "READY"
221 },
222 "meta": {
223 "type": "object",
224 "properties": {
225 "origin": {
226 "type": "string",
227 "example": "API"
228 },
229 "userAgent": {
230 "type": "string"
231 }
232 }
233 },
234 "stats": {
235 "type": "object",
236 "properties": {
237 "inputBodyLen": {
238 "type": "integer",
239 "example": 2000
240 },
241 "rebootCount": {
242 "type": "integer",
243 "example": 0
244 },
245 "restartCount": {
246 "type": "integer",
247 "example": 0
248 },
249 "resurrectCount": {
250 "type": "integer",
251 "example": 0
252 },
253 "computeUnits": {
254 "type": "integer",
255 "example": 0
256 }
257 }
258 },
259 "options": {
260 "type": "object",
261 "properties": {
262 "build": {
263 "type": "string",
264 "example": "latest"
265 },
266 "timeoutSecs": {
267 "type": "integer",
268 "example": 300
269 },
270 "memoryMbytes": {
271 "type": "integer",
272 "example": 1024
273 },
274 "diskMbytes": {
275 "type": "integer",
276 "example": 2048
277 }
278 }
279 },
280 "buildId": {
281 "type": "string"
282 },
283 "defaultKeyValueStoreId": {
284 "type": "string"
285 },
286 "defaultDatasetId": {
287 "type": "string"
288 },
289 "defaultRequestQueueId": {
290 "type": "string"
291 },
292 "buildNumber": {
293 "type": "string",
294 "example": "1.0.0"
295 },
296 "containerUrl": {
297 "type": "string"
298 },
299 "usage": {
300 "type": "object",
301 "properties": {
302 "ACTOR_COMPUTE_UNITS": {
303 "type": "integer",
304 "example": 0
305 },
306 "DATASET_READS": {
307 "type": "integer",
308 "example": 0
309 },
310 "DATASET_WRITES": {
311 "type": "integer",
312 "example": 0
313 },
314 "KEY_VALUE_STORE_READS": {
315 "type": "integer",
316 "example": 0
317 },
318 "KEY_VALUE_STORE_WRITES": {
319 "type": "integer",
320 "example": 1
321 },
322 "KEY_VALUE_STORE_LISTS": {
323 "type": "integer",
324 "example": 0
325 },
326 "REQUEST_QUEUE_READS": {
327 "type": "integer",
328 "example": 0
329 },
330 "REQUEST_QUEUE_WRITES": {
331 "type": "integer",
332 "example": 0
333 },
334 "DATA_TRANSFER_INTERNAL_GBYTES": {
335 "type": "integer",
336 "example": 0
337 },
338 "DATA_TRANSFER_EXTERNAL_GBYTES": {
339 "type": "integer",
340 "example": 0
341 },
342 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
343 "type": "integer",
344 "example": 0
345 },
346 "PROXY_SERPS": {
347 "type": "integer",
348 "example": 0
349 }
350 }
351 },
352 "usageTotalUsd": {
353 "type": "number",
354 "example": 0.00005
355 },
356 "usageUsd": {
357 "type": "object",
358 "properties": {
359 "ACTOR_COMPUTE_UNITS": {
360 "type": "integer",
361 "example": 0
362 },
363 "DATASET_READS": {
364 "type": "integer",
365 "example": 0
366 },
367 "DATASET_WRITES": {
368 "type": "integer",
369 "example": 0
370 },
371 "KEY_VALUE_STORE_READS": {
372 "type": "integer",
373 "example": 0
374 },
375 "KEY_VALUE_STORE_WRITES": {
376 "type": "number",
377 "example": 0.00005
378 },
379 "KEY_VALUE_STORE_LISTS": {
380 "type": "integer",
381 "example": 0
382 },
383 "REQUEST_QUEUE_READS": {
384 "type": "integer",
385 "example": 0
386 },
387 "REQUEST_QUEUE_WRITES": {
388 "type": "integer",
389 "example": 0
390 },
391 "DATA_TRANSFER_INTERNAL_GBYTES": {
392 "type": "integer",
393 "example": 0
394 },
395 "DATA_TRANSFER_EXTERNAL_GBYTES": {
396 "type": "integer",
397 "example": 0
398 },
399 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
400 "type": "integer",
401 "example": 0
402 },
403 "PROXY_SERPS": {
404 "type": "integer",
405 "example": 0
406 }
407 }
408 }
409 }
410 }
411 }
412 }
413 }
414 }
415}
Send FCM OpenAPI definition
OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for Send FCM from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients:
Actor Metrics
1 monthly user
-
3 bookmarks
Created in Aug 2024
Modified 5 hours ago