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: packages/website/pages/docs/how-to/ucan.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,7 +155,7 @@ The `value` field contains the service DID, which is used when [creating request
155
155
156
156
## Sending requests
157
157
158
-
You can send upload requests with UCAN auth token to `https://api.nft.storage/ucan-upload` endpoint. Requests to that endpoint must have additional`x-agent-did` HTTP header with a value set to a DID token was issued/signed by.
158
+
HTTP requests that use UCAN auth token must additionally set`x-agent-did` HTTP header to a DID that issued/signed the token.
Copy file name to clipboardExpand all lines: packages/website/public/schema.yml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,14 @@ paths:
145
145
This API imposes rate limits to ensure quality of service. You may receive a 429 "Too many requests" error if you make more than 30 requests with the same API token within a ten second window. Upon receiving a response with a 429 status, clients should retry the failed request after a small delay. To avoid 429 responses, you may wish to implement client-side request throttling to stay within the limits (note: the JS client automatically does this).
146
146
147
147
operationId: upload
148
+
parameters:
149
+
- in: header
150
+
name: x-agent-did
151
+
description: DID that issued / signed UCAN authorization token (required if UCAN token is used)
0 commit comments