Number of APIs: 5
1. Create API
POST https://api.getpostman.com/apis?workspace={{workspaceId}}
This call creates a new API with a default API Version. Request body should contain an Response contains an Requires API Key as api
object which should atleast have a property name
.api
object with all the details related to the created API, namely, id
, name
, summary
, description
, etc.
X-Api-Key
request header or apikey
URL query parameter.
PUT https://api.getpostman.com/apis/{{apiId}}
This call updates an existing API . Request body should contain an Response contains an Requires API Key as api
object which should have the fields to be updated. Only name
, summary
and description
fields can be edited for an API.api
object with all the details related to the created API, namely, id
, name
, summary
, description
etc.
X-Api-Key
request header or apikey
URL query parameter.
DELETE https://api.getpostman.com/apis/{{apiId}}
This call deletes an existing API having the specified id. Response contains an Requires API Key as api
object with id
of the API which was deleted.
X-Api-Key
request header or apikey
URL query parameter.
4. Get all APIs
GET https://api.getpostman.com/apis
This call fetches all the APIs present in the specified workspace Response contains an array named Requires API Key as apis
which would contain all the details of APIs present in the workspace.
X-Api-Key
request header or apikey
URL query parameter.
5. Single API
GET https://api.getpostman.com/apis/{{apiId}}
This call fetches a single API having the specified id. Response contains an Requires API Key as api
object with all the details related to the queried API, namely, id
, name
, summary
, description
etc.
X-Api-Key
request header or apikey
URL query parameter.
ENDPOINTS