Retrieve
GEThttps://api.ideal-postcodes.co.uk/v1/keys/:key/licensees/:licensee
Returns licensee information as identified by the licensee key.
Request
Path Parameters
key stringrequired
API Key
The API Key to retrieve. Begins ak_
.
Example: ak_test
licensee stringrequired
Licensee Key
Uniquely identifies a licensee.
Example: sl_hk71kco54zGSGvF9eXXrvvnMOLLNh
Query Parameters
user_token string
Private User Token
A secret key used for sensitive operations on your account and API Keys.
Your user token can be retrieved and managed from your accounts page.
Typically beings uk_...
Example: uk_B59ScW1p1HHouf1VqclEPZUx
Responses
- 200
- 400
Success
Response Headers
- application/json
- Schema
- Example (auto)
Schema
result object
codeint32required
Possible values: [2000
]
messagestringrequired
Possible values: [Success
]
{
"result": {
"name": "Qwerty Widgets Limited",
"address": "12 High Street, Manchester",
"postcode": "ID1 1QD",
"whitelist": [
"https://www.example.com"
],
"daily": {
"limit": 10000,
"count": 232,
"updatedAt": "2016-08-05T16:43:28.865Z"
},
"id": "56a11209ebe230380bf104c3",
"key": "sl_ijoiqsxeQgXW2gkiE0X94",
"createdAt": "2016-01-21T17:14:49.971Z"
},
"code": 2000,
"message": "Success"
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
codeint32required
400X
type error response code
messagestringrequired
Bad request error description
errors object[]
{
"code": 0,
"message": "string",
"errors": [
{
"message": "should have required property 'type'",
"path": ".query.type",
"errorCode": "required.openapi.validation"
}
]
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.ideal-postcodes.co.uk/v1/keys/:key/licensees/:licensee");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear