> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zype.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Obtains Short Media Token.

Obtain a short-lived media token for Adobe TVE authentication.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "TVE",
    "description": "",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://tve.zype.com/"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "paths": {
    "/adobe/media_token": {
      "post": {
        "summary": "Obtains Short Media Token.",
        "description": "Obtain a short-lived media token for Adobe TVE authentication.",
        "operationId": "postObtainShortMediaToken",
        "tags": [
          "Adobe"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Obtain Short Media Token",
                "type": "object",
                "required": [
                  "device_session_id",
                  "resource_id"
                ],
                "properties": {
                  "device_session_id": {
                    "type": "string",
                    "description": "The device session ID returned from the Register Adobe Device Session endpoint"
                  },
                  "resource_id": {
                    "type": "string",
                    "description": "A string that contains a resourceId (or MRSS fragment), identifies the content requested by a user and is recognized by MVPD authorization endpoints."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Device session registered successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "serialized_token": {
                      "type": "string",
                      "description": "UUID",
                      "example": "123e4567-e89b-12d3-a456-426614174000"
                    },
                    "expires": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The expiration time of the media token in milliseconds since epoch"
                    }
                  }
                },
                "example": {
                  "serialized_token": "eyJ0eXAiOiJK[...]",
                  "expires": "1348649614000"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1adobe~1authn/post/responses/422/content/application~1json/schema"
                },
                "example": {
                  "message": "Could not fetch media token for resource 'sampleResourceId'",
                  "error_code": "adobe_media_token_not_found"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "api_key",
        "in": "query",
        "description": "The adobe api key"
      }
    }
  }
}
```