Cowdidocs

Look up contacts on Cowdi

POST
/v1/user/payees/lookup

Match the caller's address-book phone numbers against Cowdi users in the acting organization. Returns only the numbers that belong to a Cowdi user in that organization. Other numbers are omitted from the response. Requires an authenticated, active user.

AuthorizationBearer <token>

Create a client with POST /v1/oauth/clients, then exchange its credentials for an access token. AUTHORIZATION_CODE clients act on behalf of a signed-in user and always use PKCE; CLIENT_CREDENTIALS clients act as themselves. A client may only be granted scopes its creator already holds — read the grantable list from GET /v1/oauth/clients/scopes.

In: header

Request Body

application/json

Phone numbers from the user's address book to match against Cowdi users

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/user/payees/lookup" \  -H "Content-Type: application/json" \  -d '{    "mobile_numbers": [      "254712345678",      "254700000000"    ]  }'
[  {    "mobile_number": "254712345678",    "user_tag": "@johnd123456",    "display_name": "John Doe"  }]
{  "code": "BAD_REQUEST",  "description": "Bad Request"}
{  "code": "UNAUTHORISED",  "description": "Unauthorised"}
{  "code": "FORBIDDEN",  "description": "Forbidden"}
{  "code": "RATE_LIMIT_EXCEEDED",  "description": "Too Many Requests"}
{  "code": "INTERNAL_ERROR",  "description": "Internal Server Error"}