Skip to content

Commit 8e57486

Browse files
Update metadata.md
1 parent 93315fe commit 8e57486

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

metadata.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
You can send custom metadata along with your API requests in Portkey, which can be later used for auditing or filtering logs. Portkey provides four predefined keys: `_environment`, `_user`, `_organisation`, and `_prompt`. These predefined keys are indexed and allow for filtering data in Portkey analytics and logs sections. You can still pass any other metadata key you desire, but these four predefined keys will be indexed and will be available for filtering data in Portkey.
44

5+
All predefined keys should be of type String, with max-length as 128 characters.
6+
57
## Proxy Metadata
68

79
To include metadata in the proxy requests, you can add an `x-portkey-meta` header with a JSON string containing your metadata. Portkey will parse the JSON object and make it available for filtering.

0 commit comments

Comments
 (0)