Insomnia logo
  • Documentation
  • Get Started for Free
    • Introduction to Insomnia
    • Install Insomnia
    • Send Your First Request
    • Import and Export Data
    • Environment Variables
    • Global Environments
    • Insomnia Accounts
    • Forgotten Passphrase
    • Managing E2EE (End-to-End Encryption)
    • Organizations
    • Enable Enterprise membership
    • Configuring EE SSO
    • Integrating Insomnia Enterprise with Okta SAML 2.0
    • Integrating Insomnia Enterprise with Okta OpenID Connect
    • Integrating Insomnia Enterprise with Microsoft Azure/Entra ID SAML 2.0
    • Insomnia Whitelisting Guide for Enterprise Users
    • Transfer enterprise organizations and license
    • Configuring SCIM
    • Multiple Owners
    • Manage Domains
    • Invite Controls
    • Storage Controls
    • Session Report
    • Insomnia Subscriptions
    • Insomnia Subscription Management
    • Scratch Pad Tutorial
    • Requests
    • Responses
    • Request Collections
    • Request Timeouts
    • Chaining Requests
    • Post CSV Data
    • SOAP Requests
    • gRPC
    • WebSocket Support
    • Get Started with Documents
    • Design Documents
    • Linting
    • GraphQL for OpenAPI
    • Migrate from Designer
    • Unit Testing
    • Stress Testing
    • Insomnia Storage Options Guide
    • Sync with Insomnia Cloud
    • Sync with Git
    • Key Security Features
    • Security Standards
    • Signup and Authentication
    • Analytics Collected
    • End to End Data Encryption
    • Software Bill of Materials
    • Verifying Build Provenance for Signed Insomnia Binaries
    • Authentication
    • Client Certificates
    • Collection Runner
    • Generate Code Snippet
    • Cookie Management
    • Encoding
    • GraphQL Queries
    • Run in Insomnia Button
    • Key Maps
    • Proxy
    • Folder-level settings
    • Introduction to Plugins
    • Context Object Reference
    • Template Tags
    • Hooks and Actions
    • Custom Themes
    • AI Runner
    • FAQ
    • Application Data
    • SSL Validation
    • Password Recovery
    • Introduction to Inso CLI
    • Install Inso CLI
    • CLI Command Reference
      • inso run test
      • inso run collection
      • inso lint spec
      • inso export spec
      • inso script
      • Using Custom Linting with Inso CLI
    • Configuration
    • Inso CLI on Docker
    • Software Bill of Materials
    • Verifying Signatures for Signed Inso CLI Images
    • Verifying Inso CLI Build Provenance
      • Verifying Build Provenance for Signed Inso CLI Images
      • Verifying Build Provenance for Signed Inso CLI Binaries
    • Continuous Integration
    • Insomnia Pre-request Script Overview
    • Insomnia After-Response Script Overview
    • Secret Environment Variables
    • External Vault Integration (Enterprise feature)
    • Insomnia API Mocking Overview
    • Enterprise Login Report

Send Your First Request

Insomnia is an API client that enables you to send API requests outside of your terminal, and without writing any code. This means you don’t have to write any finicky cURL requests or backend code to quickly retrieve information, push content to a database, and do anything else a given API enables you to do.

In this guide, we’ll talk specifically about HTTP requests. This will give us common ground to send off a first request together. If you want to learn to send gRPC and GraphQL requests, see our more comprehensive Requests documentation.

  • API Request Basics
  • Send a Request to Insomnia Website

API Request Basics

Here’s some common terminology that’ll help you navigate the world of APIs:

  • Request: A structured attempt to communicate with an API.
  • Endpoint: A request-able URL. For example, I could have an API with the base URL petstore.com with the endpoint /inventory. If I make a request to petstore.com/inventory, I’ll get back a list of the pet store’s product inventory.

An API request is composed of discrete elements that let you interact with an API. Some common elements you may need are:

  • URL: The address where the API is hosted.
  • Request type: In the HTTP protocol, common request types include the following:
    • GET: returns information from an API.
    • POST: sends data you’ve entered, and returns a confirmation that the data you sent was received.
    • PATCH and PUT: sends data that modifies a record that an API has access to.
    • DELETE: deletes a record that an API has access to.
  • Authentication: The credentials required to access API endpoints. Not all APIs require authentication, and there are a lot of different types of authentication. Learn more about Authentication.

Send a Request to Insomnia Website

In this section, we’re going to send a GET request to the Insomnia website. Feel free to interchange the Insomnia website URL with any web URL you’d like to return in the Preview panel.

  1. From your Insomnia dashboard, create a new Document or Collection.
  2. In a Document, select the Debug tab, then New Request. In a Collection, select New Request.
  3. In the New Request modal:
    1. Enter a request name like Return Insomnia website.
    2. Select a GET method from the dropdown.
    3. Click Create.
  4. Enter insomnia.rest in the request URL input.
  5. Click Send.

    The Insomnia site should appear in the Preview right side panel. Once you’ve clicked Send on your request, you should see the Insomnia website in the right-side Preview panel. Note that this screenshot shows a Document (not a Collection).

Congrats! You’ve now used Insomnia to send your first request to the Insomnia website. For more complex request options, see our Request documentation.

Edit this page
Report an issue
    COMPANY
  • Insomnia
  • Blog
  • Changelog
  • Pricing
  • Careers
    PRODUCTS
  • Insomnia
  • Inso (CLI)
    RESOURCES
  • Sign In
  • Documentation
  • Support
    LEGAL
  • Privacy Policy
  • Terms & Conditions
© Kong Inc. 2021