تخطَّ إلى المحتوى

واجهة HTTP

POST /ingest/v1/{app_id}/envelope

Send a batch of errors and product events (an Envelope)

يُرسل مع: X-Ingest-Key

المحتوى

الحقل النوع مطلوب
sdk Sdk
items ErrorItem or EventItem[] نعم

الإجابات: 202

POST /ingest/api/{project}/envelope/

Send a Sentry envelope (official Sentry SDKs, set up with the app’s Sentry DSN)

يُرسل مع: X-Sentry-Auth

الإجابات: 200, 429

POST /ingest/api/{project}/store/

Send one Sentry event (older Sentry SDKs)

يُرسل مع: X-Sentry-Auth

الإجابات: 200, 429

POST /ingest/v1/{app_id}/debug-files

Upload a debug file (an R8 mapping, a source map or its minified file, a dSYM object) with the app’s server key

يُرسل مع: authorization

الإجابات: 200, 201

الهوية والأحداث والموافقة

كل حزمة ترسل هوية الشخص وأحداثه وموافقته إلى هنا، بالمفتاح العام نفسه.

POST /sdk/v1/identify

Who the app’s user is; email and phone are hashed on arrival

يُرسل مع: X-User-Hash, X-App-Install, X-App-Key

المحتوى

الحقل النوع مطلوب
external_id string
email string
phone string
email_sha256 string
phone_sha256 string
attributes object

الإجابات: 200

POST /sdk/v1/events

What the identified user did

يُرسل مع: X-User-Hash, X-App-Key

المحتوى

الحقل النوع مطلوب
external_id string نعم
events EventIn[] نعم

الإجابات: 200

PUT /sdk/v1/consent

What the user agreed to, per channel

يُرسل مع: X-User-Hash, X-App-Key

المحتوى

الحقل النوع مطلوب
external_id string نعم
channel push · in_app · email · whatsapp · sms · telegram نعم
granted boolean نعم
occurred_at string (date-time)

الإجابات: 200

POST /sdk/v1/install/events

What the app’s user did before the app identified them

يُرسل مع: X-App-Install, X-App-Key

المحتوى

الحقل النوع مطلوب
events EventIn[] نعم

الإجابات: 200

PUT /sdk/v1/install/consent

What the app’s user agreed to before the app identified them

يُرسل مع: X-App-Install, X-App-Key

المحتوى

الحقل النوع مطلوب
channel push · in_app · email · whatsapp · sms · telegram نعم
granted boolean نعم
occurred_at string (date-time)

الإجابات: 200

POST /server/v1/identify

Create or update a profile by the match rule

يُرسل مع: authorization

المحتوى

الحقل النوع مطلوب
external_id string
email string
phone string
email_sha256 string
phone_sha256 string
attributes object

الإجابات: 200

POST /server/v1/events

Events, each naming its person

يُرسل مع: authorization

المحتوى

الحقل النوع مطلوب
events ServerEventIn[] نعم

الإجابات: 200

POST /server/v1/orders

Orders; one sent again by its order_id is updated

يُرسل مع: authorization

المحتوى

الحقل النوع مطلوب
orders OrderIn[] نعم

الإجابات: 200

PUT /server/v1/consent

What a person agreed to, per channel

يُرسل مع: authorization

المحتوى

الحقل النوع مطلوب
external_id string نعم
channel push · in_app · email · whatsapp · sms · telegram نعم
granted boolean نعم
occurred_at string (date-time)

الإجابات: 200

POST /server/v1/import

A batch of end users as text/csv or application/json (at most 10,000 rows)

يُرسل مع: authorization

الإجابات: 200

GET /server/v1/profiles/{external_id}

A person, by the org’s external id

يُرسل مع: authorization

الإجابات: 200

DELETE /server/v1/profiles/{external_id}

Delete a person and everything about them; every service forgets them too

يُرسل مع: authorization

الإجابات: 204