You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _apidocs/regulationsgov.md
+2-209Lines changed: 2 additions & 209 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,8 +89,6 @@ If you want to use commenting API, you MUST use the form below to register for a
89
89
<noscript>Please enable JavaScript to signup for an <ahref="http://api.data.gov/">api.data.gov</a> API key.</noscript>
90
90
{% endraw %}
91
91
92
-
Comment posting capability of API key is available to authorized federal government entities only.
93
-
94
92
After registration, you will need to provide this API key in the `X-Api-Key` HTTP header with every API request.
95
93
96
94
| HTTP Header Name | Description |
@@ -99,27 +97,9 @@ After registration, you will need to provide this API key in the `X-Api-Key` HTT
99
97
100
98
<p><small><ahref="#">Back to top</a></small></p>
101
99
102
-
## Terms of Participation
103
-
104
-
The eRulemaking post Application Programming Interface (API), informally referred to as the Comment API, is provided as a convenience to facilitate the bulk upload of comments from a number of different commenters. The use of the Comment API requires a key, which may be obtained through the [open GSA](https://open.gsa.gov/api/regulationsgov/#getting-started) website.
105
-
106
-
By registering for, receiving and using a key to the Comment API, the key holder agrees to the following terms and conditions:
107
-
108
-
1. When developing interfaces for commenters who will submit comment language and/or attachments through the Comment API, the key holder will include in the interface:
109
-
1. A link to the same [terms of participation](https://www.regulations.gov/user-notice) and [privacy notice](https://www.regulations.gov/privacy-notice) that users encounter on the comment form for Regulations.gov, and
110
-
2. A link to the Federal Register notice or other specific document in Regulations.gov for which the key holder is collecting or facilitating comments to be delivered through the Comment API.
111
-
112
-
2. The key holder certifies that:
113
-
1. I will only submit comments through the Comment API that it has gathered through lawful means and that, to the best of the key holder’s knowledge, represent comments from real persons, and
114
-
2. It has not and will not submit comments of its own creation under fictitious or misappropriated identities or otherwise in violation of federal law.
115
-
116
-
3. The API key may be disabled if an API key holder is determined to have violated these Terms of Participation.
117
-
118
-
<p><small><ahref="#">Back to top</a></small></p>
119
-
120
100
## API Description
121
101
122
-
Regulations.gov offers a GET API for documents, comments, and dockets and a POST API for comments. These endpoints can be used for searching document, comments and dockets, and posting a comment.
102
+
Regulations.gov offers a GET API for documents, comments, and dockets. These endpoints can be used for searching documents, comments, and dockets.
123
103
124
104
#### Searching for documents
125
105
@@ -149,20 +129,6 @@ A docket is an organizational folder containing multiple documents. Dockets can
149
129
150
130
In order to obtain more details about a single docket, you can use the endpoint `/v4/dockets/{docketId}`. Each docket has its own set of attributes, which vary based on the Agency posting the docket. Another defining characteristic is if the docket is a Rulemaking or a Nonrulemaking Docket
151
131
152
-
#### Posting a comment
153
-
154
-
User can post a comment using the endpoint `/v4/comments`. User can post the comment using one of the following submitter types:
155
-
156
-
* Individual
157
-
* Organization
158
-
* Anonymous
159
-
160
-
If user would like to attach files with their submission, user can get a presigned url for the amazon s3 bucket using the endpoint `/v4/file-upload-urls`
161
-
162
-
A submissionKey can be retrieved using `/v4/submission-keys` endpoint.
163
-
164
-
submissionType should be set to API.
165
-
166
132
<p><small><ahref="#">Back to top</a></small></p>
167
133
168
134
## Data Limitations
@@ -215,31 +181,6 @@ Agency configured fields can be updated by an agency at any point in time and ma
215
181
* email
216
182
* phone
217
183
* fax
218
-
219
-
## Post Comment API Validation
220
-
221
-
#### Common Validations for all comments
222
-
223
-
*`commentOnDocumentId`, `comment` and `submissionType` are required fields.
224
-
* If `sendEmailReceipt` is true, `email` field is required.
225
-
* An emoji is not a valid character.
226
-
* If a field has a maximum length requirement, the requirement is applied to both, the number of characters and the number of bytes.
227
-
*`submitterType` field must be one of these allowed values: `ANONYMOUS`, `INDIVIDUAL`, `ORGANIZATION`.
228
-
*`submissionType` field must be set to `API`.
229
-
* Field value for `comment` must be less than or equals to 5000 characters/bytes.
230
-
* Field value for `email` must be less than or equals to 100 characters/bytes.
231
-
232
-
#### Individual Comment Validations
233
-
234
-
*`firstName` and `lastName` are required fields.
235
-
* Field value for `firstName` and `lastName` must be less than or equals to 25 characters/bytes.
236
-
* Field value for `city`, `stateProvinceRegion`, `phone` and `country` must be less than or equals to 50 characters/bytes.
237
-
* Field value for `zip` field must have less than or equals to 10 characters/bytes.
238
-
239
-
#### Organization Comment Validations
240
-
241
-
*`organization` and `organizationType` are required fields.
242
-
* Field value for `organization` field must have less than or equals to 120 characters/bytes.
243
184
244
185
## Examples
245
186
@@ -429,146 +370,6 @@ To retrieve detailed information on a docket, the following query can be used:
* Posting multiple submissions in a single comment:
524
-
525
-
To post a comment with attachment that carries 5 submissions, user should follow the following steps:
526
-
527
-
* Step 1: Get a submission key:
528
-
529
-
```json
530
-
POST https://api.regulations.gov/v4/submission-keys {
531
-
"data": {
532
-
"type":"submission-keys"
533
-
}
534
-
}
535
-
```
536
-
537
-
* Step 2: Get presigned url for the attachment with multiple submissions:
538
-
539
-
```json
540
-
POST https://api.regulations.gov/v4/file-upload-urls {
541
-
"data": {
542
-
"type":"file-upload-urls",
543
-
"attributes": {
544
-
"fileName":"multipleSubmissions.pdf",
545
-
"submissionKey":"kex-d31z-fe04",
546
-
"contentType":"image/jpeg"
547
-
}
548
-
}
549
-
}
550
-
```
551
-
552
-
* Step 3: Upload binaries to presigned url
553
-
554
-
* Step 4: Submit your comment with
555
-
556
-
```json
557
-
POST https://api.regulations.gov/v4/comments {
558
-
"data": {
559
-
"attributes": {
560
-
"commentOnDocumentId":"FDA-2009-N-0501-0012",
561
-
"comment":"test comment",
562
-
"submissionType":"API",
563
-
"submissionKey":"kex-d31z-fe04",
564
-
"submitterType":"ANONYMOUS",
565
-
"files":[ "multipleSubmissions.pdf" ],
566
-
"numItemsReceived": 5
567
-
},
568
-
"type":"comments"
569
-
}
570
-
}
571
-
```
572
373
<p><small><a href="#">Back to top</a></small></p>
573
374
574
375
## OpenAPI Specification File
@@ -600,14 +401,6 @@ We have added an example that shows how to retrieve more than 5000 comments on a
600
401
601
402
Please note the new parameter `lastModifiedDate` is in beta and may be removed when we have a permanent bulk download solution available.
602
403
603
-
#### I submitted a comment, but I am unable to find it on regs. What happened to my comment?
604
-
605
-
Comments created via API are not made available in Regulations.gov right away. Agencies need to approve before the newly created comment can be posted out to Regulations.gov.
606
-
607
-
#### I am seeing 400 errors from commenting API. What am I doing wrong?
608
-
609
-
Please make sure you are setting Content-Type to application/vnd.api+json in request header.
610
-
611
404
#### What is DEMO_KEY api key?
612
405
613
406
As indicated by name, DEMO_KEY should only be used for demonstration purposes. We have added this api_key to our examples to make it easier for users to copy/paste the urls. It should not be used for anything more than exploring our APIs.
@@ -622,7 +415,7 @@ Please review https://api.data.gov/docs/rate-limits/ for information on rate lim
622
415
623
416
#### Can I request rate limit increases for my keys?
624
417
625
-
GSA may grant a rate limit increase on the GET keys for an indefinite period. Such requests must establish the need to justify the rate limit increases. Each submission will be reviewed and considered on a case-by-case basis. GSA is unable to increase the rate limits for POST API keys upon requests at this time. However, the current POST API key holders can request one additional key without going through the validation process again.
418
+
GSA may grant a rate limit increase on the GET keys for an indefinite period. Such requests must establish the need to justify the rate limit increases. Each submission will be reviewed and considered on a case-by-case basis.
0 commit comments