{ "info": { "_postman_id": "e87fe42f-693b-487a-886e-17fe353145e5", "name": "X API v2 Account Activity Media API", "description": "X API v2 available endpoints\n\nContact Support:\n Name: X Developers", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "lastUpdatedBy": "35240", "uid": "35240-e87fe42f-693b-487a-886e-17fe353145e5" }, "item": [ { "name": "2", "item": [ { "name": "media", "item": [ { "name": "analytics", "item": [ { "name": "Get Media analytics", "id": "3bc00950-1cd8-4b12-93bf-f77a88bda769", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "block.read bookmark.read bookmark.write dm.read dm.write follows.read follows.write like.read like.write list.read list.write media.write mute.read mute.write offline.access space.read timeline.read tweet.moderate.write tweet.read tweet.write users.read", "type": "string" }, { "key": "accessTokenUrl", "value": "https://api.x.com/2/oauth2/token", "type": "string" }, { "key": "authUrl", "value": "https://api.x.com/2/oauth2/authorize", "type": "string" }, { "key": "grant_type", "value": "authorization_code", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/2/media/analytics?media_keys=23_336&end_time=&start_time=&granularity=daily&media_analytics.fields=video_views", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "analytics" ], "query": [ { "description": "(Required) A comma separated list of Media Keys. Up to 100 are allowed in a single request.", "key": "media_keys", "value": "23_336" }, { "description": "(Required) YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the end of the time range.", "key": "end_time", "value": "" }, { "description": "(Required) YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the start of the time range.", "key": "start_time", "value": "" }, { "description": "(Required) The granularity for the search counts results.", "key": "granularity", "value": "daily" }, { "description": "A comma separated list of MediaAnalytics fields to display.", "key": "media_analytics.fields", "value": "video_views" } ] }, "description": "Retrieves analytics data for media." }, "response": [ { "id": "d48815fd-8a97-40eb-9622-323a1f1c7888", "name": "The request has succeeded.", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/2/media/analytics?media_keys=23_336&end_time=&start_time=&granularity=daily&media_analytics.fields=video_views", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "analytics" ], "query": [ { "description": "(Required) A comma separated list of Media Keys. Up to 100 are allowed in a single request.", "key": "media_keys", "value": "23_336" }, { "description": "(Required) YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the end of the time range.", "key": "end_time", "value": "" }, { "description": "(Required) YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the start of the time range.", "key": "start_time", "value": "" }, { "description": "(Required) The granularity for the search counts results.", "key": "granularity", "value": "daily" }, { "description": "A comma separated list of MediaAnalytics fields to display.", "key": "media_analytics.fields", "value": "video_views" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": [\n {\n \"media_key\": \"830_7473\",\n \"timestamped_metrics\": [\n {\n \"metrics\": {\n \"cta_url_clicks\": \"\",\n \"cta_watch_clicks\": \"\",\n \"play_from_tap\": \"\",\n \"playback25\": \"\",\n \"playback50\": \"\",\n \"playback75\": \"\",\n \"playback_complete\": \"\",\n \"playback_start\": \"\",\n \"video_views\": \"\",\n \"watch_time_ms\": \"\"\n },\n \"timestamp\": \"\"\n },\n {\n \"metrics\": {\n \"cta_url_clicks\": \"\",\n \"cta_watch_clicks\": \"\",\n \"play_from_tap\": \"\",\n \"playback25\": \"\",\n \"playback50\": \"\",\n \"playback75\": \"\",\n \"playback_complete\": \"\",\n \"playback_start\": \"\",\n \"video_views\": \"\",\n \"watch_time_ms\": \"\"\n },\n \"timestamp\": \"\"\n }\n ]\n },\n {\n \"media_key\": \"606_5\",\n \"timestamped_metrics\": [\n {\n \"metrics\": {\n \"cta_url_clicks\": \"\",\n \"cta_watch_clicks\": \"\",\n \"play_from_tap\": \"\",\n \"playback25\": \"\",\n \"playback50\": \"\",\n \"playback75\": \"\",\n \"playback_complete\": \"\",\n \"playback_start\": \"\",\n \"video_views\": \"\",\n \"watch_time_ms\": \"\"\n },\n \"timestamp\": \"\"\n },\n {\n \"metrics\": {\n \"cta_url_clicks\": \"\",\n \"cta_watch_clicks\": \"\",\n \"play_from_tap\": \"\",\n \"playback25\": \"\",\n \"playback50\": \"\",\n \"playback75\": \"\",\n \"playback_complete\": \"\",\n \"playback_start\": \"\",\n \"video_views\": \"\",\n \"watch_time_ms\": \"\"\n },\n \"timestamp\": \"\"\n }\n ]\n }\n ],\n \"errors\": [\n {\n \"type\": \"\",\n \"title\": \"\",\n \"detail\": \"\",\n \"status\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-d48815fd-8a97-40eb-9622-323a1f1c7888" }, { "id": "03775b8b-6555-4ad3-a05d-1f148b375b6b", "name": "The request has failed.", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/2/media/analytics?media_keys=23_336&end_time=&start_time=&granularity=daily&media_analytics.fields=video_views", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "analytics" ], "query": [ { "description": "(Required) A comma separated list of Media Keys. Up to 100 are allowed in a single request.", "key": "media_keys", "value": "23_336" }, { "description": "(Required) YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the end of the time range.", "key": "end_time", "value": "" }, { "description": "(Required) YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the start of the time range.", "key": "start_time", "value": "" }, { "description": "(Required) The granularity for the search counts results.", "key": "granularity", "value": "daily" }, { "description": "A comma separated list of MediaAnalytics fields to display.", "key": "media_analytics.fields", "value": "video_views" } ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-03775b8b-6555-4ad3-a05d-1f148b375b6b" } ], "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-3bc00950-1cd8-4b12-93bf-f77a88bda769" } ], "id": "a0270cd0-d5b9-4cb5-9f3b-4b9b6123754e", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-a0270cd0-d5b9-4cb5-9f3b-4b9b6123754e" }, { "name": "metadata", "item": [ { "name": "Create Media metadata", "id": "7d672543-6296-40c8-b50c-4bdd7c00cf63", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "block.read bookmark.read bookmark.write dm.read dm.write follows.read follows.write like.read like.write list.read list.write media.write mute.read mute.write offline.access space.read timeline.read tweet.moderate.write tweet.read tweet.write users.read", "type": "string" }, { "key": "accessTokenUrl", "value": "https://api.x.com/2/oauth2/token", "type": "string" }, { "key": "authUrl", "value": "https://api.x.com/2/oauth2/authorize", "type": "string" }, { "key": "grant_type", "value": "authorization_code", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": \"56973206\",\n \"metadata\": {\n \"allow_download_status\": {\n \"allow_download\": \"\"\n },\n \"alt_text\": {\n \"text\": \"\"\n },\n \"audience_policy\": {\n \"creator_subscriptions\": [\n \"Any\",\n \"Any\"\n ],\n \"x_subscriptions\": [\n \"Any\",\n \"Any\"\n ]\n },\n \"content_expiration\": {\n \"timestamp_sec\": \"\"\n },\n \"domain_restrictions\": {\n \"whitelist\": [\n \"\",\n \"\"\n ]\n },\n \"found_media_origin\": {\n \"provider\": \"\",\n \"id\": \"\"\n },\n \"geo_restrictions\": {\n \"whitelisted_country_codes\": [\n \"mF\"\n ],\n \"blacklisted_country_codes\": []\n },\n \"management_info\": {\n \"managed\": \"\"\n },\n \"preview_image\": {\n \"media_key\": {\n \"media\": \"0513448\",\n \"media_category\": \"TweetImage\"\n }\n },\n \"sensitive_media_warning\": {\n \"adult_content\": \"\",\n \"graphic_violence\": \"\",\n \"other\": \"\"\n },\n \"shared_info\": {\n \"shared\": \"\"\n },\n \"sticker_info\": {\n \"stickers\": [\n {\n \"aspect_ratio\": \"\",\n \"group_annotation_id\": \"\",\n \"id\": \"\",\n \"sticker_set_annotation_id\": \"\",\n \"transform_a\": \"\",\n \"transform_b\": \"\",\n \"transform_c\": \"\",\n \"transform_d\": \"\",\n \"transform_tx\": \"\",\n \"transform_ty\": \"\"\n },\n {\n \"aspect_ratio\": \"\",\n \"group_annotation_id\": \"\",\n \"id\": \"\",\n \"sticker_set_annotation_id\": \"\",\n \"transform_a\": \"\",\n \"transform_b\": \"\",\n \"transform_c\": \"\",\n \"transform_d\": \"\",\n \"transform_tx\": \"\",\n \"transform_ty\": \"\"\n }\n ]\n },\n \"upload_source\": {\n \"upload_source\": \"\"\n }\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/metadata", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "metadata" ] }, "description": "Creates metadata for a Media file." }, "response": [ { "id": "785d6e14-9cb9-4b2b-8fbe-3afe08c4f188", "name": "The request has succeeded.", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"id\": \"56973206\",\n \"metadata\": {\n \"allow_download_status\": {\n \"allow_download\": \"\"\n },\n \"alt_text\": {\n \"text\": \"\"\n },\n \"audience_policy\": {\n \"creator_subscriptions\": [\n \"Any\",\n \"Any\"\n ],\n \"x_subscriptions\": [\n \"Any\",\n \"Any\"\n ]\n },\n \"content_expiration\": {\n \"timestamp_sec\": \"\"\n },\n \"domain_restrictions\": {\n \"whitelist\": [\n \"\",\n \"\"\n ]\n },\n \"found_media_origin\": {\n \"provider\": \"\",\n \"id\": \"\"\n },\n \"geo_restrictions\": {\n \"whitelisted_country_codes\": [\n \"mF\"\n ],\n \"blacklisted_country_codes\": []\n },\n \"management_info\": {\n \"managed\": \"\"\n },\n \"preview_image\": {\n \"media_key\": {\n \"media\": \"0513448\",\n \"media_category\": \"TweetImage\"\n }\n },\n \"sensitive_media_warning\": {\n \"adult_content\": \"\",\n \"graphic_violence\": \"\",\n \"other\": \"\"\n },\n \"shared_info\": {\n \"shared\": \"\"\n },\n \"sticker_info\": {\n \"stickers\": [\n {\n \"aspect_ratio\": \"\",\n \"group_annotation_id\": \"\",\n \"id\": \"\",\n \"sticker_set_annotation_id\": \"\",\n \"transform_a\": \"\",\n \"transform_b\": \"\",\n \"transform_c\": \"\",\n \"transform_d\": \"\",\n \"transform_tx\": \"\",\n \"transform_ty\": \"\"\n },\n {\n \"aspect_ratio\": \"\",\n \"group_annotation_id\": \"\",\n \"id\": \"\",\n \"sticker_set_annotation_id\": \"\",\n \"transform_a\": \"\",\n \"transform_b\": \"\",\n \"transform_c\": \"\",\n \"transform_d\": \"\",\n \"transform_tx\": \"\",\n \"transform_ty\": \"\"\n }\n ]\n },\n \"upload_source\": {\n \"upload_source\": \"\"\n }\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/metadata", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "metadata" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"associated_metadata\": {\n \"allow_download_status\": {\n \"allow_download\": \"\"\n },\n \"alt_text\": {\n \"text\": \"\"\n },\n \"audience_policy\": {\n \"creator_subscriptions\": [\n \"Any\",\n \"Any\"\n ],\n \"x_subscriptions\": [\n \"Any\",\n \"Any\"\n ]\n },\n \"content_expiration\": {\n \"timestamp_sec\": \"\"\n },\n \"domain_restrictions\": {\n \"whitelist\": [\n \"\",\n \"\"\n ]\n },\n \"found_media_origin\": {\n \"provider\": \"\",\n \"id\": \"\"\n },\n \"geo_restrictions\": {\n \"whitelisted_country_codes\": [\n \"ep\"\n ],\n \"blacklisted_country_codes\": []\n },\n \"management_info\": {\n \"managed\": \"\"\n },\n \"preview_image\": {\n \"media_key\": {\n \"media\": \"79696322842\",\n \"media_category\": \"TweetImage\"\n }\n },\n \"sensitive_media_warning\": {\n \"adult_content\": \"\",\n \"graphic_violence\": \"\",\n \"other\": \"\"\n },\n \"shared_info\": {\n \"shared\": \"\"\n },\n \"sticker_info\": {\n \"stickers\": [\n {\n \"aspect_ratio\": \"\",\n \"group_annotation_id\": \"\",\n \"id\": \"\",\n \"sticker_set_annotation_id\": \"\",\n \"transform_a\": \"\",\n \"transform_b\": \"\",\n \"transform_c\": \"\",\n \"transform_d\": \"\",\n \"transform_tx\": \"\",\n \"transform_ty\": \"\"\n },\n {\n \"aspect_ratio\": \"\",\n \"group_annotation_id\": \"\",\n \"id\": \"\",\n \"sticker_set_annotation_id\": \"\",\n \"transform_a\": \"\",\n \"transform_b\": \"\",\n \"transform_c\": \"\",\n \"transform_d\": \"\",\n \"transform_tx\": \"\",\n \"transform_ty\": \"\"\n }\n ]\n },\n \"upload_source\": {\n \"upload_source\": \"\"\n }\n },\n \"id\": \"3653\"\n },\n \"errors\": [\n {\n \"type\": \"\",\n \"title\": \"\",\n \"detail\": \"\",\n \"status\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-785d6e14-9cb9-4b2b-8fbe-3afe08c4f188" }, { "id": "ccca566f-8593-4fec-a086-098e7f30d535", "name": "The request has failed.", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"id\": \"56973206\",\n \"metadata\": {\n \"allow_download_status\": {\n \"allow_download\": \"\"\n },\n \"alt_text\": {\n \"text\": \"\"\n },\n \"audience_policy\": {\n \"creator_subscriptions\": [\n \"Any\",\n \"Any\"\n ],\n \"x_subscriptions\": [\n \"Any\",\n \"Any\"\n ]\n },\n \"content_expiration\": {\n \"timestamp_sec\": \"\"\n },\n \"domain_restrictions\": {\n \"whitelist\": [\n \"\",\n \"\"\n ]\n },\n \"found_media_origin\": {\n \"provider\": \"\",\n \"id\": \"\"\n },\n \"geo_restrictions\": {\n \"whitelisted_country_codes\": [\n \"mF\"\n ],\n \"blacklisted_country_codes\": []\n },\n \"management_info\": {\n \"managed\": \"\"\n },\n \"preview_image\": {\n \"media_key\": {\n \"media\": \"0513448\",\n \"media_category\": \"TweetImage\"\n }\n },\n \"sensitive_media_warning\": {\n \"adult_content\": \"\",\n \"graphic_violence\": \"\",\n \"other\": \"\"\n },\n \"shared_info\": {\n \"shared\": \"\"\n },\n \"sticker_info\": {\n \"stickers\": [\n {\n \"aspect_ratio\": \"\",\n \"group_annotation_id\": \"\",\n \"id\": \"\",\n \"sticker_set_annotation_id\": \"\",\n \"transform_a\": \"\",\n \"transform_b\": \"\",\n \"transform_c\": \"\",\n \"transform_d\": \"\",\n \"transform_tx\": \"\",\n \"transform_ty\": \"\"\n },\n {\n \"aspect_ratio\": \"\",\n \"group_annotation_id\": \"\",\n \"id\": \"\",\n \"sticker_set_annotation_id\": \"\",\n \"transform_a\": \"\",\n \"transform_b\": \"\",\n \"transform_c\": \"\",\n \"transform_d\": \"\",\n \"transform_tx\": \"\",\n \"transform_ty\": \"\"\n }\n ]\n },\n \"upload_source\": {\n \"upload_source\": \"\"\n }\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/metadata", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "metadata" ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-ccca566f-8593-4fec-a086-098e7f30d535" } ], "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-7d672543-6296-40c8-b50c-4bdd7c00cf63" } ], "id": "183980a4-52c8-4865-af93-fb5d2fc101f3", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-183980a4-52c8-4865-af93-fb5d2fc101f3" }, { "name": "subtitles", "item": [ { "name": "Delete Media subtitles", "id": "2baa63b4-2b9b-48a4-89df-c8d46d28912c", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "block.read bookmark.read bookmark.write dm.read dm.write follows.read follows.write like.read like.write list.read list.write media.write mute.read mute.write offline.access space.read timeline.read tweet.moderate.write tweet.read tweet.write users.read", "type": "string" }, { "key": "accessTokenUrl", "value": "https://api.x.com/2/oauth2/token", "type": "string" }, { "key": "authUrl", "value": "https://api.x.com/2/oauth2/authorize", "type": "string" }, { "key": "grant_type", "value": "authorization_code", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": \"028101792279513997\",\n \"language_code\": \"UQ\",\n \"media_category\": \"TweetVideo\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/subtitles", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "subtitles" ] }, "description": "Deletes subtitles for a specific Media file." }, "response": [ { "id": "6a6af858-6f8e-499b-8420-c583b175ec75", "name": "The request has succeeded.", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"id\": \"028101792279513997\",\n \"language_code\": \"UQ\",\n \"media_category\": \"TweetVideo\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/subtitles", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "subtitles" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"deleted\": \"\"\n },\n \"errors\": [\n {\n \"type\": \"\",\n \"title\": \"\",\n \"detail\": \"\",\n \"status\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-6a6af858-6f8e-499b-8420-c583b175ec75" }, { "id": "55fff47a-5c58-4dc2-80a8-2ffc676599f6", "name": "The request has failed.", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"id\": \"028101792279513997\",\n \"language_code\": \"UQ\",\n \"media_category\": \"TweetVideo\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/subtitles", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "subtitles" ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-55fff47a-5c58-4dc2-80a8-2ffc676599f6" } ], "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-2baa63b4-2b9b-48a4-89df-c8d46d28912c" }, { "name": "Create Media subtitles", "id": "bf946cb0-ab00-4735-aa96-506c884d36f7", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "block.read bookmark.read bookmark.write dm.read dm.write follows.read follows.write like.read like.write list.read list.write media.write mute.read mute.write offline.access space.read timeline.read tweet.moderate.write tweet.read tweet.write users.read", "type": "string" }, { "key": "accessTokenUrl", "value": "https://api.x.com/2/oauth2/token", "type": "string" }, { "key": "authUrl", "value": "https://api.x.com/2/oauth2/authorize", "type": "string" }, { "key": "grant_type", "value": "authorization_code", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": \"17816283\",\n \"media_category\": \"AmplifyVideo\",\n \"subtitles\": {\n \"display_name\": \"\",\n \"id\": \"8517\",\n \"language_code\": \"PP\"\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/subtitles", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "subtitles" ] }, "description": "Creates subtitles for a specific Media file." }, "response": [ { "id": "a51cf473-016c-4ada-b1aa-3e7b319ae1ac", "name": "The request has succeeded.", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"id\": \"17816283\",\n \"media_category\": \"AmplifyVideo\",\n \"subtitles\": {\n \"display_name\": \"\",\n \"id\": \"8517\",\n \"language_code\": \"PP\"\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/subtitles", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "subtitles" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"id\": \"020993581\",\n \"media_category\": \"AmplifyVideo\",\n \"associated_subtitles\": [\n {\n \"display_name\": \"\",\n \"id\": \"88629925197199\",\n \"language_code\": \"PA\"\n }\n ]\n },\n \"errors\": [\n {\n \"type\": \"\",\n \"title\": \"\",\n \"detail\": \"\",\n \"status\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-a51cf473-016c-4ada-b1aa-3e7b319ae1ac" }, { "id": "973f7db0-bd23-41e8-a332-72ba143518bb", "name": "The request has failed.", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"id\": \"17816283\",\n \"media_category\": \"AmplifyVideo\",\n \"subtitles\": {\n \"display_name\": \"\",\n \"id\": \"8517\",\n \"language_code\": \"PP\"\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/subtitles", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "subtitles" ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-973f7db0-bd23-41e8-a332-72ba143518bb" } ], "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-bf946cb0-ab00-4735-aa96-506c884d36f7" } ], "id": "1a13c2a2-78ba-45e3-8c38-0cf0e0d0bf1d", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-1a13c2a2-78ba-45e3-8c38-0cf0e0d0bf1d" }, { "name": "upload", "item": [ { "name": "initialize", "item": [ { "name": "Initialize media upload", "id": "aabfd501-ab07-4582-acf7-bac470f9e03d", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "block.read bookmark.read bookmark.write dm.read dm.write follows.read follows.write like.read like.write list.read list.write media.write mute.read mute.write offline.access space.read timeline.read tweet.moderate.write tweet.read tweet.write users.read", "type": "string" }, { "key": "accessTokenUrl", "value": "https://api.x.com/2/oauth2/token", "type": "string" }, { "key": "authUrl", "value": "https://api.x.com/2/oauth2/authorize", "type": "string" }, { "key": "grant_type", "value": "authorization_code", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"additional_owners\": [\n \"7860145683905711329\",\n \"93\"\n ],\n \"media_category\": \"subtitles\",\n \"media_type\": \"video/mp4\",\n \"shared\": \"\",\n \"total_bytes\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/upload/initialize", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload", "initialize" ] }, "description": "Initializes a media upload." }, "response": [ { "id": "090b90be-7d6a-4103-8f7b-e35dc7b8eb50", "name": "The request has succeeded.", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"additional_owners\": [\n \"7860145683905711329\",\n \"93\"\n ],\n \"media_category\": \"subtitles\",\n \"media_type\": \"video/mp4\",\n \"shared\": \"\",\n \"total_bytes\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/upload/initialize", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload", "initialize" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"expires_after_secs\": \"\",\n \"id\": \"4345\",\n \"media_key\": \"38314_26\",\n \"processing_info\": {\n \"check_after_secs\": \"\",\n \"progress_percent\": \"\",\n \"state\": \"pending\"\n },\n \"size\": \"\"\n },\n \"errors\": [\n {\n \"type\": \"\",\n \"title\": \"\",\n \"detail\": \"\",\n \"status\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-090b90be-7d6a-4103-8f7b-e35dc7b8eb50" }, { "id": "f68ef0f5-d95a-473a-a19c-b213bd6209fa", "name": "The request has failed.", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"additional_owners\": [\n \"7860145683905711329\",\n \"93\"\n ],\n \"media_category\": \"subtitles\",\n \"media_type\": \"video/mp4\",\n \"shared\": \"\",\n \"total_bytes\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/upload/initialize", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload", "initialize" ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-f68ef0f5-d95a-473a-a19c-b213bd6209fa" } ], "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-aabfd501-ab07-4582-acf7-bac470f9e03d" } ], "id": "4648ba78-208c-4211-8ecb-d9e3b1910920", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-4648ba78-208c-4211-8ecb-d9e3b1910920" }, { "name": "{id}", "item": [ { "name": "append", "item": [ { "name": "Append Media upload", "id": "bab1b629-41f5-4e20-9b1e-c9395e8fd188", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "block.read bookmark.read bookmark.write dm.read dm.write follows.read follows.write like.read like.write list.read list.write media.write mute.read mute.write offline.access space.read timeline.read tweet.moderate.write tweet.read tweet.write users.read", "type": "string" }, { "key": "accessTokenUrl", "value": "https://api.x.com/2/oauth2/token", "type": "string" }, { "key": "authUrl", "value": "https://api.x.com/2/oauth2/authorize", "type": "string" }, { "key": "grant_type", "value": "authorization_code", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"media\": \"\",\n \"segment_index\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/upload/:id/append", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload", ":id", "append" ], "variable": [ { "id": "1a049694-6947-42fc-b533-13945544e805", "key": "id", "value": "6824105915774065836", "description": "(Required) The media identifier for the media to perform the append operation." } ] }, "description": "Appends data to a Media upload request." }, "response": [ { "id": "6ff406aa-7764-4e0a-9b42-197bc5da924b", "name": "The request has succeeded.", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"media\": \"\",\n \"segment_index\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/upload/:id/append", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload", ":id", "append" ], "variable": [ { "key": "id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"expires_at\": \"\"\n },\n \"errors\": [\n {\n \"type\": \"\",\n \"title\": \"\",\n \"detail\": \"\",\n \"status\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-6ff406aa-7764-4e0a-9b42-197bc5da924b" }, { "id": "f8ac35e3-c355-49c4-8667-c2e59b65856d", "name": "The request has failed.", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"media\": \"\",\n \"segment_index\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/upload/:id/append", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload", ":id", "append" ], "variable": [ { "key": "id" } ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-f8ac35e3-c355-49c4-8667-c2e59b65856d" } ], "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-bab1b629-41f5-4e20-9b1e-c9395e8fd188" } ], "id": "0264aa83-695c-4ec9-9566-99bc06375bdc", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-0264aa83-695c-4ec9-9566-99bc06375bdc" }, { "name": "finalize", "item": [ { "name": "Finalize Media upload", "id": "b3398402-fe09-4cb0-97e5-f74b336085f6", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "block.read bookmark.read bookmark.write dm.read dm.write follows.read follows.write like.read like.write list.read list.write media.write mute.read mute.write offline.access space.read timeline.read tweet.moderate.write tweet.read tweet.write users.read", "type": "string" }, { "key": "accessTokenUrl", "value": "https://api.x.com/2/oauth2/token", "type": "string" }, { "key": "authUrl", "value": "https://api.x.com/2/oauth2/authorize", "type": "string" }, { "key": "grant_type", "value": "authorization_code", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/2/media/upload/:id/finalize", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload", ":id", "finalize" ], "variable": [ { "id": "d385b4fd-b8e6-4dd7-8369-4304f90c233f", "key": "id", "value": "6824105915774065836", "description": "(Required) The media id of the targeted media to finalize." } ] }, "description": "Finalizes a Media upload request." }, "response": [ { "id": "9f03672d-87ae-40aa-a1f8-772745f3fb3d", "name": "The request has succeeded.", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/2/media/upload/:id/finalize", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload", ":id", "finalize" ], "variable": [ { "key": "id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"expires_after_secs\": \"\",\n \"id\": \"4345\",\n \"media_key\": \"38314_26\",\n \"processing_info\": {\n \"check_after_secs\": \"\",\n \"progress_percent\": \"\",\n \"state\": \"pending\"\n },\n \"size\": \"\"\n },\n \"errors\": [\n {\n \"type\": \"\",\n \"title\": \"\",\n \"detail\": \"\",\n \"status\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-9f03672d-87ae-40aa-a1f8-772745f3fb3d" }, { "id": "3a9f7112-6fb5-4dd9-8431-7995358db30c", "name": "The request has failed.", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/2/media/upload/:id/finalize", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload", ":id", "finalize" ], "variable": [ { "key": "id" } ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-3a9f7112-6fb5-4dd9-8431-7995358db30c" } ], "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-b3398402-fe09-4cb0-97e5-f74b336085f6" } ], "id": "c7368b3a-100d-4ea4-a83e-3b5b533b393c", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-c7368b3a-100d-4ea4-a83e-3b5b533b393c" } ], "id": "950ef06b-30e4-4314-9a0d-74d1527d51f4", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-950ef06b-30e4-4314-9a0d-74d1527d51f4" }, { "name": "Get Media upload status", "id": "c58f86d0-1c97-4c55-9dce-cebedd565cad", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "block.read bookmark.read bookmark.write dm.read dm.write follows.read follows.write like.read like.write list.read list.write media.write mute.read mute.write offline.access space.read timeline.read tweet.moderate.write tweet.read tweet.write users.read", "type": "string" }, { "key": "accessTokenUrl", "value": "https://api.x.com/2/oauth2/token", "type": "string" }, { "key": "authUrl", "value": "https://api.x.com/2/oauth2/authorize", "type": "string" }, { "key": "grant_type", "value": "authorization_code", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/2/media/upload?media_id=6824105915774065836&command=STATUS", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload" ], "query": [ { "description": "(Required) Media id for the requested media upload status.", "key": "media_id", "value": "6824105915774065836" }, { "description": "The command for the media upload request.", "key": "command", "value": "STATUS" } ] }, "description": "Retrieves the status of a Media upload by its ID." }, "response": [ { "id": "0f735b5e-bd4a-4dca-b928-7e8ced87e67c", "name": "The request has succeeded.", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/2/media/upload?media_id=6824105915774065836&command=STATUS", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload" ], "query": [ { "description": "(Required) Media id for the requested media upload status.", "key": "media_id", "value": "6824105915774065836" }, { "description": "The command for the media upload request.", "key": "command", "value": "STATUS" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"expires_after_secs\": \"\",\n \"id\": \"4345\",\n \"media_key\": \"38314_26\",\n \"processing_info\": {\n \"check_after_secs\": \"\",\n \"progress_percent\": \"\",\n \"state\": \"pending\"\n },\n \"size\": \"\"\n },\n \"errors\": [\n {\n \"type\": \"\",\n \"title\": \"\",\n \"detail\": \"\",\n \"status\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-0f735b5e-bd4a-4dca-b928-7e8ced87e67c" }, { "id": "65849da2-3803-4f3e-acf5-475b7aa8aa35", "name": "The request has failed.", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/2/media/upload?media_id=6824105915774065836&command=STATUS", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload" ], "query": [ { "description": "(Required) Media id for the requested media upload status.", "key": "media_id", "value": "6824105915774065836" }, { "description": "The command for the media upload request.", "key": "command", "value": "STATUS" } ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-65849da2-3803-4f3e-acf5-475b7aa8aa35" } ], "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-c58f86d0-1c97-4c55-9dce-cebedd565cad" }, { "name": "Upload media", "id": "76b4e58c-6dd5-479f-9df6-5c43685a16e5", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "block.read bookmark.read bookmark.write dm.read dm.write follows.read follows.write like.read like.write list.read list.write media.write mute.read mute.write offline.access space.read timeline.read tweet.moderate.write tweet.read tweet.write users.read", "type": "string" }, { "key": "accessTokenUrl", "value": "https://api.x.com/2/oauth2/token", "type": "string" }, { "key": "authUrl", "value": "https://api.x.com/2/oauth2/authorize", "type": "string" }, { "key": "grant_type", "value": "authorization_code", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"media\": \"\",\n \"media_category\": \"tweet_image\",\n \"additional_owners\": [\n \"97652664\",\n \"7826497955\"\n ],\n \"media_type\": \"image/webp\",\n \"shared\": false\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/upload", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload" ] }, "description": "Uploads a media file for use in posts or other content." }, "response": [ { "id": "916d77cf-dee5-4a90-8698-6a4f446b7100", "name": "The request has succeeded.", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"media\": \"\",\n \"media_category\": \"tweet_image\",\n \"additional_owners\": [\n \"97652664\",\n \"7826497955\"\n ],\n \"media_type\": \"image/webp\",\n \"shared\": false\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/upload", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"expires_after_secs\": \"\",\n \"id\": \"4345\",\n \"media_key\": \"38314_26\",\n \"processing_info\": {\n \"check_after_secs\": \"\",\n \"progress_percent\": \"\",\n \"state\": \"pending\"\n },\n \"size\": \"\"\n },\n \"errors\": [\n {\n \"type\": \"\",\n \"title\": \"\",\n \"detail\": \"\",\n \"status\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-916d77cf-dee5-4a90-8698-6a4f446b7100" }, { "id": "7144b841-58ca-469a-9628-44a410f632f1", "name": "The request has failed.", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"media\": \"\",\n \"media_category\": \"tweet_image\",\n \"additional_owners\": [\n \"97652664\",\n \"7826497955\"\n ],\n \"media_type\": \"image/webp\",\n \"shared\": false\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/2/media/upload", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", "upload" ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-7144b841-58ca-469a-9628-44a410f632f1" } ], "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-76b4e58c-6dd5-479f-9df6-5c43685a16e5" } ], "id": "e276af0d-78f1-48ac-b340-ace7924b18e9", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-e276af0d-78f1-48ac-b340-ace7924b18e9" }, { "name": "{media_key}", "item": [ { "name": "Get Media by media key", "id": "541b3c25-468f-4de2-a278-73ac668a7bfa", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/2/media/:media_key?media.fields=preview_image_url", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", ":media_key" ], "query": [ { "description": "A comma separated list of Media fields to display.", "key": "media.fields", "value": "preview_image_url" } ], "variable": [ { "id": "12b2e1b0-bfcd-4325-98fc-0c7e83fa2f01", "key": "media_key", "value": "5809_0645417", "description": "(Required) A single Media Key." } ] }, "description": "Retrieves details of a specific Media file by its media key." }, "response": [ { "id": "49dde14e-8baa-46a1-97f9-c1c7cc314ccf", "name": "The request has succeeded.", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/2/media/:media_key?media.fields=preview_image_url", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", ":media_key" ], "query": [ { "description": "A comma separated list of Media fields to display.", "key": "media.fields", "value": "preview_image_url" } ], "variable": [ { "key": "media_key" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"type\": \"\",\n \"height\": \"\",\n \"media_key\": \"82934459346_294\",\n \"width\": \"\"\n },\n \"errors\": [\n {\n \"type\": \"\",\n \"title\": \"\",\n \"detail\": \"\",\n \"status\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-49dde14e-8baa-46a1-97f9-c1c7cc314ccf" }, { "id": "0f471eae-defe-4e11-9925-c53ca57a2313", "name": "The request has failed.", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/2/media/:media_key?media.fields=preview_image_url", "host": [ "{{baseUrl}}" ], "path": [ "2", "media", ":media_key" ], "query": [ { "description": "A comma separated list of Media fields to display.", "key": "media.fields", "value": "preview_image_url" } ], "variable": [ { "key": "media_key" } ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-0f471eae-defe-4e11-9925-c53ca57a2313" } ], "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-541b3c25-468f-4de2-a278-73ac668a7bfa" } ], "id": "34dff142-5c0d-47d3-905c-177eb9234487", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-34dff142-5c0d-47d3-905c-177eb9234487" }, { "name": "Get Media by media keys", "id": "eea83569-c2e9-4ee9-b95f-80e32446d148", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/2/media?media_keys=23_336&media.fields=preview_image_url", "host": [ "{{baseUrl}}" ], "path": [ "2", "media" ], "query": [ { "description": "(Required) A comma separated list of Media Keys. Up to 100 are allowed in a single request.", "key": "media_keys", "value": "23_336" }, { "description": "A comma separated list of Media fields to display.", "key": "media.fields", "value": "preview_image_url" } ] }, "description": "Retrieves details of Media files by their media keys." }, "response": [ { "id": "c51a31fb-97db-44a9-8a38-245b590fe8d5", "name": "The request has succeeded.", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/2/media?media_keys=23_336&media.fields=preview_image_url", "host": [ "{{baseUrl}}" ], "path": [ "2", "media" ], "query": [ { "description": "(Required) A comma separated list of Media Keys. Up to 100 are allowed in a single request.", "key": "media_keys", "value": "23_336" }, { "description": "A comma separated list of Media fields to display.", "key": "media.fields", "value": "preview_image_url" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": [\n {\n \"type\": \"\",\n \"height\": \"\",\n \"media_key\": \"90776_1\",\n \"width\": \"\"\n }\n ],\n \"errors\": [\n {\n \"type\": \"\",\n \"title\": \"\",\n \"detail\": \"\",\n \"status\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-c51a31fb-97db-44a9-8a38-245b590fe8d5" }, { "id": "2fd3f1ad-4ae5-4042-a296-a684a3f944e7", "name": "The request has failed.", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/2/media?media_keys=23_336&media.fields=preview_image_url", "host": [ "{{baseUrl}}" ], "path": [ "2", "media" ], "query": [ { "description": "(Required) A comma separated list of Media Keys. Up to 100 are allowed in a single request.", "key": "media_keys", "value": "23_336" }, { "description": "A comma separated list of Media fields to display.", "key": "media.fields", "value": "preview_image_url" } ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-2fd3f1ad-4ae5-4042-a296-a684a3f944e7" } ], "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-eea83569-c2e9-4ee9-b95f-80e32446d148" } ], "id": "2f5d2f12-bfa5-4717-a374-935d7098a706", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-2f5d2f12-bfa5-4717-a374-935d7098a706" } ], "id": "858c6d75-4aa8-44c0-941e-53c76aa4364e", "createdAt": "2026-07-28T03:21:32.000Z", "updatedAt": "2026-07-28T03:21:32.000Z", "uid": "35240-858c6d75-4aa8-44c0-941e-53c76aa4364e" } ], "variable": [ { "key": "baseUrl", "value": "https://api.x.com" } ] }