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: docs.slack.dev/methods/chat.unfurl.json
+16-5Lines changed: 16 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,7 @@
15
15
"args": {
16
16
"type": "object",
17
17
"required": [
18
-
"token",
19
-
"channel",
20
-
"ts",
21
-
"unfurls"
18
+
"token"
22
19
],
23
20
"properties": {
24
21
"token": {
@@ -37,7 +34,7 @@
37
34
"type": "string"
38
35
},
39
36
"unfurls": {
40
-
"desc": "URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments.",
37
+
"desc": "URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments. Either `unfurls` or `metadata` must be provided.",
41
38
"type": "string"
42
39
},
43
40
"user_auth_message": {
@@ -85,6 +82,17 @@
85
82
"composer",
86
83
"conversations_history"
87
84
]
85
+
},
86
+
"metadata": {
87
+
"desc": "JSON object with `entity_type` and `entity_payload` fields, presented as a URL-encoded string. Either `unfurls` or `metadata` must be provided.",
88
+
"anyOf": [
89
+
{
90
+
"type": "string"
91
+
},
92
+
{
93
+
"type": "null"
94
+
}
95
+
]
88
96
}
89
97
}
90
98
},
@@ -140,6 +148,9 @@
140
148
},
141
149
"missing_unfurls": {
142
150
"desc": "The request is missing the `unfurls` parameter."
"desc": "Provide custom flexpane behavior for Work Objects. Apps call this endpoint to send per-user flexpane metadata to the client.",
3
+
"http_method": "POST",
4
+
"scope": "none",
5
+
"rate_limits": "t3",
6
+
"json_input_supported": true,
7
+
"slack_connect_workspaces_allowed": true,
8
+
"args": {
9
+
"type": "object",
10
+
"required": [
11
+
"token",
12
+
"trigger_id"
13
+
],
14
+
"properties": {
15
+
"token": {
16
+
"type": "string",
17
+
"subtype": "auth",
18
+
"org_app": {
19
+
"allowed": true,
20
+
"derive_team_context_from": "token"
21
+
},
22
+
"example": "xxxx-xxxxxxxxx-xxxx"
23
+
},
24
+
"metadata": {
25
+
"desc": "URL-encoded JSON object containing flexpane metadata from the app that will be conformed to a Work Object metadata schema, keyed by entity ID.",
26
+
"type": "object"
27
+
},
28
+
"trigger_id": {
29
+
"type": "string",
30
+
"desc": "A reference to the original user action that initiated the request."
31
+
},
32
+
"user_auth_required": {
33
+
"default": "0",
34
+
"desc": "Set to true (or 1) to indicate that the user must authenticate to view full flexpane data.",
35
+
"type": "boolean"
36
+
},
37
+
"user_auth_url": {
38
+
"desc": "A custom URL to which users are directed for authentication if required.",
Copy file name to clipboardExpand all lines: methods/chat/chat.unfurl.json
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,18 +5,18 @@
5
5
"desc": "Provide custom unfurl behavior for user-posted URLs",
6
6
"args": {
7
7
"channel": {
8
-
"required": true,
8
+
"required": false,
9
9
"desc": "Channel ID of the message. Both channel and ts must be provided together, or unfurl_id and source must be provided together.",
10
10
"type": "channel"
11
11
},
12
12
"ts": {
13
-
"required": true,
13
+
"required": false,
14
14
"desc": "Timestamp of the message to add unfurl behavior to.",
15
15
"type": "timestamp"
16
16
},
17
17
"unfurls": {
18
-
"required": true,
19
-
"desc": "URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments.",
18
+
"required": false,
19
+
"desc": "URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments. Either unfurls or metadata must be provided.",
20
20
"type": "string",
21
21
"format": "json"
22
22
},
@@ -53,6 +53,12 @@
53
53
"example": "composer",
54
54
"desc": "The source of the link to unfurl. The source may either be composer, when the link is inside the message composer, or conversations_history, when the link has been posted to a conversation.",
55
55
"type": "enum"
56
+
},
57
+
"metadata": {
58
+
"required": false,
59
+
"desc": "JSON object with entity_type and entity_payload fields, presented as a URL-encoded string. Either unfurls or metadata must be provided.",
60
+
"type": "string",
61
+
"format": "json"
56
62
}
57
63
},
58
64
"response": {
@@ -76,6 +82,7 @@
76
82
"deprecated_endpoint": "The endpoint has been deprecated.",
77
83
"ekm_access_denied": "Administrators have suspended the ability to post a message.",
78
84
"enterprise_is_restricted": "The method cannot be called from an Enterprise.",
85
+
"error_processing_metadata": "The metadata parameter was invalid.",
79
86
"fatal_error": "The server could not complete your operation(s) without encountering a catastrophic error. It's possible some aspect of the operation succeeded before the error was raised.",
80
87
"invalid_arg_name": "The method was passed an argument whose name falls outside the bounds of accepted or expected values. This includes very long names and names with non-alphanumeric characters other than _. If you get this error, it is typically an indication that you have made a very malformed API call.",
81
88
"invalid_array_arg": "The method was passed an array as an argument. Please only input valid strings.",
"desc": "Provide custom flexpane behavior for Work Objects. Apps call this endpoint to send per-user flexpane metadata to the client.",
6
+
"args": {
7
+
"metadata": {
8
+
"required": false,
9
+
"desc": "URL-encoded JSON object containing flexpane metadata from the app that will be conformed to a Work Object metadata schema, keyed by entity ID.",
10
+
"type": "object",
11
+
"format": "json"
12
+
},
13
+
"trigger_id": {
14
+
"required": true,
15
+
"desc": "A reference to the original user action that initiated the request.",
16
+
"type": "string"
17
+
},
18
+
"user_auth_required": {
19
+
"required": false,
20
+
"example": "0",
21
+
"desc": "Set to true (or 1) to indicate that the user must authenticate to view full flexpane data.",
"access_denied": "Access to a resource specified in the request is denied.",
43
+
"accesslimited": "Access to this method is limited on the current network.",
44
+
"account_inactive": "Authentication token is for a deleted user or workspace when using a bot token.",
45
+
"deprecated_endpoint": "The endpoint has been deprecated.",
46
+
"ekm_access_denied": "Administrators have suspended the ability to post a message.",
47
+
"enterprise_is_restricted": "The method cannot be called from an Enterprise.",
48
+
"entity_metadata_does_not_match_trigger": "The provided entity's ID does not match the ID of the entity used to initiate the request",
49
+
"fatal_error": "The server could not complete your operation(s) without encountering a catastrophic error. It's possible some aspect of the operation succeeded before the error was raised.",
50
+
"feature_not_enabled": "temporarily gating API",
51
+
"invalid_app_id": "App ID is not a valid format",
52
+
"invalid_arg_name": "The method was passed an argument whose name falls outside the bounds of accepted or expected values. This includes very long names and names with non-alphanumeric characters other than _. If you get this error, it is typically an indication that you have made a very malformed API call.",
53
+
"invalid_array_arg": "The method was passed an array as an argument. Please only input valid strings.",
54
+
"invalid_auth": "Invalid token provided",
55
+
"invalid_charset": "The method was called via a POST request, but the charset specified in the Content-Type header was invalid. Valid charset names are: utf-8 iso-8859-1.",
56
+
"invalid_form_data": "The method was called via a POST request with Content-Type application/x-www-form-urlencoded or multipart/form-data, but the form data was either missing or syntactically invalid.",
57
+
"invalid_metadata": "The provided `metadata` argument could not be parsed or understood.",
58
+
"invalid_post_type": "The method was called via a POST request, but the specified Content-Type was invalid. Valid types are: application/json application/x-www-form-urlencoded multipart/form-data text/plain.",
59
+
"invalid_trigger_id": "Trigger id is not valid",
60
+
"is_bot": "This method cannot be called by a legacy bot.",
61
+
"method_deprecated": "The method has been deprecated.",
62
+
"missing_interactivity_url": "App does not have an interactivity URL configured",
63
+
"missing_options_load_url": "App does not have an options load URL configured",
64
+
"missing_post_type": "The method was called via a POST request and included a data payload, but the request did not include a Content-Type header.",
65
+
"missing_scope": "The token used is not granted the specific scope permissions required to complete this request.",
66
+
"no_permission": "The workspace token used in this request does not have the permissions necessary to complete the request. Make sure your app is a member of the conversation it's attempting to post a message to.",
67
+
"not_allowed_token_type": "The token type used in this request is not allowed.",
68
+
"not_authed": "No authentication token provided.",
69
+
"org_login_required": "The workspace is undergoing an enterprise migration and will not be available until migration is complete.",
70
+
"ratelimited": "The request has been ratelimited. Refer to the Retry-After header for when to retry the request.",
71
+
"request_timeout": "The method was called via a POST request, but the POST data was either missing or truncated.",
72
+
"service_unavailable": "The service is temporarily unavailable.",
73
+
"team_added_to_org": "The workspace associated with your request is currently undergoing migration to an Enterprise Organization. Web API and other platform operations will be intermittently unavailable until the transition is complete.",
74
+
"token_expired": "Authentication token has expired.",
75
+
"token_revoked": "Authentication token is for a deleted user or workspace or the app has been removed when using a user token.",
76
+
"two_factor_setup_required": "Two factor setup is required.",
77
+
"unknown_method": "This method is currently not available.",
78
+
"user_auth_url_missing": "User auth url is required if user_auth_required is true"
0 commit comments