Retrieve profile for specific code
Last update: March 26, 2025
- Topics:
- Authentication
The content on this page is provided for information purposes only. Usage of this API requires a current license from Adobe. No unauthorized use is permitted.
REST API V2 implementation is bounded by the Throttling mechanism documentation.
Related Articles
Make sure to also visit the REST API V2 FAQs.
Request
HTTP
path
/api/v2/{serviceProvider}/profiles/code/{code}
method
GET
Path Parameters
serviceProvider
The internal unique identifier associated with the Service Provider during onboarding process.
required
code
The authentication code obtained after creating the authentication session on the streaming device.
required
Headers
Authorization
The generation of the bearer token payload is described in the Authorization header documentation.
required
X-Forwarded-For
The IP address of the streaming device.
It is strongly recommended to always use it for server to server implementations, particularly when the call is made by the programmer service rather than the streaming device.
For client to server implementations, the IP address of the streaming device is sent implicitly.
It is strongly recommended to always use it for server to server implementations, particularly when the call is made by the programmer service rather than the streaming device.
For client to server implementations, the IP address of the streaming device is sent implicitly.
optional
AP-TempPass-Identity
The generation of the user unique identifier payload is described in the AP-TempPass-Identity header documentation.
optional
Accept
The media type accepted by the client application.
If specified, it must be application/json.
If specified, it must be application/json.
optional
User-Agent
The user agent of the client application.
optional
Response
Code
Text
Description
200
OK
The response body contains a map of valid profiles, which may be empty.
400
Bad Request
The request is invalid, the client needs to correct the request and try again. The response body may contain error information that adheres to the Enhanced Error Codes documentation.
401
Unauthorized
The access token is invalid, the client needs to obtain a new access token and try again. For more details refer to the Dynamic Client Registration Overview documentation.
403
Forbidden
The temporary access time-to-live (TTL) is expired or maximum number of resources is exceeded, the client needs to indicate the user to initiate a basic authentication flow using a regular MVPD. The response body may contain error information that adheres to the Enhanced Error Codes documentation.
405
Method Not Allowed
The HTTP method is invalid, the client needs to use an HTTP method that is permitted for the requested resource and try again. For more details refer to the Request section.
500
Internal Server Error
The server side encountered an issue. The response body may contain error information that adheres to the Enhanced Error Codes documentation.
Success
Headers
Status
200
required
Content-Type
application/json
required
Body
profiles
JSON containing a map of key, value pairs.
The key element is defined by the following value:
Value
mvpd
The internal unique identifier associated with the Identity Provider during onboarding process.
required
The value element is defined by the following attributes:
Attribute
notBefore
The timestamp before which the profile is not valid.
required
notAfter
The timestamp after which the profile is not valid.
required
issuer
The entity that owns the profile.
The possible values are:
- mvpd (e.g., Spectrum, Cablevision, etc.)
The profile was created as a result of: basic authentication. - Adobe
The profile was created as a result of: degraded access, temporary access.
required
type
The type of the profile.
The possible values are:
- regular
The profile was created as a result of: basic authentication. - degraded
The profile was created as a result of: degraded access. - temporary
The profile was created as a result of: temporary access.
required
attributes
JSON containing a map of key, value pairs.
The key element is defined by user metadata attributes and can be:
- Mandatory, like 'userID'
- Non-mandatory, like 'zip', 'householdID', 'maxRating', etc.
The values for the attributes can be:
- simple
- list
- map
User metadata becomes available after the authentication flow completes, but certain metadata attributes may be updated during the authorization flow, depending on the MVPD and the specific metadata attribute in question.
required
required
Error
Headers
Status
400, 401, 403, 405, 500
required
Content-Type
application/json
required
Body
The response body may provide additional error information that adheres to the Enhanced Error Codes documentation.
required
Samples
1. Retrieve profile for specific code obtained through basic authentication
Request
GET /api/v2/REF30/profiles/code/XTC98W HTTP/1.1
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjNGZjM2U3ZS0xMmQ5LTQ5NWQtYjc0Mi02YWVhYzhhNDkwZTciLCJuYmYiOjE3MjQwODc4NjgsImlzcyI6ImF1dGguYWRvYmUuY29tIiwic2NvcGVzIjoiYXBpOmNsaWVudDp2MiIsImV4cCI6MTcyNDEwOTQ2OCwiaWF0IjoxNzI0MDg3ODY4fQ.DJ9GFl_yKAp2Qw-NVcBeRSnxIhqrwxhns5T5jU31N2tiHxCucKLSQ5guBygqkkJx6D0N_93f50meEEyfb7frbHhVHHwmRjHYjkfrWqHCpviwVjVZKKwl8Y3FEMb0bjKIB8p_E3txX9IbzeNGWRufZBRh2sxB5Q9B7XYINpVfh8s_sFvskrbDu5c01neCx5kEagEW5CtE0_EXTgEb5FSr_SfQG3UUu_iwlkOggOh_kOP_5GueElf9jn-bYBMnpObyN5s-FzuHDG5Rtac5rvcWqVW2reEqFTHqLI4rVC7UKQb6DSvPBPV4AgrutAvk30CYgDsOQILVyrjniincp7r9Ww
Accept: application/json
User-Agent: Mozilla/5.0 (Apple TV; U; CPU AppleTV5,3 OS 11.0 like Mac OS X; en_US)
Response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"profiles": {
"Cablevision": {
"notBefore": 1623943955,
"notAfter": 1623951155,
"issuer": "Cablevision",
"type": "regular",
"attributes": {
"userID": {
"value": "BASE64_value_userId",
"state": "plain"
},
"householdID": {
"value": "BASE64_value_householdId",
"state": "plain"
},
"zip": {
"value": "BASE64_value_zip",
"state": "enc"
}
}
}
}
}
2. Retrieve profile for specific code while basic TempPass is selected
Request
GET /api/v2/REF30/profiles/code/XTC98W HTTP/1.1
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjNGZjM2U3ZS0xMmQ5LTQ5NWQtYjc0Mi02YWVhYzhhNDkwZTciLCJuYmYiOjE3MjQwODc4NjgsImlzcyI6ImF1dGguYWRvYmUuY29tIiwic2NvcGVzIjoiYXBpOmNsaWVudDp2MiIsImV4cCI6MTcyNDEwOTQ2OCwiaWF0IjoxNzI0MDg3ODY4fQ.DJ9GFl_yKAp2Qw-NVcBeRSnxIhqrwxhns5T5jU31N2tiHxCucKLSQ5guBygqkkJx6D0N_93f50meEEyfb7frbHhVHHwmRjHYjkfrWqHCpviwVjVZKKwl8Y3FEMb0bjKIB8p_E3txX9IbzeNGWRufZBRh2sxB5Q9B7XYINpVfh8s_sFvskrbDu5c01neCx5kEagEW5CtE0_EXTgEb5FSr_SfQG3UUu_iwlkOggOh_kOP_5GueElf9jn-bYBMnpObyN5s-FzuHDG5Rtac5rvcWqVW2reEqFTHqLI4rVC7UKQb6DSvPBPV4AgrutAvk30CYgDsOQILVyrjniincp7r9Ww
Accept: application/json
User-Agent: Mozilla/5.0 (Apple TV; U; CPU AppleTV5,3 OS 11.0 like Mac OS X; en_US)
Response - Available
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"profiles": {
"TempPass_TEST40": {
"notBefore": 1697718650206,
"notAfter": 1697718710206,
"issuer": "Adobe",
"type": "temporary",
"attributes": {
"expiration_date": {
"value": 1697718710206,
"state": "plain"
},
"userID": {
"value": "temppass_0bdf451aa9c8fa60e80f6b99ab48310c73b480f1",
"state": "plain"
}
}
}
}
}
Response - Duration Limit Exceeded
HTTP/1.1 403 Forbidden
Content-Type: application/json;charset=UTF-8
{
"status": 403,
"code": "temporary_access_duration_limit_exceeded",
"message": "The temporary access duration limit has been exceeded.",
"helpUrl": "https://experienceleague.adobe.com/docs/pass/authentication/auth-features/error-reportn/enhanced-error-codes.html",
"action": "authentication"
}
Response - Invalid Configuration
HTTP/1.1 500 Internal Server Error
Content-Type: application/json;charset=UTF-8
{
"status": 500,
"code": "invalid_configuration_temporary_access",
"message": "The temporary access configuration is invalid.",
"helpUrl": "https://experienceleague.adobe.com/docs/pass/authentication/auth-features/error-reportn/enhanced-error-codes.html",
"action": "configuration"
}
3. Retrieve profile for specific code while promotional TempPass is selected
Request
GET /api/v2/REF30/profiles/code/XTC98W HTTP/1.1
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjNGZjM2U3ZS0xMmQ5LTQ5NWQtYjc0Mi02YWVhYzhhNDkwZTciLCJuYmYiOjE3MjQwODc4NjgsImlzcyI6ImF1dGguYWRvYmUuY29tIiwic2NvcGVzIjoiYXBpOmNsaWVudDp2MiIsImV4cCI6MTcyNDEwOTQ2OCwiaWF0IjoxNzI0MDg3ODY4fQ.DJ9GFl_yKAp2Qw-NVcBeRSnxIhqrwxhns5T5jU31N2tiHxCucKLSQ5guBygqkkJx6D0N_93f50meEEyfb7frbHhVHHwmRjHYjkfrWqHCpviwVjVZKKwl8Y3FEMb0bjKIB8p_E3txX9IbzeNGWRufZBRh2sxB5Q9B7XYINpVfh8s_sFvskrbDu5c01neCx5kEagEW5CtE0_EXTgEb5FSr_SfQG3UUu_iwlkOggOh_kOP_5GueElf9jn-bYBMnpObyN5s-FzuHDG5Rtac5rvcWqVW2reEqFTHqLI4rVC7UKQb6DSvPBPV4AgrutAvk30CYgDsOQILVyrjniincp7r9Ww
AP-TempPass-Identity: eyJlbWFpbCI6ImZvb0BiYXIuY29tIn0=
Accept: application/json
User-Agent: Mozilla/5.0 (Apple TV; U; CPU AppleTV5,3 OS 11.0 like Mac OS X; en_US)
Response - Available
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"profiles": {
"flexibleTempPass": {
"notBefore": 1697720528524,
"notAfter": 1697720588524,
"issuer": "Adobe",
"type": "temporary",
"attributes": {
"remaining_resources": {
"value": 1,
"state": "plain"
},
"used_assets": {
"value": [
"res04",
"res02",
"res03",
"res01"
],
"state": "plain"
},
"expiration_date": {
"value": 1697720528524,
"state": "plain"
},
"userID": {
"value": "temppass_0bdf451aa9c8fa60e80f6b99ab48310c73b480f1",
"state": "plain"
}
}
}
}
}
Response - Duration Limit Exceeded
HTTP/1.1 403 Forbidden
Content-Type: application/json;charset=UTF-8
{
"status": 403,
"code": "temporary_access_duration_limit_exceeded",
"message": "The temporary access duration limit has been exceeded.",
"helpUrl": "https://experienceleague.adobe.com/docs/pass/authentication/auth-features/error-reportn/enhanced-error-codes.html",
"action": "authentication"
}
Response - Resources Limit Exceeded
HTTP/1.1 403 Forbidden
Content-Type: application/json;charset=UTF-8
{
"status": 403,
"code": "temporary_access_resources_limit_exceeded",
"message": "The temporary access resources limit has been exceeded.",
"helpUrl": "https://experienceleague.adobe.com/docs/pass/authentication/auth-features/error-reportn/enhanced-error-codes.html",
"action": "authentication"
}
Response - Invalid Configuration
HTTP/1.1 500 Internal Server Error
Content-Type: application/json;charset=UTF-8
{
"status": 500,
"code": "invalid_configuration_temporary_access",
"message": "The temporary access configuration is invalid.",
"helpUrl": "https://experienceleague.adobe.com/docs/pass/authentication/auth-features/error-reportn/enhanced-error-codes.html",
"action": "configuration"
}
Response - Invalid Identity
HTTP/1.1 400 Bad Request
Content-Type: application/json;charset=UTF-8
{
"status": 400,
"code": "invalid_header_identity_for_temporary_access",
"message": "The identity for temporary access header value is missing or invalid.",
"helpUrl": "https://experienceleague.adobe.com/docs/pass/authentication/auth-features/error-reportn/enhanced-error-codes.html",
"action": "none"
}
4. Retrieve profile for specific code while degradation is applied
Request
GET /api/v2/REF30/profiles/code/XTC98W HTTP/1.1
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjNGZjM2U3ZS0xMmQ5LTQ5NWQtYjc0Mi02YWVhYzhhNDkwZTciLCJuYmYiOjE3MjQwODc4NjgsImlzcyI6ImF1dGguYWRvYmUuY29tIiwic2NvcGVzIjoiYXBpOmNsaWVudDp2MiIsImV4cCI6MTcyNDEwOTQ2OCwiaWF0IjoxNzI0MDg3ODY4fQ.DJ9GFl_yKAp2Qw-NVcBeRSnxIhqrwxhns5T5jU31N2tiHxCucKLSQ5guBygqkkJx6D0N_93f50meEEyfb7frbHhVHHwmRjHYjkfrWqHCpviwVjVZKKwl8Y3FEMb0bjKIB8p_E3txX9IbzeNGWRufZBRh2sxB5Q9B7XYINpVfh8s_sFvskrbDu5c01neCx5kEagEW5CtE0_EXTgEb5FSr_SfQG3UUu_iwlkOggOh_kOP_5GueElf9jn-bYBMnpObyN5s-FzuHDG5Rtac5rvcWqVW2reEqFTHqLI4rVC7UKQb6DSvPBPV4AgrutAvk30CYgDsOQILVyrjniincp7r9Ww
Accept: application/json
User-Agent: Mozilla/5.0 (Apple TV; U; CPU AppleTV5,3 OS 11.0 like Mac OS X; en_US)
Response - AuthNAll Degradation
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"profiles": {
"${degradedMvpd}": {
"notBefore": 1697719042666,
"notAfter": 1697719102666,
"issuer": "Adobe",
"type": "degraded",
"attributes":
"userID": {
"value": "95cf93bcd183214a0bdf451aa9c8fa60e80f6b99ab48310c73b480f1",
"state": "plain"
}
}
}
}
}
95cf93bcd183214a
is a degradation specific prefix.recommendation-more-help
3f5e655c-af63-48cc-9769-2b6803cc5f4b