Create API
POST
/apis
API
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.Requires API Key as X-Api-Key
request header orapikey
URL query parameter.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.getpostman.com/apis' \
--header 'Content-Type: application/json' \
--data-raw '{
"api": {
"description": "This is description.",
"name": "Sync Service API",
"summary": "This is supposed to be a short summary."
}
}'
Response Response Example
{
"api": {
"createdAt": "2019-02-12T19:34:49.000Z",
"createdBy": "5665",
"description": "This is supposed to handle markdown *descriptions*.",
"id": "387c2863-6ee3-4a56-8210-225f774edade",
"name": "Sync API",
"summary": "This is a summary",
"updatedAt": "2019-02-12T19:34:49.000Z"
}
}
Request
Query Params
workspace
string
optional
Body Params application/json
Responses
Modified at 2023-08-15 05:41:03