ā02-23-2022 11:25 PM - edited ā02-24-2022 10:43 AM
There are a couple of questions that are regulary raised in the #webex4devs space. Let's collect them here along with the answers.
Please use seperate discussions for questions to not pollute this collection.
Feel free to extend the collection.
There is also a FAQ at the developer portal: https://developer.webex.com/docs/frequently-asked-questions
Maybe we can pin this thread?
ā08-16-2022 10:14 AM
How do I list all messages in all spaces of my organization?
Only compliance officers are allowed to do so (and the integration requires the spark-compliance:messages_read
scope). They may query each room to receive the messages in there.
See also List all Webex Messages with Admin Account
ā05-25-2022 09:49 AM
Is it possible for Webex admin to create webhooks on behalf of users?
There is no on behalf for creating webhooks. You could have your users authorize with an integration so it generates an access token and then use that to create a webhook under their account.
ā05-19-2022 08:31 AM
Is it possible to bypass the Webex sign-in screen when authorizing with an integration and the org/site has SSO is enabled?
Yes. You can append the &email= query parameter to your OAuth Authorization URL and it will lookup the user and direct them directly to their SSO sign-in. If a user's org doesn't have SSO enabled then they will still be taken to the Webex sign-in screen but the email address will already be populated and it will only ask them for their password.
ā05-16-2022 03:46 AM - edited ā05-16-2022 03:47 AM
How do I get next page of data set from API?
We have what is known as pagination, see here: https://developer.webex.com/docs/basics#pagination .
If you have set a max param in your request (or you're leaving it empty, meaning it will default to the API's default - usually 100 but can be different depending on which API is used) but the records available go past that threshold, then the API will paginate the results. You can access the next page of results using the URL returned in the link response header. You simply run this through a GET request with the same token, to get the next set of results. You can continue doing this for as long as there is a link response header. If one is not returned, it means you have reached the last page.
ā05-09-2022 03:37 AM - edited ā05-09-2022 03:38 AM
Error "Parameter 'start' or 'end' is before current time." is thrown when creating a meeting through API.
As the error suggests, this is thrown due to the fact the start and/or end times used is already in the past. The API will default to UTC+0 time zone when no time zone is provided in the request payload, you need to ensure that the date/time chosen is in the future based on the time zone.
ā04-24-2022 12:06 AM
How do I use multiple redirect URIs for an integration's OAuth flow?
Each integration may specify multiple redirect URIs in its definition. During the authorization flow, the redirect_uri
parameter must match one of them. If the OAuth succeeds, the user will be redirected to the specified one. By that, a user may be pointed to a dedicated URI based on any application-specific precondition.
The redirect URIs may be changed later in the application overview. Your client_id
and client_secret
will not change during that process.
What kind of URIs are allowed to be used as redirect URIs?
You may specify any URI. Most common (and probably only useful) are http/https URIs with public domains, but you may also specify http://localhost/ for instance or even foo://some.url.local/. For sure, your application need to handle these URIs properly in order to receive the access code and exchange it for a token.
ā04-19-2022 07:34 AM
Are there APIs for https://status.webex.com?
No. However, you can pull the raw JSON for the status page by doing a GET to https://status.webex.com/index.json.
ā03-30-2022 05:54 AM
Is there an API that allows adding users with a CSV file?
There is no direct support for adding users to an org via a CSV file. However, you could built your own script that reads the CSV file and does a POST to /people to create the users one by one.
ā03-16-2022 08:07 AM - edited ā03-23-2022 10:03 AM
How can I tell if a message received by a webhook was sent from the Webex App or via API request?
There is no way to tell this.
How can I submit a feature request?
Feature requests can be submitted through https://ciscocollabcustomer.ideas.aha.io/.
How do I manage contacts in the Webex app?
Contacts can only be managed in the Webex app, there is no API for this at this time so it would need to be a feature request.
ā03-07-2022 11:37 AM - last edited on ā05-06-2022 01:48 AM by Raffaele Lagana
How often can a refresh token be used and when will it be renewed?
Whenever an access token is issued, a refresh token is issued as well. That token can be used to renew the access token, see https://developer.webex.com/docs/integrations#getting-an-access-token.
A new access token will not be generated with each and every call. There is a random timer between 1 and 5 days when the access token recreation takes place. Refresh token will reset its validity back to 90 days (and remain the same so it can be re-used.).
An error message "Unable to register, user as excessive device registrations" is shown. What can I do?
Your widget code seems not to clean up after being destroyed, ie. it does not call unregister(). In the error console, you will see a URL like https://wdm-abc.wbx2.com/wdm/api/v1/devices (the abc part may differ). Send a GET request to that URL including your access token and you will receive a list of registered devices including their URL. That can be used in a DELETE request to remove the registration and do the housekeeping manually.
Alternatively wait for a few days as each registration is valid for 7 days
ā02-24-2022 10:21 AM
This is fantastic, thanks for putting these together
ā02-23-2022 11:30 PM - edited ā02-24-2022 02:56 AM
Can I bypass the REST APIs OAuth flow and use username/password for API calls in my integration?
No. The OAuth flow must be used and cannot be bypassed. Along with the access token, you will receive a refresh token. As long as it is valid, you may use it to refresh your access token (receiving a new refresh token as well). So you may keep your integration running in a kind of service anyway.
Can I see my active sessions?
Check out https://idbroker.webex.com/idb/profile#/. You will see your active Webex sessions and may end some of them manually.
Can I transfer the ownership of an integration or a bot?
Check out https://applications.webexbots.cloud/. In case of having a paid organization, an org admin may also transfer ownership of orphan bots/integrations.
Is there a list of servers from which webhooks are sent to my application?
No, there is no such list available.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide