Swiftask
  • Quick start
  • Key concepts
    • AI Tools Hub
    • Agents
    • Knowledge base
    • Skills
    • Projects
    • Automation
  • AI tools hub
    • Introduction
    • Chat interface
    • Tokens
    • List of AI features
    • AI suggestions
    • FAQ
  • Agents
    • Introduction
    • Create an agent step by step
    • How to evaluate your agent
    • Multi-agents
    • Widget
    • Share agent
    • FAQ
  • Knowledge base
    • Introduction
    • Data connectors
      • Rich text
      • PDF File
      • Azure Document Loader
      • YouTube
      • Apify Dataset
      • PowerPoint File
      • Excel File
      • DOCX File
      • SQL Database
      • REST API
      • JSON File
      • CSV File
      • SQL Database Query
      • Website
      • Webpage
      • Sitemap
      • Dropbox files
      • Google drive files
    • Create a knowledge base
    • Attach Knowledge base to your agent
    • Share knowledge base
    • FAQ
  • Skills
    • Introduction
    • Skills library
      • Webpage Content Parsing
      • GitLab File Creation
      • Browsing with Perplexity
      • Open API
      • Retriever data from external sources
      • GitHub pull request diff retriever
      • GitHub pull request comment
      • Export table to Excel
      • Export text to PDF
      • GitHub file content
      • GitHub pull request info
      • OpenDataSoft
      • Agent as Skill
      • Swiftask AI recommandation
      • LinkedIn Share
      • Prismic migration create
      • Github create file
    • Create a new skill
    • Attach skill to your agent
    • FAQ
  • Projects
    • Introduction
    • Create a project
    • Generate task
    • Task AI chat
    • Project agent
    • FAQ
  • Automation
    • Introduction
    • Create an automation
  • Workspace admin
    • Introduction
    • Invite collaborators to join your workspace
    • Subscription renewal and Credit explanation
    • Purchase credits
    • Referral
    • Subscription plan & token distribution
    • Cancel subscription /Manage payment method
    • Personnal data security
    • SSO For enterprise
  • Use cases & Tutorials
    • Chat with multi-AI
    • Chat with PDF file
    • Import data - Webpage
    • How to generate an image on Swiftask
    • Import data (Azure Document Loader) - PDF
    • How to generate videos on Swiftask
    • Transform your ideas into videos with LUMA AI
    • Upgrade subscription plan
    • How to create an agent? step by step
    • Create AI agents for your business
    • Integrate external API in your agent
    • Create a professional landing page in 5 minutes
    • How to automate your blog content creation with an AI agent
    • How to evaluate your AI agent
    • How to create a Community Manager agent
  • Developer
    • List of AI and agents accessible via API
    • Access AI and agent through API
    • OpenAI SDK
  • Support & Social network
  • Changelog
    • May 29, 2025 - Enhanced Voice Input & AI Transcription
    • May 25, 2025 - Enhanced AI Models & Improved User Experience
    • May 25, 2025 - Mistral Medium 3 & Small 3 Integration
    • May 19, 2025 - Audio Recording Interface Improvements
    • May 19, 2025 - Third-Party Authentication Management
    • May 17, 2025- Enhanced Google Drive Synchronization & Privacy Improvements
Powered by GitBook
On this page
  1. Knowledge base
  2. Data connectors

REST API

Interacts with REST APIs to retrieve and exploit external data.

PreviousSQL DatabaseNextJSON File

Last updated 3 months ago

Detailed Explanation

  1. Name:

    • This field allows you to assign a specific name to your REST API connection, helping you identify it within your project.

    • Example: You might name it "Weather API" if you are connecting to an API that provides weather data.

  2. API URL:

    • This field is for specifying the base URL of the REST API you want to connect to.

    • Example: If your API is hosted at https://api.example.com/v1, you would enter this URL in the field.

  3. Headers (Optional):

    • This section allows you to specify any HTTP headers to include in the request, such as authentication tokens or content types. This is particularly important for APIs that require authorization.

    • Example: You might include an authorization header like:

      Copy{"Authorization": "Bearer my_token"}
  4. URL Parameters (Optional):

    • Here, you can specify any parameters to include in the URL for the API request. This is useful for filtering or paginating results.

    • Example: You might enter parameters like:

      Copy{"page": 1, "limit": 10}
  5. Body (Optional):

    • This section allows you to include a body in your request, often used for POST or PUT requests where you need to send data to the server.

    • Example: For a POST request, you might include:

      Copy{"key": "value"}
  6. Timeout:

    • This specifies the request timeout in milliseconds. It defines how long the system should wait for a response before timing out.

    • Example: A value of 5000 means the system will wait for 5 seconds.

  7. Chunk Size:

    • This field specifies the number of tokens or characters in each chunk of data processed. The default is set to 1024, but you can adjust it as needed.

    • Example: If you are dealing with a large amount of data, you might set the chunk size to 512 for easier processing.

  8. Cost Information:

    • This section provides details about the cost associated with importing words from the specified REST API.

    • Example: If it states "Cost per words: 0.035 tokens" and "Remaining words: 1279900685 Words," this indicates how many tokens will be charged for each word processed and the total number of words remaining for processing.