{
  "info": {
    "name": "WRNexus Contacts API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Import into Postman. Set apiKey privately and replace illustrative resource identifiers before sending requests. Examples are illustrative. API reference: https://docs.wrnexus.com/reference. SDK guides: https://docs.wrnexus.com/sdk"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.wrnexus.com",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Contacts",
      "description": "Scoped people, companies, methods and record links.",
      "item": [
        {
          "name": "records",
          "request": {
            "method": "GET",
            "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/records",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/contacts/records?query=Example&after=&limit=20",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                "records"
              ],
              "query": [
                {
                  "key": "query",
                  "value": "Example"
                },
                {
                  "key": "after",
                  "value": ""
                },
                {
                  "key": "limit",
                  "value": "20"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Example success",
              "originalRequest": {
                "method": "GET",
                "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/records",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/contacts/records?query=Example&after=&limit=20",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "contacts",
                    "records"
                  ],
                  "query": [
                    {
                      "key": "query",
                      "value": "Example"
                    },
                    {
                      "key": "after",
                      "value": ""
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"version\": 1,\n  \"data\": {\n    \"contacts\": [],\n    \"nextCursor\": null\n  }\n}"
            }
          ]
        },
        {
          "name": "record",
          "request": {
            "method": "GET",
            "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/record",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/contacts/record?id=record_fixture",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                "record"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "record_fixture"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Example success",
              "originalRequest": {
                "method": "GET",
                "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/record",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/contacts/record?id=record_fixture",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "contacts",
                    "record"
                  ],
                  "query": [
                    {
                      "key": "id",
                      "value": "record_fixture"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"version\": 1,\n  \"data\": {\n    \"id\": \"record_fixture\",\n    \"revision\": 1\n  }\n}"
            }
          ]
        },
        {
          "name": "create",
          "request": {
            "method": "POST",
            "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/create",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/contacts/create",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                "create"
              ],
              "query": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"record\": {\n    \"kind\": \"person\",\n    \"displayName\": \"API example contact\"\n  },\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example success",
              "originalRequest": {
                "method": "POST",
                "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/create",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/contacts/create",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "contacts",
                    "create"
                  ],
                  "query": []
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"record\": {\n    \"kind\": \"person\",\n    \"displayName\": \"API example contact\"\n  },\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"version\": 1,\n  \"data\": {\n    \"id\": \"record_fixture\",\n    \"revision\": 2\n  }\n}"
            }
          ]
        },
        {
          "name": "update",
          "request": {
            "method": "POST",
            "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/update",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/contacts/update",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                "update"
              ],
              "query": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": \"record_fixture\",\n  \"revision\": 1,\n  \"record\": {\n    \"kind\": \"person\",\n    \"displayName\": \"API example contact\"\n  },\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example success",
              "originalRequest": {
                "method": "POST",
                "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/update",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/contacts/update",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "contacts",
                    "update"
                  ],
                  "query": []
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"id\": \"record_fixture\",\n  \"revision\": 1,\n  \"record\": {\n    \"kind\": \"person\",\n    \"displayName\": \"API example contact\"\n  },\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"version\": 1,\n  \"data\": {\n    \"id\": \"record_fixture\",\n    \"revision\": 2\n  }\n}"
            }
          ]
        },
        {
          "name": "archive",
          "request": {
            "method": "POST",
            "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/archive",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/contacts/archive",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                "archive"
              ],
              "query": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": \"record_fixture\",\n  \"revision\": 1,\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example success",
              "originalRequest": {
                "method": "POST",
                "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/archive",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/contacts/archive",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "contacts",
                    "archive"
                  ],
                  "query": []
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"id\": \"record_fixture\",\n  \"revision\": 1,\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"version\": 1,\n  \"data\": {\n    \"id\": \"record_fixture\",\n    \"revision\": 2\n  }\n}"
            }
          ]
        },
        {
          "name": "links",
          "request": {
            "method": "GET",
            "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/links",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/contacts/links?id=record_fixture",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                "links"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "record_fixture"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Example success",
              "originalRequest": {
                "method": "GET",
                "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/links",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/contacts/links?id=record_fixture",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "contacts",
                    "links"
                  ],
                  "query": [
                    {
                      "key": "id",
                      "value": "record_fixture"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"version\": 1,\n  \"data\": []\n}"
            }
          ]
        },
        {
          "name": "link",
          "request": {
            "method": "POST",
            "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/link",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/contacts/link",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                "link"
              ],
              "query": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": \"record_fixture\",\n  \"revision\": 1,\n  \"target\": {\n    \"version\": 1,\n    \"appKey\": \"contacts\",\n    \"recordType\": \"person\",\n    \"recordId\": \"contact_fixture\",\n    \"scope\": {\n      \"kind\": \"organization\",\n      \"organizationId\": \"organization_fixture\",\n      \"workspaceId\": null,\n      \"environment\": \"test\"\n    }\n  },\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example success",
              "originalRequest": {
                "method": "POST",
                "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/link",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/contacts/link",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "contacts",
                    "link"
                  ],
                  "query": []
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"id\": \"record_fixture\",\n  \"revision\": 1,\n  \"target\": {\n    \"version\": 1,\n    \"appKey\": \"contacts\",\n    \"recordType\": \"person\",\n    \"recordId\": \"contact_fixture\",\n    \"scope\": {\n      \"kind\": \"organization\",\n      \"organizationId\": \"organization_fixture\",\n      \"workspaceId\": null,\n      \"environment\": \"test\"\n    }\n  },\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"version\": 1,\n  \"data\": {\n    \"id\": \"record_fixture\",\n    \"revision\": 2\n  }\n}"
            }
          ]
        },
        {
          "name": "method add",
          "request": {
            "method": "POST",
            "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/method-add",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/contacts/method-add",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                "method-add"
              ],
              "query": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": \"record_fixture\",\n  \"revision\": 1,\n  \"method\": {\n    \"kind\": \"email\",\n    \"value\": \"contact@example.invalid\"\n  },\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example success",
              "originalRequest": {
                "method": "POST",
                "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/method-add",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/contacts/method-add",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "contacts",
                    "method-add"
                  ],
                  "query": []
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"id\": \"record_fixture\",\n  \"revision\": 1,\n  \"method\": {\n    \"kind\": \"email\",\n    \"value\": \"contact@example.invalid\"\n  },\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"version\": 1,\n  \"data\": {\n    \"id\": \"record_fixture\",\n    \"revision\": 2\n  }\n}"
            }
          ]
        },
        {
          "name": "method retire",
          "request": {
            "method": "POST",
            "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/method-retire",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/contacts/method-retire",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "contacts",
                "method-retire"
              ],
              "query": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": \"record_fixture\",\n  \"revision\": 1,\n  \"methodId\": \"method_fixture\",\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Example success",
              "originalRequest": {
                "method": "POST",
                "description": "Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked.\n\nDocumentation: https://docs.wrnexus.com/reference/contacts/method-retire",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/contacts/method-retire",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "contacts",
                    "method-retire"
                  ],
                  "query": []
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"id\": \"record_fixture\",\n  \"revision\": 1,\n  \"methodId\": \"method_fixture\",\n  \"requestKey\": \"9e4c53a4-cf18-4c14-b58c-488d62118d63\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"version\": 1,\n  \"data\": {\n    \"id\": \"record_fixture\",\n    \"revision\": 2\n  }\n}"
            }
          ]
        }
      ]
    }
  ]
}