-
Notifications
You must be signed in to change notification settings - Fork 82
/
apiary.apib
16279 lines (12029 loc) · 522 KB
/
apiary.apib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
FORMAT: 1A
HOST: https://api.birdeye.com/resources
# Birdeye
Birdeye helps businesses grow through happy customers. Over 80,000 businesses use Birdeye everyday to attract new leads with Listings, Reviews and Referrals, convert them into customers with Webchat, Appointments, and Payments, and delight those customers with Surveys, Ticketing, and Insights - all in one place.
The Birdeye APIs are built on HTTP and are RESTful APIs.
* Uses resource-oriented URLs.
* Uses built-in HTTP capabilities for passing parameters and authentication.
* Responds with standard HTTP response codes to indicate errors.
* Requests and responses payload attached with all the mentioned APIs, you may choose your preferred language per the integration requirement.
### Authentication and Rate limiting
To call a Birdeye API, you need a valid API key. It can be fetched via the Birdeye dashboard and is a confidential key.
There is a limit to calling APIs with each API key [connect with the support team to get the current limit]. If too many requests are made within the threshold timeframe, an error will be returned in the response.
### Pagination
Multiple API supporting pagination. These APIs have two parameters sindex and count.
* <b>sindex:</b> is the start index
* <b>count:</b> No. of records, you want to fetch.
> __Note__
> - _Deep Pagination with record window greater than 100k is not supported. Either reduce the sindex + count to be less than equal to 100k or use appropriate filters to narrow down your result set._
<b>For example :</b>
* Suppose you have to fetch 20 records:
<pre><code>
API call 1 -> sindex=0, count 10
API call 2 -> sindex -> 10, count 10.
</pre></code>
* To fetch 100kth record:
<pre><code>
sindex = 99000 and count = 1000
will just work fine as sindex + count = 100000 which is less than 100,000.
</pre></code>
* If you fetch more than 100kth records:
<pre><code>
sindex = 99000 and count = 1001, sindex + count = 100001
which is greater than 100,000. Thus, you'll receive an error in response.
</pre></code>
### HTTP Status Codes
Every API response will have an HTTP status code.
* <b>200 - OK:</b> API request is successful
* <b>202 - Accepted:</b> The API request has been accepted for processing.
* <b>400 - Bad Request:</b> The API request was unacceptable, often due to a missing or invalid parameter.
* <b>404 - Not Found:</b> The requested resource does not exist.
* <b>429 - Rate Limited:</b> You have made too many requests within the threshold timeframe.
* <b>500 - Internal Server Error:</b> Something went wrong on our end. Please get in touch with support.
### Error Response
Birdeye API will return a validation error in case of missing/invalid input in the request. The response will return the errorCode and errorMessage.
For example :
<pre><code>
{
"code": 1161,
"message": "Invalid API key"
}
</pre></code>
## 1023 [/1023]
+ Model (application/json)
{
"code": 1023,
"message": "No email addresses specified"
}
## 1052 [/1052]
+ Model (application/json)
{
"code": 1052,
"message": "User email id cannot be blank"
}
## 1150 [/1150]
+ Model (application/json)
{
"code": 1150,
"message": "Business already associated with this reseller"
}
## 1151 [/1151]
+ Model (application/json)
{
"code": 1151,
"message": "Business already associated with another reseller"
}
## 1040 [/1040]
+ Model (application/json)
{
"code": 1040,
"message": "Invalid temmplate id."
}
## 1045 [/1045]
+ Model (application/json)
{
"code": 1045,
"message": "Business name cannot be blank"
}
## 1046 [/1046]
+ Model (application/json)
{
"code": 1046,
"message": "Business name cannot be more than 250 characters"
}
## 1047 [/1047]
+ Model (application/json)
{
"code": 1047,
"message": "Business name cannot be less than 3 characters"
}
## 1094 [/1094]
+ Model (application/json)
{
"code": 1094,
"message": "Postal code cannot be blank."
}
## 1030 [/1030]
+ Model (application/json)
{
"code": 1030,
"message": "URL cannot be blank"
}
## 1031 [/1031]
+ Model (application/json)
{
"code": 1031,
"message": "Source id cannot be blank"
}
## 1032 [/1032]
+ Model (application/json)
{
"code": 1032,
"message": "Invalid source id"
}
## 1039 [/1039]
+ Model (application/json)
{
"code": 1039,
"message": "Invalid business aggregation id"
}
## 1067 [/1067]
+ Model (application/json)
{
"code": 1067,
"message": "URL is invalid"
}
## 1075 [/1075]
+ Model (application/json)
{
"code": 1075,
"message": "Business location zip cannot be more than 6 numbers"
}
## 1025 [/1025]
+ Model (application/json)
{
"code": 1025,
"message": "Invalid business type"
}
## 1161 [/1161]
+ Model (application/json)
{
"code": 1161,
"message": "Invalid API key"
}
## 1167 [/1167]
+ Model (application/json)
{
"code": 1167,
"message": "API key is missing"
}
## 89 [/89]
+ Model (application/json)
{
"code": 89,
"message": "Rate limit exceeded"
}
## 1033 [/1033]
+ Model (application/json)
{
"code": 1033,
"message": "You are not authorized to perform this action"
}
## 1175 [/1175]
+ Model (application/json)
{
"code": 1175,
"message": "No business found with the given id"
}
## 1010 [/1010]
+ Model (application/json)
{
"code": 1010,
"message": "No user found with the given id"
}
## 1076 [/1076]
+ Model (application/json)
{
"code": 1176,
"message": "Business info cannot be blank"
}
## 1162 [/1162]
+ Model (application/json)
{
"code": 1162,
"message": "Either search string or location or both should be specified"
}
## 1163 [/1163]
+ Model (application/json)
{
"code": 1163,
"message": "Invalid start index value"
}
## 1164 [/1164]
+ Model (application/json)
{
"code": 1164,
"message": "Invalid result count value"
}
## 1011 [/1011]
+ Model (application/json)
{
"code": 1011,
"message": "Business id is invalid"
}
## 1380 [/1380]
+ Model (application/json)
{
"code": 1380,
"message": "Api key or session token missing"
}
## 1048 [/1048]
+ Model (application/json)
{
"code": 1048,
"message": "Business email id cannot be blank."
}
## 1049 [/1049]
+ Model (application/json)
{
"code": 1049,
"message": "Business email id is invalid."
}
## 1050 [/1050]
+ Model (application/json)
{
"code": 1050,
"message": "Business email id cannot be more than 40 characters."
}
## 1055 [/1055]
+ Model (application/json)
{
"code": 1055,
"message": "Not a valid US phone number."
}
## 1056 [/1056]
+ Model (application/json)
{
"code": 1056,
"message": "Not a valid US fax number."
}
## 1069 [/1069]
+ Model (application/json)
{
"code": 1069,
"message": "Business description cannot be more than 4000 characters."
}
## 1070 [/1070]
+ Model (application/json)
{
"code": 1070,
"message": "Business keywords cannot be more than 1000 characters."
}
## 1089 [/1089]
+ Model (application/json)
{
"code": 1089,
"message": "Customer id is invalid."
}
## 1091 [/1091]
+ Model (application/json)
{
"code": 1091,
"message": "User id not authorized to view this customer."
}
## 1190 [/1190]
+ Model (application/json)
{
"code": 1190,
"message": "Invalid category"
}
## 1184 [/1184]
+ Model (application/json)
{
"code": 1184,
"message": "Status change is not allowed"
}
## 1191 [/1191]
+ Model (application/json)
{
"code": 1191,
"message": "Invalid status."
}
## 1174 [/1174]
+ Model (application/json)
{
"code": 1174,
"message": "Reseller can't be removed as it has child accounts."
}
## 1160 [/1160]
+ Model (application/json)
{
"code": 1160,
"message": "User is already associated with business."
}
## 1053 [/1053]
+ Model (application/json)
{
"code": 1053,
"message": "User email id is invalid"
}
## 1054 [/1054]
+ Model (application/json)
{
"code": 1054,
"message": "User email id cannot be more than 40 characters"
}
## 1014 [/1014]
+ Model (application/json)
{
"code": 1014,
"message": "User role cannot be blank"
}
## 1013 [/1013]
+ Model (application/json)
{
"code": 1013,
"message": "Unknown user role"
}
## 1057 [/1057]
+ Model (application/json)
{
"code": 1057,
"message": "First name cannot be more than 50 characters"
}
## 1059 [/1059]
+ Model (application/json)
{
"code": 1059,
"message": "Last name cannot be more than 50 characters"
}
## 1188 [/1188]
+ Model (application/json)
{
"code": 1188,
"message": "User is not associated with the business."
}
## 1189 [/1189]
+ Model (application/json)
{
"code": 1189,
"message": "User with given email id not found."
}
## 1177 [/1177]
+ Model (application/json)
{
"code": 1177,
"message": "User is not authorized to perform any action on any business"
}
## 1081 [/1081]
+ Model (application/json)
{
"code": 1081,
"message": "Review comment is too long"
}
## 1082 [/1082]
+ Model (application/json)
{
"code": 1082,
"message": "Review rating is missing"
}
## 1142 [/1142]
+ Model (application/json)
{
"code": 1142,
"message": "Customer name cannot be blank"
}
## 1086 [/1086]
+ Model (application/json)
{
"code": 1086,
"message": "Customer email id cannot be blank."
}
## 1087 [/1087]
+ Model (application/json)
{
"code": 1087,
"message": "Customer email id is invalid."
}
## 1088 [/1088]
+ Model (application/json)
{
"code": 1088,
"message": "Customer email id cannot be more than 40 characters."
}
## 1170 [/1170]
+ Model (application/json)
{
"code": 1170,
"message": "SMS Alert flag is invalid. Valid values are 0 or 1."
}
## 1242 [/1242]
+ Model (application/json)
{
"code": 1242,
"message": "Invalid rating value. Allowed value between 0-5."
}
## 1228 [/1228]
+ Model (application/json)
{
"code": 1228,
"message": "Invalid updated to date. Allowed format is MM/dd/yyyy"
}
## 1227 [/1227]
+ Model (application/json)
{
"code": 1227,
"message": "Invalid updated from date. Allowed format is MM/dd/yyyy"
}
## 1243 [/1243]
+ Model (application/json)
{
"code": 1243,
"message": "Invalid rating value. Allowed value between 1-5."
}
## 1244 [/1244]
+ Model (application/json)
{
"code": 1244,
"message": "Maximum 5 keywords can be selected for filter."
}
## 1246 [/1246]
+ Model (application/json)
{
"code": 1246,
"message": "Customer email or phone number is required."
}
## 1215 [/1215]
+ Model (application/json)
{
"code": 1215,
"message": "Invalid report month."
}
## 1251 [/1251]
+ Model (application/json)
{
"code": 1251,
"message": "No review to mark featured/un-featured."
}
## 1042 [/1042]
+ Model (application/json)
{
"code": 1042,
"message": "Invalid review id"
}
## 1252 [/1252]
+ Model (application/json)
{
"code": 1252,
"message": "Review does not belong to the business."
}
## 1248 [/1248]
+ Model (application/json)
{
"code": 1248,
"message": "Allowed limit for featured reviews exceeded."
}
## 1186 [/1186]
+ Model (application/json)
{
"code": 1186,
"message": "Invalid from date. Allowed format is "MM/dd/yyyy"."
}
## 1187 [/1187]
+ Model (application/json)
{
"code": 1187,
"message": "Invalid to date. Allowed format is "MM/dd/yyyy"."
}
## 1265 [/1265]
+ Model (application/json)
{
"code": 1265,
"message": "Value for showOnFacebook is mandatory."
}
## 1266 [/1266]
+ Model (application/json)
{
"code": 1266,
"message": "Value for showOnProfile is mandatory."
}
## 1267 [/1267]
+ Model (application/json)
{
"code": 1267,
"message": "Value for showOnWebsite is mandatory."
}
## 1268 [/1268]
+ Model (application/json)
{
"code": 1268,
"message": "TabType is mandatory field."
}
## 1269 [/1269]
+ Model (application/json)
{
"code": 1269,
"message": "Max length for lable is 30."
}
## 1270 [/1270]
+ Model (application/json)
{
"code": 1270,
"message": "Max length for URL is 1000."
}
## 1360 [/1360]
+ Model (application/json)
{
"code": 1360,
"message": "Hierarchy is not supported for this parent type."
}
## 1361 [/1361]
+ Model (application/json)
{
"code": 1361,
"message": "Hierarchy is not supported for this child type."
}
## 1362 [/1362]
+ Model (application/json)
{
"code": 1362,
"message": "{Child type} cannot be added under {Parent type}."
}
## 1363 [/1363]
+ Model (application/json)
{
"code": 1363,
"message": "Invalid parent child mapping."
}
## 1029 [/1029]
+ Model (application/json)
{
"code": 1029,
"message": "Aggregation source not found"
}
## 1315 [/1315]
+ Model (application/json)
{
"code": 1315,
"message": "Invalid survey."
}
## 1523 [/1523]
+ Model (application/json)
{
"code": 1523,
"message": "The correct date format should be mm/dd/yyyy."
}
## 1524 [/1524]
+ Model (application/json)
{
"code": 1524,
"message": "Date entered is invalid."
}
## 2110 [/2110]
+ Model (application/json)
{
"code": 2110,
"message": "Your review response could not be submitted due to a temporary error on Google. Please try after some time."
}
## 21101 [/21101]
+ Model (application/json)
{
"code": 21101,
"message": "Google page is not integrated. Kindly integrate it first."
}
## 21103 [/21103]
+ Model (application/json)
{
"code": 21103,
"message": "Your review response could not be submitted due to a temporary error on Google."
}
## 21104 [/21104]
+ Model (application/json)
{
"code": 21104,
"message": "Sorry, We could not find this review on Google. Please go to your Google Business page and reply to this review. Thank you."
}
## 2111 [/2111]
+ Model (application/json)
{
"code": 2111,
"message": "Your review response could not be submitted due to a temporary error on Facebook. Please try after some time."
}
## 21113 [/21113]
+ Model (application/json)
{
"code": 21113,
"message": "Facebook page is not integrated. Kindly integrate it first."
}
## 21114 [/21114]
+ Model (application/json)
{
"code": 21114,
"message": "Sorry, We could not find this review on Facebook. Please go to your Facebook page and reply to this review. Thank you."
}
## 21112 [/21112]
+ Model (application/json)
{
"code": 21112,
"message": "Your review response could not be submitted due to a temporary error on Facebook."
}
## 2222 [/2222]
+ Model (application/json)
{
"code": 2222,
"message": "Oops! Something is off on our side. We are working on it. Please check later."
}
## 2075 [/2075]
+ Model (application/json)
{
"code": 2075,
"message": "Error while claiming a provider for Care Dash"
}
## 20706 [/20706]
+ Model (application/json)
{
"code": 20706,
"message": "Error while posting a reply to Care Dash"
}
## 2078 [/2078]
+ Model (application/json)
{
"code": 2078,
"message": "Error while posting a reply to Rent"
}
## 1541 [/1541]
+ Model (application/json)
{
"code": 1541,
"message": "Rate Limit of API has been exceeded."
}
## 1532 [/1532]
+ Model (application/json)
{
"code": 1532,
"message": "Business id is missing or invalid."
}
## 5008 [/5008]
+ Model (application/json)
{
"code": 5008,
"message": "RequestBody not found"
}
## 5043 [/5043]
+ Model (application/json)
{
"code": 5043,
"message": "Contact not found for the given request"
}
## 2038 [/2038]
+ Model (application/json)
{