Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
API method - for exporters and templates - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • API method - for exporters and templates
KB0853663

API method - for exporters and templates


743 Views Last updated : Sep 15, 2023 public Copy Permalink
KB Summary by Now Assist

SWEAGLE offers an API endpoint to retrieve the content of the data set in API - consume data through exporters (JSON, YAML, etc) or API - consume data through templates (based upon templates). 

Example API call for configData

method
POST
endpoint
/api/v1/tenant/metadata-parser/parse?mds=myMDSName&parser=myParser1&args=myArg1,myArg2&format=json
header
Authorization: bearer 18a049d2-fff2-xxxx-847b-d392c10c3rff

The mdsName, ParserName with optional arguments, and the format are required. More info: API - consume data through exporters.

configuring the API call details

SWEAGLE offers help to configure example API calls in various languages through the built-in export browser. This allows you to "preview" what the response will be which the requester will receive, as well as a wizard-driven approach to configuring such API calls. The export browser can be accessed through the "stored" data set page and selecting a config data set name.

In the export browser, the user can select any of the assigned exporters, enter optionally arguments and set the output format. The left panel shows the exact response content and format as generated by the SWEAGLE API endpoint. The right panel contains example calls in cURL, Microsoft Powershell, Python, and Perl. These commands can be directly copied to the clipboard for further usage. Note that by default these example calls are created with the accessToken for the current user credentials and this token will expire soon.

For an advanced configuration with the credentials of a different system user or with an API user, use the Help button which will guide you through the steps to create an example custom API call based upon the selected config data set name, parser, and arguments for each of the supported formats. Choose between User and API  to configure example custom API call for any of those user types.




The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.