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: README.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
@@ -1,4 +1,4 @@
1
-
# UID2 Documentation
1
+
# UID2 documentation
2
2
3
3
> Note: The new location for viewing UID2 documentation content is on the Unified ID website: [Unified ID 2.0 Overview](https://unifiedid.com/docs/intro).
Used by: This endpoint is used mainly by advertisers and data providers. For details, see [Advertiser/Data Provider Integration Overview](../guides/integration-advertiser-dataprovider-overview.md).
15
+
Used by: This endpoint is used mainly by advertisers and data providers. For details, see [Advertiser/data provider integration overview](../guides/integration-advertiser-dataprovider-overview.md).
16
16
17
17
:::important
18
18
If you're using the latest version (v3) of `POST /v3/identity/map`, you don't need to use `POST /identity/buckets` at all. You only need to use it if you're using the earlier version (v2) of `POST /v2/identity/map`.
19
19
20
20
If you're using the v2 version, we recommend that you upgrade as soon as possible, to take advantage of improvements. For migration guidance, see [Migration from POST /v2/identity/map](post-identity-map.md#migration-from-post-v2identitymap).
21
21
:::
22
22
23
-
## Request Format
23
+
## Request format
24
24
25
25
`POST '{environment}/v2/identity/buckets'`
26
26
27
-
For authentication details, see [Authentication and Authorization](../getting-started/gs-auth.md).
27
+
For authentication details, see [Authentication and authorization](../getting-started/gs-auth.md).
28
28
29
29
:::important
30
-
You must encrypt all requests using your secret. For details, and code examples in different programming languages, see [Encrypting Requests and Decrypting Responses](../getting-started/gs-encryption-decryption.md).
30
+
You must encrypt all requests using your secret. For details, and code examples in different programming languages, see [Encrypting requests and decrypting responses](../getting-started/gs-encryption-decryption.md).
31
31
:::
32
32
33
-
### Path Parameters
33
+
### Path parameters
34
34
35
35
| Path Parameter | Data Type | Attribute | Description |
36
36
| :--- | :--- | :--- | :--- |
37
37
|`{environment}`| string | Required | Testing (integration) environment: `https://operator-integ.uidapi.com`<br/>Production environment: The best choice depends on where your users are based. For information about how to choose the best URL for your use case, and a full list of valid base URLs, see [Environments](../getting-started/gs-environments.md). |
38
38
39
39
:::note
40
-
The integration environment and the production environment require different <Linkhref="../ref-info/glossary-uid#gl-api-key">API keys</Link>. For information about getting credentials for each environment, see [Getting Your Credentials](../getting-started/gs-credentials.md#getting-your-credentials).
40
+
The integration environment and the production environment require different <Linkhref="../ref-info/glossary-uid#gl-api-key">API keys</Link>. For information about getting credentials for each environment, see [Getting your credentials](../getting-started/gs-credentials.md#getting-your-credentials).
41
41
:::
42
42
43
-
### Unencrypted JSON Body Parameters
43
+
### Unencrypted JSON body parameters
44
44
45
45
:::important
46
46
You must include the following parameter as a key-value pair in the JSON body of a request when encrypting it.
@@ -50,7 +50,7 @@ You must include the following parameter as a key-value pair in the JSON body of
50
50
| :--- | :--- | :--- | :--- | :--- |
51
51
|`since_timestamp`| date-time or integer | Required | Specify the date and time to which to compare the last updated UTC timestamps of the buckets to be returned. | ISO 8601 format:<br/>`YYYY-MM-DDThh:mm:ss`|
52
52
53
-
### Request Examples
53
+
### Request examples
54
54
55
55
The following is an unencrypted JSON request body example, which you should include in your identity bucket rotation requests:
For details, and code examples in different programming languages, see [Encrypting Requests and Decrypting Responses](../getting-started/gs-encryption-decryption.md).
68
+
For details, and code examples in different programming languages, see [Encrypting requests and decrypting responses](../getting-started/gs-encryption-decryption.md).
69
69
70
-
## Decrypted JSON Response Format
70
+
## Decrypted JSON response format
71
71
72
72
:::note
73
73
The response is encrypted only if the HTTP status code is 200. Otherwise, the response is not encrypted.
@@ -94,7 +94,7 @@ A successful decrypted response returns a list of salt bucket IDs and the timest
94
94
"status":"success"
95
95
}
96
96
```
97
-
### Response Body Properties
97
+
### Response body properties
98
98
99
99
The response body includes the properties shown in the following table.
100
100
@@ -103,7 +103,7 @@ The response body includes the properties shown in the following table.
103
103
|`bucket_id`| string | The salt bucket ID. |
104
104
|`last_updated`| date-time | The UTC timestamp of the last time the bucket salt was rotated. |
105
105
106
-
### Response Status Codes
106
+
### Response status codes
107
107
108
108
The following table lists the `status` property values and their HTTP status code equivalents.
Copy file name to clipboardExpand all lines: docs/endpoints/post-identity-map-v2.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,53 +11,53 @@ import Link from '@docusaurus/Link';
11
11
12
12
Maps multiple email addresses, phone numbers, or their respective hashes to their raw UID2s and <Linkhref="../ref-info/glossary-uid#gl-salt-bucket-id">salt bucket IDs</Link>. You can also use this endpoint to check for updates to opt-out information.
13
13
14
-
Used by: This endpoint is used mainly by advertisers and data providers. For details, see [Advertiser/Data Provider Integration Overview](../guides/integration-advertiser-dataprovider-overview.md).
14
+
Used by: This endpoint is used mainly by advertisers and data providers. For details, see [Advertiser/data provider integration overview](../guides/integration-advertiser-dataprovider-overview.md).
15
15
16
-
For details about the UID2 opt-out workflow and how users can opt out, see [User Opt-Out](../getting-started/gs-opt-out.md).
16
+
For details about the UID2 opt-out workflow and how users can opt out, see [User opt-out](../getting-started/gs-opt-out.md).
17
17
18
18
## Version
19
19
20
20
This documentation is for version 2 of this endpoint, which is not the latest version. For the latest version, v3, see [POST /v3/identity/map](post-identity-map.md).
21
21
22
22
:::note
23
-
If you're using an earlier version, we recommend that you upgrade as soon as possible, to take advantage of improvements. For migration guidance, see [Migration from POST /v2/identity/map](post-identity-map.md#migration-from-post-v2identitymap). For deprecation information, see [Deprecation Schedule: Endpoint Versions](../ref-info/deprecation-schedule.md#endpoint-versions).
23
+
If you're using an earlier version, we recommend that you upgrade as soon as possible, to take advantage of improvements. For migration guidance, see [Migration from POST /v2/identity/map](post-identity-map.md#migration-from-post-v2identitymap). For deprecation information, see [Deprecation schedule: Endpoint versions](../ref-info/deprecation-schedule.md#endpoint-versions).
24
24
:::
25
25
26
-
## Batch Size and Request Parallelization Requirements
26
+
## Batch size and request parallelization requirements
27
27
28
28
Here's what you need to know:
29
29
30
30
- The maximum request size is 1MB.
31
31
- To map a large number of email addresses, phone numbers, or their respective hashes, send them in batches with a maximum of 5,000 items per batch. We recommend sending no more than 20 batches in parallel.
32
-
- Be sure to store mappings of email addresses, phone numbers, or their respective hashes.<br/>Not storing mappings could increase processing time drastically when you have to map millions of email addresses or phone numbers. Recalculating only those mappings that actually need to be updated, however, reduces the total processing time because only about 1/365th of raw UID2s need to be updated daily. See also [Advertiser/Data Provider Integration Overview](../guides/integration-advertiser-dataprovider-overview.md) and [FAQs for Advertisers and Data Providers](../getting-started/gs-faqs.md#faqs-for-advertisers-and-data-providers).
32
+
- Be sure to store mappings of email addresses, phone numbers, or their respective hashes.<br/>Not storing mappings could increase processing time drastically when you have to map millions of email addresses or phone numbers. Recalculating only those mappings that actually need to be updated, however, reduces the total processing time because only about 1/365th of raw UID2s need to be updated daily. See also [Advertiser/data provider integration overview](../guides/integration-advertiser-dataprovider-overview.md) and [FAQs for advertisers and data providers](../getting-started/gs-faqs.md#faqs-for-advertisers-and-data-providers).
33
33
34
-
## Rate Limiting
34
+
## Rate limiting
35
35
36
36
To ensure fair usage and platform stability, the `POST /v2/identity/map` endpoint enforces rate limits to safeguard against bursts of incoming traffic. If you send many requests in quick succession, you might receive `429` error responses.
37
37
38
38
To handle rate limit errors gracefully, we recommend implementing [exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff) with random jitter when retrying requests. To maximize throughput within the limit, use the maximum batch size of 5,000 items per request rather than sending many small requests.
39
39
40
-
## Request Format
40
+
## Request format
41
41
42
42
`POST '{environment}/v2/identity/map'`
43
43
44
-
For authentication details, see [Authentication and Authorization](../getting-started/gs-auth.md).
44
+
For authentication details, see [Authentication and authorization](../getting-started/gs-auth.md).
45
45
46
46
:::important
47
-
You must encrypt all requests using your secret. For details, and code examples in different programming languages, see [Encrypting Requests and Decrypting Responses](../getting-started/gs-encryption-decryption.md).
47
+
You must encrypt all requests using your secret. For details, and code examples in different programming languages, see [Encrypting requests and decrypting responses](../getting-started/gs-encryption-decryption.md).
48
48
:::
49
49
50
-
### Path Parameters
50
+
### Path parameters
51
51
52
52
| Path Parameter | Data Type | Attribute | Description |
53
53
| :--- | :--- | :--- | :--- |
54
54
|`{environment}`| string | Required | Testing (integration) environment: `https://operator-integ.uidapi.com`<br/>Production environment: The best choice depends on where your users are based. For information about how to choose the best URL for your use case, and a full list of valid base URLs, see [Environments](../getting-started/gs-environments.md). |
55
55
56
56
:::note
57
-
The integration environment and the production environment require different <Linkhref="../ref-info/glossary-uid#gl-api-key">API keys</Link>. For information about getting credentials for each environment, see [Getting Your Credentials](../getting-started/gs-credentials.md#getting-your-credentials).
57
+
The integration environment and the production environment require different <Linkhref="../ref-info/glossary-uid#gl-api-key">API keys</Link>. For information about getting credentials for each environment, see [Getting your credentials](../getting-started/gs-credentials.md#getting-your-credentials).
58
58
:::
59
59
60
-
### Unencrypted JSON Body Parameters
60
+
### Unencrypted JSON body parameters
61
61
62
62
:::important
63
63
You must include only **one** of the following four conditional parameters as a key-value pair in the JSON body of the request when encrypting it.
@@ -70,7 +70,7 @@ You must include only **one** of the following four conditional parameters as a
70
70
|`phone`| string array | Conditionally Required | The list of [normalized](../getting-started/gs-normalization-encoding.md#phone-number-normalization) phone numbers to be mapped. |
71
71
|`phone_hash`| string array | Conditionally Required | The list of [Base64-encoded SHA-256](../getting-started/gs-normalization-encoding.md#phone-number-hash-encoding) hashes of [normalized](../getting-started/gs-normalization-encoding.md#phone-number-normalization) phone numbers to be mapped. |
72
72
73
-
### Request Examples
73
+
### Request examples
74
74
75
75
The following are unencrypted JSON request body examples for each parameter, one of which you should include in your requests to the `POST /v2/identity/map` endpoint:
76
76
@@ -113,9 +113,9 @@ Here's an encrypted request example to the `POST /v2/identity/map` endpoint for
For details, and code examples in different programming languages, see [Encrypting Requests and Decrypting Responses](../getting-started/gs-encryption-decryption.md).
116
+
For details, and code examples in different programming languages, see [Encrypting requests and decrypting responses](../getting-started/gs-encryption-decryption.md).
117
117
118
-
## Decrypted JSON Response Format
118
+
## Decrypted JSON response format
119
119
120
120
:::note
121
121
The response is encrypted only if the HTTP status code is 200. Otherwise, the response is not encrypted.
@@ -189,7 +189,7 @@ If some identifiers have opted out from the UID2 ecosystem, the opted-out identi
189
189
}
190
190
```
191
191
192
-
### Response Body Properties
192
+
### Response body properties
193
193
194
194
The response body includes the properties shown in the following table.
195
195
@@ -199,7 +199,7 @@ The response body includes the properties shown in the following table.
199
199
|`advertising_id`| string | The corresponding advertising ID (raw UID2). |
200
200
|`bucket_id`| string | The ID of the salt bucket used to generate the raw UID2. |
201
201
202
-
### Response Status Codes
202
+
### Response status codes
203
203
204
204
The following table lists the `status` property values and their HTTP status code equivalents.
0 commit comments