Skip to main content
GET
/
api
/
dids
/
available
Get DIDs available to the current organization
curl --request GET \
  --url http://localhost:3000/api/dids/available \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "number": "+212600000000",
      "country": "MA",
      "status": "active",
      "isShared": true
    }
  ],
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 150,
    "totalPages": 8,
    "hasNextPage": true,
    "hasPreviousPage": false
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
number
default:1

Page number (1-based)

Required range: x >= 1
Example:

1

limit
number
default:20

Number of items per page

Required range: 1 <= x <= 100
Example:

20

Search term to filter results

Maximum string length: 100
Example:

"john"

sortBy
string

Field to sort by

Example:

"createdAt"

sortOrder
enum<string>
default:desc

Sort order

Available options:
asc,
desc
Example:

"desc"

Response

200 - application/json
data
object[]
required

Array of items

meta
object
required

Pagination metadata