Postman API
  1. Mocks
Postman API
  • API
    • Get all APIs
      GET
    • Create API
      POST
    • Delete an API
      DELETE
    • Single API
      GET
    • Update an API
      PUT
    • Get All API Versions
      GET
    • Create API Version
      POST
    • Delete an API Version
      DELETE
    • Get an API Version
      GET
    • Update an API Version
      PUT
    • Get contract test relations
      GET
    • Get documentation relations
      GET
    • Get environment relations
      GET
    • Get integration test relations
      GET
    • Get monitor relations
      GET
    • Get linked relations
      GET
    • Create relations
      POST
    • Create Schema
      POST
    • Get Schema
      GET
    • Update Schema
      PUT
    • Create collection from schema
      POST
    • Get test suite relations
      GET
    • Sync relations with schema
      PUT
  • Collections
    • All Collections
    • Create Collection
    • Create a Fork
    • Merge a Fork
    • Delete Collection
    • Single Collection
    • Update Collection
  • Environments
    • All Environments
    • Create Environment
    • Delete Environment
    • Single Environment
    • Update Environment
  • Import
    • Import exported data
    • Import external API specification
  • User
    • API Key Owner
  • Mocks
    • All Mocks
      GET
    • Create Mock
      POST
    • Delete Mock
      DELETE
    • Single Mock
      GET
    • Update Mock
      PUT
    • Publish Mock
      POST
    • Unpublish Mock
      DELETE
  • Monitors
    • All Monitors
    • Create Monitor
    • Delete Monitor
    • Single Monitor
    • Update Monitor
    • Run a Monitor
  • Webhooks
    • Create Webhook
  • Workspaces
    • All workspaces
    • Create Workspace
    • Delete Workspace
    • Single workspace
    • Update Workspace
  1. Mocks

Single Mock

GET
/mocks/{mock_uid}
Mocks
This endpoint fetches you the basic information about a single mock using its uid.
Requires API Key as X-Api-Key request header or apikey URL query parameter.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.getpostman.com/mocks/'
Response Response Example
{
  "mock": {
    "collection": "1679925-39fee52f-b806-3ffa-1173-00a6f5b183dc",
    "environment": "1679925-0b9e9f15-3208-a2b1-22e0-d58392f01524",
    "id": "0fca2246-c108-41f5-8454-cc032def329f",
    "mockUrl": "https://0fca2246-c108-41f5-8454-cc032def329f.mock.pstmn.io",
    "owner": "1679925",
    "uid": "1679925-0fca2246-c108-41f5-8454-cc032def329f"
  }
}

Request

Path Params
mock_uid
string 
required

Responses

🟢200Successful Response
application/json
Body
mock
object 
optional
collection
string 
optional
Example:
1679925-39fee52f-b806-3ffa-1173-00a6f5b183dc
environment
string 
optional
Example:
1679925-0b9e9f15-3208-a2b1-22e0-d58392f01524
id
string 
optional
Example:
0fca2246-c108-41f5-8454-cc032def329f
mockUrl
string 
optional
Example:
https://0fca2246-c108-41f5-8454-cc032def329f.mock.pstmn.io
owner
string 
optional
Example:
1679925
uid
string 
optional
Example:
1679925-0fca2246-c108-41f5-8454-cc032def329f
Previous
Delete Mock
Next
Update Mock
Built with