Skip to content

Commit 28968b8

Browse files
committed
chore: Include 'Bearer' in authorization header documentation
1 parent 34542a0 commit 28968b8

File tree

9 files changed

+58
-58
lines changed

9 files changed

+58
-58
lines changed

fern/apis/beta/openapi-beta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27997,7 +27997,7 @@ components:
2799727997
auth-token:
2799827998
type: http
2799927999
description: |-
28000-
All the DevRev APIs require a token to authenticate the user. Provide `Authorization: <token>` as a header to every API request.
28000+
All the DevRev APIs require a token to authenticate the user. Provide `Authorization: Bearer <TOKEN>` as a header to every API request.
2800128001
[How do I find my token?](https://devrev.ai/docs/apis/auth)
2800228002
scheme: bearer
2800328003
x-fern-bearer:

fern/apis/public/openapi-public.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16021,7 +16021,7 @@ components:
1602116021
auth-token:
1602216022
type: http
1602316023
description: |-
16024-
All the DevRev APIs require a token to authenticate the user. Provide `Authorization: <token>` as a header to every API request.
16024+
All the DevRev APIs require a token to authenticate the user. Provide `Authorization: Bearer <TOKEN>` as a header to every API request.
1602516025
[How do I find my token?](https://devrev.ai/docs/apis/auth)
1602616026
scheme: bearer
1602716027
x-fern-bearer:

fern/docs/pages/create-accounts.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ flowchart TD
1919
acct-create[accounts.create]
2020
exist(((Account is existing
2121
'account ID')))
22-
list[rev-orgs.list with
22+
list[rev-orgs.list with
2323
'account' filter]
2424
get[rev-orgs.get with
2525
'account ID']
@@ -52,7 +52,7 @@ The payload to make a request is given below:
5252
curl --location 'https://api.devrev.ai/accounts.create' \
5353
--header 'Content-Type: application/json' \
5454
--header 'Accept: application/json' \
55-
--header 'Authorization: <PAT>' \
55+
--header 'Authorization: Bearer <PAT>' \
5656
--data '{
5757
"display_name": "John Doe"
5858
}'
@@ -126,7 +126,7 @@ The payload to make a request is given below:
126126
}
127127
```
128128

129-
The response contains `"external_ref": "don:identity:dvrv-us-1:devo/<devo-id>:account/<acc-id>",`. The `external_ref` identifies the `devo` ID (Dev organization ID) as `devo/<devo-id>` and the `account` ID as `account/<acc-id>`.
129+
The response contains `"external_ref": "don:identity:dvrv-us-1:devo/<devo-id>:account/<acc-id>",`. The `external_ref` identifies the `devo` ID (Dev organization ID) as `devo/<devo-id>` and the `account` ID as `account/<acc-id>`.
130130

131131
1. Check **Customers > Accounts** in the DevRev app to confirm that that account was created.
132132

@@ -139,19 +139,19 @@ To create a contact associated with the account you created, follow the steps li
139139
Get the default rev org created along with the newly created account using the `rev-orgs.list` API:
140140

141141
1. Make a GET/POST request to "https://api.devrev.ai/rev-orgs.list" using cURL with the `account` filter. Use the `external_ref` from the previous response as an `account` filter.
142-
142+
143143
```bash
144144
curl -X POST https://api.devrev.ai/rev-orgs.list \
145-
-H "Authorization: <apiKey>" \
145+
-H "Authorization: Bearer <apiKey>" \
146146
-H "Content-Type: application/json" \
147147
-d '{"account": [
148148
"<external reference of the account>"
149149
]
150150
}'
151151
```
152-
152+
153153
It returns the following response:
154-
154+
155155
```json focus={19}
156156
{
157157
"rev_orgs": [
@@ -189,26 +189,26 @@ Get the default rev org created along with the newly created account using the `
189189
]
190190
}
191191
```
192-
192+
193193
Note the `display_id` (example: `REV-abcd`) of the rev org from the response.
194194

195195
- If there is an existing account then you can get the default rev org using the `rev-orgs.get` API:
196196

197197
- Make a GET request to "https://api.devrev.ai/rev-orgs.get" using cURL with the `account` filter.
198-
198+
199199
```bash
200200
curl -G https://api.devrev.ai/rev-orgs.get \
201-
-H "Authorization: <apiKey>" \
201+
-H "Authorization: Bearer <apiKey>" \
202202
-d account=ACC-12345 \
203203
```
204-
204+
205205
2. Make a POST request to "https://api.devrev.ai/rev-users.create" to create a rev-user.
206206

207207
In the request, set `rev_org` to the value of the `display_id` from the previous reponse.
208208

209209
```bash
210210
curl -X POST https://api.devrev.ai/rev-users.create \
211-
-H "Authorization: <apiKey>" \
211+
-H "Authorization: Bearer <apiKey>" \
212212
-H "Content-Type: application/json" \
213213
-d '{
214214
"rev_org": "<rev org display-id>"

fern/docs/pages/custom-objects.mdx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ All DevRev objects require a schema. First, create a schema for the "Campaign" c
2929
curl --location 'https://api.devrev.ai/schemas.custom.set' \
3030
--header 'Content-Type: application/json' \
3131
--header 'Accept: application/json' \
32-
--header 'Authorization: <TOKEN>' \
32+
--header 'Authorization: Bearer <TOKEN>' \
3333
--data '{
3434
"type": "tenant_fragment",
3535
"description": "Attributes for Campaign",
@@ -79,7 +79,7 @@ Once the schema is created, you can create a custom object of type "Campaign":
7979
curl --location 'https://api.devrev.ai/custom-objects.create' \
8080
--header 'Content-Type: application/json' \
8181
--header 'Accept: application/json' \
82-
--header 'Authorization: <TOKEN>' \
82+
--header 'Authorization: Bearer <TOKEN>' \
8383
--data '{
8484
"leaf_type": "campaign",
8585
"unique_key": "CAMP-001",
@@ -135,7 +135,7 @@ To get a custom object, use the `custom-objects.get` endpoint:
135135
curl --location 'https://api.devrev.ai/custom-objects.get' \
136136
--header 'Content-Type: application/json' \
137137
--header 'Accept: application/json' \
138-
--header 'Authorization: <TOKEN>' \
138+
--header 'Authorization: Bearer <TOKEN>' \
139139
--data '{
140140
"id": "don:core:dvrv-us-1:devo/demo:custom_object/campaign/1"
141141
}'
@@ -149,7 +149,7 @@ To list custom objects, use the `custom-objects.list` endpoint:
149149
curl --location 'https://api.devrev.ai/custom-objects.list' \
150150
--header 'Content-Type: application/json' \
151151
--header 'Accept: application/json' \
152-
--header 'Authorization: <TOKEN>' \
152+
--header 'Authorization: Bearer <TOKEN>' \
153153
--data '{
154154
"leaf_type": "campaign",
155155
"filter": [
@@ -169,7 +169,7 @@ following example updates the budget of the previously created campaign custom o
169169
curl --location 'https://api.devrev.ai/custom-objects.update' \
170170
--header 'Content-Type: application/json' \
171171
--header 'Accept: application/json' \
172-
--header 'Authorization: <TOKEN>' \
172+
--header 'Authorization: Bearer <TOKEN>' \
173173
--data '{
174174
"id": "don:core:dvrv-us-1:devo/demo:custom_object/campaign/1",
175175
"custom_fields": {
@@ -187,7 +187,7 @@ The following example deletes the previously created campaign custom object:
187187
curl --location 'https://api.devrev.ai/custom-objects.delete' \
188188
--header 'Content-Type: application/json' \
189189
--header 'Accept: application/json' \
190-
--header 'Authorization: <TOKEN>' \
190+
--header 'Authorization: Bearer <TOKEN>' \
191191
--data '{
192192
"id": "don:core:dvrv-us-1:devo/demo:custom_object/campaign/1"
193193
}'
@@ -204,7 +204,7 @@ in the account tenant schema.
204204
curl --location 'https://api.devrev.ai/schemas.custom.set' \
205205
--header 'Content-Type: application/json' \
206206
--header 'Accept: application/json' \
207-
--header 'Authorization: <TOKEN>' \
207+
--header 'Authorization: Bearer <TOKEN>' \
208208
--data '{
209209
"type": "tenant_fragment",
210210
"description": "Tenant attributes for Account",
@@ -234,7 +234,7 @@ campaign custom object with subtype "social_media", you can do so as follows:
234234
curl --location 'https://api.devrev.ai/custom-objects.create' \
235235
--header 'Content-Type: application/json' \
236236
--header 'Accept: application/json' \
237-
--header 'Authorization: <TOKEN>' \
237+
--header 'Authorization: Bearer <TOKEN>' \
238238
--data '{
239239
"leaf_type": "campaign",
240240
"custom_schema_spec": {
@@ -253,4 +253,3 @@ curl --location 'https://api.devrev.ai/custom-objects.create' \
253253
"unique_key": "CAMP-001"
254254
}'
255255
```
256-

fern/docs/pages/customization.mdx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Make sure to replace `<TOKEN>` with your API token.
6161
```curl
6262
curl --location 'https://api.devrev.ai/schemas.custom.set' \
6363
--header 'Content-Type: application/json' \
64-
--header 'Authorization: <TOKEN>' \
64+
--header 'Authorization: Bearer <TOKEN>' \
6565
--data '{
6666
"type": "custom_type_fragment",
6767
"description": "Attributes for tracking a bug",
@@ -105,7 +105,7 @@ _bug_-flavored _issue_ object to track it and assigns a relevant owner.
105105
```curl {11-17}
106106
curl --location 'https://api.devrev.ai/works.create' \
107107
--header 'Content-Type: application/json' \
108-
--header 'Authorization: <TOKEN>' \
108+
--header 'Authorization: Bearer <TOKEN>' \
109109
--data '{
110110
"type": "issue",
111111
"title": "API failure in Prod",
@@ -138,7 +138,7 @@ a subtype-specific field.
138138
```curl
139139
curl --location 'https://api.devrev.ai/schemas.custom.set' \
140140
--header 'Content-Type: application/json' \
141-
--header 'Authorization: <TOKEN>' \
141+
--header 'Authorization: Bearer <TOKEN>' \
142142
--data '{
143143
"type": "tenant_fragment",
144144
"description": "Tenant attributes for issues",
@@ -160,7 +160,7 @@ Populate the release notes in the issue object created above:
160160
```curl {8-13}
161161
curl --location 'https://api.devrev.ai/works.update' \
162162
--header 'Content-Type: application/json' \
163-
--header 'Authorization: <TOKEN>' \
163+
--header 'Authorization: Bearer <TOKEN>' \
164164
--data '{
165165
"id": "don:core:dvrv-us-1:devo/test:issue/1",
166166
"type": "issue",
@@ -239,7 +239,7 @@ to `true` and _impacted_environments_ containing `"Prod"`.
239239
```curl
240240
curl --location 'https://api.devrev.ai/works.list' \
241241
--header 'Content-Type: application/json' \
242-
--header 'Authorization: <TOKEN>' \
242+
--header 'Authorization: Bearer <TOKEN>' \
243243
--data '{
244244
"type": [ "issue" ],
245245
"issue": {
@@ -275,7 +275,7 @@ and delete the _regression_ field.
275275
```curl {28-36}
276276
curl --location 'https://api.devrev.ai/schemas.custom.set' \
277277
--header 'Content-Type: application/json' \
278-
--header 'Authorization: <TOKEN>' \
278+
--header 'Authorization: Bearer <TOKEN>' \
279279
--data '{
280280
"type": "custom_type_fragment",
281281
"description": "Attributes for tracking a bug",
@@ -359,7 +359,7 @@ _regression_ field is dropped in the response.
359359
```curl {16-18, 21}
360360
curl --location 'https://api.devrev.ai/works.get' \
361361
--header 'Content-Type: application/json' \
362-
--header 'Authorization: <TOKEN>' \
362+
--header 'Authorization: Bearer <TOKEN>' \
363363
--data '{
364364
"id": "don:core:dvrv-us-1:devo/test:issue/2"
365365
}'
@@ -414,7 +414,7 @@ organization:
414414
```curl
415415
curl --location 'https://api.devrev.ai/schemas.custom.list' \
416416
--header 'Content-Type: application/json' \
417-
--header 'Authorization: <TOKEN>'
417+
--header 'Authorization: Bearer <TOKEN>'
418418
```
419419

420420
Deprecated fragments aren't listed in the response.
@@ -458,7 +458,7 @@ fragment with the following payload:
458458
```curl
459459
curl --location 'https://api.devrev.ai/internal/schemas.custom.set' \
460460
--header 'Content-Type: application/json' \
461-
--header 'Authorization: <TOKEN>' \
461+
--header 'Authorization: Bearer <TOKEN>' \
462462
--data '{
463463
"type": "tenant_fragment",
464464
"leaf_type": "issue",
@@ -540,7 +540,7 @@ You want to add a new stage _Needs RCA_ to the _bug_ subtype.
540540
```curl
541541
curl --location 'https://api.devrev.ai/stages.custom.create' \
542542
--header 'Content-Type: application/json' \
543-
--header 'Authorization: <TOKEN>' \
543+
--header 'Authorization: Bearer <TOKEN>' \
544544
--data '{
545545
"name": "Needs RCA",
546546
"state": "closed",
@@ -581,7 +581,7 @@ backl --> dev --> rca --> compl
581581
```curl {11}
582582
curl --location 'https://api.devrev.ai/stage-diagrams.create' \
583583
--header 'Content-Type: application/json' \
584-
--header 'Authorization: <TOKEN>' \
584+
--header 'Authorization: Bearer <TOKEN>' \
585585
--data '{
586586
"leaf_type": "issue",
587587
"subtype": "bug",
@@ -629,7 +629,7 @@ The stage diagram created above can be referenced in the _bug_ subtype as follow
629629
```curl {9}
630630
curl --location 'https://api.devrev.ai/schemas.custom.set' \
631631
--header 'Content-Type: application/json' \
632-
--header 'Authorization: <TOKEN>' \
632+
--header 'Authorization: Bearer <TOKEN>' \
633633
--data '{
634634
"type": "custom_type_fragment",
635635
"leaf_type": "issue",
@@ -654,7 +654,7 @@ _completed_ stage by adding a dependent field constraint.
654654
```curl {12-22}
655655
curl --location 'https://api.devrev.ai/schemas.custom.set' \
656656
--header 'Content-Type: application/json' \
657-
--header 'Authorization: <TOKEN>' \
657+
--header 'Authorization: Bearer <TOKEN>' \
658658
--data '{
659659
"type": "custom_type_fragment",
660660
"leaf_type": "issue",

fern/docs/pages/interact-agent.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The DevRev async API enables you to execute agents without any execution timeout
77
- Ability to handle long-running agent tasks.
88

99
<Callout type="note">
10-
In any unlikely and unforeseen circumstances, if an individual operation of the workflow times out, you do not receive an error event right now to notify that you should not wait for any more messages. It is better to have a client side timeout for now while the issue is brainstormed and fixed for you.
10+
In any unlikely and unforeseen circumstances, if an individual operation of the workflow times out, you do not receive an error event right now to notify that you should not wait for any more messages. It is better to have a client side timeout for now while the issue is brainstormed and fixed for you.
1111
</Callout>
1212

1313
## Set up webhook
@@ -18,7 +18,7 @@ Before using the async API, you need to create a webhook to receive agent execut
1818
```bash
1919
curl --location 'https://api.devrev.ai/internal/webhooks.create' \
2020
--header 'Content-Type: application/json' \
21-
--header 'Authorization: <YOUR_API_TOKEN>' \
21+
--header 'Authorization: Bearer <YOUR_API_TOKEN>' \
2222
--data '{
2323
"url": "https://your-application.com/webhook-endpoint",
2424
"event_types": ["ai_agent_response"],
@@ -86,7 +86,7 @@ You should follow the documentation provided for webhooks [here](https://develop
8686
curl --location 'https://api.devrev.ai/internal/ai-agents.events.execute-async' \
8787
--header 'Content-Type: application/json' \
8888
--header 'Accept: application/json' \
89-
--header 'Authorization: <YOUR_API_KEY>' \
89+
--header 'Authorization: Bearer <YOUR_API_KEY>' \
9090
--data '{
9191
"agent": "don:core:dvrv-us-1:devo/0:ai_agent/1",
9292
"event": {
@@ -131,7 +131,7 @@ You should follow the documentation provided for webhooks [here](https://develop
131131
}
132132
})
133133
});
134-
134+
135135
return await response.json();
136136
};
137137
```
@@ -276,7 +276,7 @@ function handleUserMessage(message) {
276276
method: "POST",
277277
headers: {
278278
"Content-Type": "application/json",
279-
Authorization: "YOUR_API_KEY",
279+
Authorization: Bearer "YOUR_API_KEY",
280280
},
281281
body: JSON.stringify({
282282
agent: "your_agent_id",
@@ -342,7 +342,7 @@ If you're using DevRev workflows:
342342
Agent node.
343343
</Callout>
344344

345-
1. Add the "Talk To Agent" node to your workflow
345+
1. Add the "Talk To Agent" node to your workflow
346346
2. Configure it with your agent ID
347347
3. Connect it to response nodes to process the agent's output
348348
4. The async API is used automatically by the workflow engine

fern/docs/pages/timeline-entries.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You can use this to send any information about a customer like their last logged
99

1010
To send a restricted visibility message, follow the steps listed below:
1111

12-
The payload to make a request would look like given below:
12+
The payload to make a request would look like given below:
1313

1414
<CodeBlock title="Payload">
1515
```json {4-6}
@@ -20,12 +20,12 @@ The payload to make a request would look like given below:
2020
"private_to": [<list of user IDs>],
2121
"type": "timeline_comment"
2222
}
23-
```
23+
```
2424
</CodeBlock>
2525

2626
* `object` must be of type string and contains `<partition>`, `<dev-org-id>`, and `<object-id>`.
2727
* `body` is of type string and contains the actual message to be posted.
28-
* `visibility` is set to `private` in order for the message to be visible only to users, `internal` is visible with the Dev organization, `external` is visible to the Dev organzation and customers, and `public` is visible to all.
28+
* `visibility` is set to `private` in order for the message to be visible only to users, `internal` is visible with the Dev organization, `external` is visible to the Dev organzation and customers, and `public` is visible to all.
2929
* `type` should be `timeline_comment`.
3030

3131
1. Get the [object ID](/api-reference/getting-started) and object type where you want to send a message.
@@ -44,15 +44,15 @@ In this example, you are using curl to make the requests but you can use any too
4444

4545
<CodeBlock title="Request">
4646
```bash
47-
curl -X POST -H "Content-Type: application/json" -d
47+
curl -X POST -H "Content-Type: application/json" -d
4848
'{
4949
"object": "don:core:<partition>:devo/<dev-org-id>:<object-type>/<object-id>",
5050
"body": "message",
5151
"visibility": "private",
5252
"type": "timeline_comment"
53-
}'
53+
}'
5454
'https://api.devrev.ai/timeline-entries.create' \
55-
--header 'Authorization: <PAT>'
55+
--header 'Authorization: Bearer <PAT>'
5656
```
5757
</CodeBlock>
5858

0 commit comments

Comments
 (0)