---
title: "Get referring agent"
method: GET
path: "/api/files/listings/{listingGuid}/referringagent"
tags: ["Listing Referring Agents"]
---

# Get referring agent

`GET /api/files/listings/{listingGuid}/referringagent`

## Request

- Base URL: `https://api.skyslope.com`
- URL: `https://api.skyslope.com/api/files/listings/{listingGuid}/referringagent`
- Auth: OpenID Connect (`https://example.com/.well-known/openid-configuration`)

Gets the referring agent currently associated with the listing.

### Validation & Requirements
#### Required Parameters
- `listingGuid` (path, string, format=guid)

#### Required JSON Body Fields
- None

#### Validations
- Invalid GUID values in `*Guid`/`*Guids` fields return `422 Unprocessable Entity`.
- Invalid date values in `*date*` fields return `422 Unprocessable Entity`.
- Missing required request body returns `422 Unprocessable Entity` with `Missing request body.`.
- Additional business-rule validation may return `422` with details in the `errors` array.

## Path parameters

- `listingGuid` string, guid, required

## Response `200`

- LinkedResponseOfGetListingReferringAgentResponse
  - `value` GetListingReferringAgentResponse
    - `listingReferringAgent` ListingReferringAgentDTO
      - `firstName` string, nullable
      - `lastName` string, nullable
      - `phoneNumber` string, nullable
      - `fax` string, nullable
      - `email` string, nullable
      - `company` string, nullable
      - `alternatePhone` string, nullable
      - `streetNumber` string, nullable
      - `streetAddress` string, nullable
      - `city` string, nullable
      - `state` string, nullable
      - `zip` string, nullable
      - `publicID` string, nullable
  - `warnings` string[], nullable
  - `links` Link[], nullable
    - `href` string, nullable
    - `rel` string, nullable
    - `method` string, nullable

## Other responses

- `404`
- `422`

---

[API](https://skmtc.dev/skyslope/apis/skyslope-api.md) - [All operations](https://skmtc.dev/skyslope/apis/skyslope-api/llms.txt) - [OpenAPI document](https://skmtc.dev/skyslope/apis/skyslope-api/revisions/77341f0c0550?raw)
