Property Deck

Property Deck

  • Authentication
  • Getting Started

›Getting Started

Getting Started

  • Introduction
  • Authentication
  • Rate Limiting
  • Concepts

API

  • Attachments
  • Competencies
  • Custom Fields
  • Contacts
  • Properties
  • Notes
  • Reminders
  • Statuses
  • Types

Authentication

Property Deck has two methods of authentication, OAuth 2.0 and personal access tokens.

Please request an OAuth client id and secret, or personal access token by emailing info@propertydeck.co.uk

Usage

Both Personal Access Tokens and OAuth access tokens should be used as Bearer tokens. These may be sent in the Authorization header of your request

Authorization: Bearer <token>

Scopes

ScopeDescription
profile.readAccess basic profile information
profile.writeUpdate basic profile information
properties.readView properties
properties.writeCreate, update and delete properties
contacts.readView contacts
contacts.writeCreate, update and delete contacts
statuses.readView contact and property statuses
statuses.writeCreate, update and delete statuses
types.readView contact types
types.writeCreate, update and delete contact types
attachments.readView contact and property attachments
attachments.writeUpload and delete attachments
attachment-shares.readView who an attachment has been shared with
attachment-shares.writeShare attachments
attachment-share-logs.readView when an attachment has been viewed and downloaded
notes.readView contact and property notes
notes.writeCreate and delete notes
competencies.readView competencies
competencies.writeCreate, update and delete competencies
users.readView users that belong to the account
users.writeCreate, update and delete users
custom-fields.readView custom fields
custom-fields.writeCreate, update and delete custom fields
reminders.readView reminders
reminders.writeCreate, update and delete reminders

Personal Access Tokens

// TODO: Explain personal access tokens and how to get one

OAuth

The Property Deck API adheres to the OAuth 2 specification.

Getting an Access Token

1. Redirect the user to request integration

In your application you may have a "Connect with Property Deck" button. This should redirect the user to the OAuth Authorization URL.

Parameters

FieldDescription
response_typeMust be code
client_idThe client ID of your Property Deck application
redirect_uriThe URL in your app where the user will be sent back to. Must be in your application's approved URL list
scopeA space-separated list of scopes you would like to request from the user
stateAn unguessable random string. It can be used to protect against cross-site request forgery attacks

2. Property Deck redirects back to your site

Assuming the user approved your request for integration, we will redirect back to your site with a temporary code in the code parameter and the state your provided us. If the state does not match what you expect, abort the request.

3. Exchange the code for an Access Token

Send the code parameter acquired from the redirect in the previous step back to Property Deck along with your application details to receive a permanent Access Token for the user.

  • Your request MUST be a POST request
  • Your request MUST be encoded as x-www-form-urlencoded

Parameters

FieldDescription
grant_typeMust be authorization_code
codeThe code parameter you just received
client_idThe Client ID of your Property Deck application
client_secretThe Client Secret of your Property Deck application
redirect_uriThe URL in your app where the user was previously redirected to. Must be in your application's approved URL list

Response

FieldDescription
token_typeWill always be Bearer
access_tokenThe access token you'll use to access the Property Deck API
expires_inThe number of seconds until the access token expires
refresh_tokenThe refresh token you'll use to get a new access_token when it expires

Access Tokens and Refresh Tokens have a lifetime of 30 days and 6 months respectively. If your refresh token expires your user must re-approve your application by sending them through the OAuth flow again.

Refreshing an Access Token

When an Access Token expires you can exchange the refresh token for a new one, you'll also receive a new Refresh Token at the same time.

  • Your request MUST be a POST request
  • Your request MUST be encoded as x-www-form-urlencoded

Parameters

FieldDescription
grant_typeMust be refresh_token
refresh_tokenThe refresh token you received when retrieving an access token
client_idThe Client ID of your Property Deck application
client_secretThe Client Secret of your Property Deck application
scopeA space-separated list of scopes you would like to access

Response

FieldDescription
access_tokenYour new access token you'll use to access the Property Deck API
refresh_tokenYour new refresh token you'll use to retrieve another access token
expires_inThe number of seconds until the access token expires
← IntroductionRate Limiting →
  • Usage
  • Scopes
  • Personal Access Tokens
  • OAuth
    • Getting an Access Token
    • Refreshing an Access Token
Property Deck
Docs
IntroductionAuthenticationRate LimitingConcepts
API
AttachmentsCompetenciesCustom FieldsContactsProperties
 
NotesRemindersStatusesTypes
Copyright © 2018 Radweb Ltd